ramips: add support for TP-Link Archer C50 v3
[openwrt/staging/blogic.git] / target / linux / ramips / base-files / lib / upgrade / platform.sh
index cd210013248d1ef63dc9463ea588bd64fb670866..45e141de02be257807007810f7f31f9ebafceb93 100755 (executable)
@@ -167,7 +167,8 @@ platform_check_image() {
        whr-300hp2|\
        whr-600d|\
        whr-g300n|\
-       widora-neo|\
+       widora,neo-16m|\
+       widora,neo-32m|\
        witi|\
        wizfi630a|\
        wl-330n|\
@@ -203,6 +204,7 @@ platform_check_image() {
        zbt-ape522ii|\
        zbt-cpe102|\
        zbt-wa05|\
+       zbtlink,zbt-we1226|\
        zbt-we1326|\
        zbt-we2026|\
        zbtlink,zbt-we3526|\
@@ -237,10 +239,12 @@ platform_check_image() {
                }
                return 0
                ;;
-       c20|\
        c20i|\
        c50|\
        mr200|\
+       tplink,c20-v1|\
+       tplink,c20-v4|\
+       tplink,c50-v3|\
        tplink,tl-mr3420-v5|\
        tl-wr840n-v4|\
        tl-wr840n-v5|\
@@ -264,9 +268,11 @@ platform_check_image() {
                ;;
        hc5962|\
        mir3g|\
-       r6220)
-               # these boards use metadata images
-               return 0
+       r6220|\
+       ubnt-erx|\
+       ubnt-erx-sfp)
+               nand_do_platform_check "$board" "$1"
+               return $?;
                ;;
        re350-v1)
                [ "$magic" != "01000000" ] && {
@@ -275,11 +281,6 @@ platform_check_image() {
                }
                return 0
                ;;
-       ubnt-erx|\
-       ubnt-erx-sfp)
-               nand_do_platform_check "$board" "$1"
-               return $?;
-               ;;
        wcr-1166ds|\
        wsr-1166)
                [ "$magic" != "48445230" ] && {