ramips: rename Digineo AC1200 Pro to ZBT-WG3526 32MB
authorMathias Kresin <dev@kresin.me>
Sat, 1 Apr 2017 08:46:44 +0000 (10:46 +0200)
committerMathias Kresin <dev@kresin.me>
Tue, 25 Apr 2017 17:29:59 +0000 (19:29 +0200)
The Digineo AC1200 Pro is the 32MB flash variant of the ZBT-WG3526 with
unpopulated/exposed sdhci slot. Rename to board to the OEM/ODM name and
add the sdhci kernel module to use it for multiple clones.

Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/ramips/base-files/etc/board.d/02_network
target/linux/ramips/base-files/etc/diag.sh
target/linux/ramips/base-files/lib/ramips.sh
target/linux/ramips/base-files/lib/upgrade/platform.sh
target/linux/ramips/dts/AC1200pro.dts [deleted file]
target/linux/ramips/dts/ZBT-WG3526-16M.dts
target/linux/ramips/dts/ZBT-WG3526-32M.dts [new file with mode: 0644]
target/linux/ramips/dts/ZBT-WG3526.dtsi
target/linux/ramips/image/mt7621.mk

index 391a8b69c4fc78de8ace20ae2dd20bd341ddb899..016d293cf8a3f53009f0a5b89d7cb82e3b346036 100755 (executable)
@@ -72,7 +72,6 @@ ramips_setup_interfaces()
                ucidef_set_interface_lan "eth0.2"
                ;;
        3g-6200n|\
-       ac1200pro|\
        ai-br100|\
        d240|\
        db-wrt01|\
@@ -116,6 +115,7 @@ ramips_setup_interfaces()
        zbt-we826|\
        zbt-wg2626|\
        zbt-wg3526-16M|\
+       zbt-wg3526-32M|\
        zbt-wr8305rt)
                ucidef_add_switch "switch0" \
                        "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0"
index 999ad9fc4e06e699a65bac469cd07aeea1c14bfe..8b5e260f1f45273f3d22d17a3725c2058dedd508 100644 (file)
@@ -58,7 +58,10 @@ get_status_led() {
        wn3000rpv3)
                status_led="$board:red:power"
                ;;
-       ac1200pro|\
+       ai-br100|\
+       ht-tm02)
+               status_led="$board:blue:wlan"
+               ;;
        all0239-3g|\
        dcs-930|\
        dir-300-b1|\
@@ -82,10 +85,6 @@ get_status_led() {
        zbt-wg2626)
                status_led="$board:green:status"
                ;;
-       ai-br100|\
-       ht-tm02)
-               status_led="$board:blue:wlan"
-               ;;
        asl26555-8M|\
        asl26555-16M)
                status_led="asl26555:green:power"
@@ -274,7 +273,8 @@ get_status_led() {
        zbt-cpe102)
                status_led="$board:green:4g-0"
                ;;
-       zbt-wg3526-16M)
+       zbt-wg3526-16M|\
+       zbt-wg3526-32M)
                status_led="zbt-wg3526:green:status"
                ;;
        esac
index d0abd2db2b4da3f5910e47461bd0fc0296488129..3342a8f0c40b673199b41601ca78e3087c321e59 100755 (executable)
@@ -130,9 +130,6 @@ ramips_board_detect() {
        *"DCS-930L B1")
                name="dcs-930l-b1"
                ;;
-       *"Digineo AC1200 Pro")
-               name="ac1200pro"
-               ;;
        *"DIR-300 B1")
                name="dir-300-b1"
                ;;
@@ -664,6 +661,9 @@ ramips_board_detect() {
        *"ZBT-WG3526 (16M)")
                name="zbt-wg3526-16M"
                ;;
+       *"ZBT-WG3526 (32M)")
+               name="zbt-wg3526-32M"
+               ;;
        *"ZBT-WR8305RT")
                name="zbt-wr8305rt"
                ;;
index f329b434e52ebe8efd3c8fe6c2129e9b60868d54..8c7f9591cebe2e09f1b18ab7b68360aaa6b69d9c 100755 (executable)
@@ -17,7 +17,6 @@ platform_check_image() {
        3g150b|\
        3g300m|\
        a5-v11|\
-       ac1200pro|\
        ai-br100|\
        air3gii|\
        all0239-3g|\
@@ -197,6 +196,7 @@ platform_check_image() {
        zbt-we826|\
        zbt-wg2626|\
        zbt-wg3526-16M|\
+       zbt-wg3526-32M|\
        zbt-wr8305rt|\
        zte-q7|\
        youku-yk1)
diff --git a/target/linux/ramips/dts/AC1200pro.dts b/target/linux/ramips/dts/AC1200pro.dts
deleted file mode 100644 (file)
index fbec818..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-/dts-v1/;
-
-#include "ZBT-WG3526.dtsi"
-
-/ {
-       model = "Digineo AC1200 Pro";
-};
-
-&firmware {
-       reg = <0x50000 0x1fb0000>;
-};
-
-&status_led {
-       label = "ac1200pro:green:status";
-};
index fb644502071d6641194c66baf552035937f35669..1e2f1525028f69468257cd8af8d5bad0319bc551 100644 (file)
@@ -9,7 +9,3 @@
 &firmware {
        reg = <0x50000 0xfb0000>;
 };
-
-&status_led {
-       label = "zbt-wg3526:green:status";
-};
diff --git a/target/linux/ramips/dts/ZBT-WG3526-32M.dts b/target/linux/ramips/dts/ZBT-WG3526-32M.dts
new file mode 100644 (file)
index 0000000..99a4b45
--- /dev/null
@@ -0,0 +1,11 @@
+/dts-v1/;
+
+#include "ZBT-WG3526.dtsi"
+
+/ {
+       model = "ZBT-WG3526 (32M)";
+};
+
+&firmware {
+       reg = <0x50000 0x1fb0000>;
+};
index 582e42083920c465588f14e59e10eafe735640fb..5e195fb8120d3a66f19acf83c9f76bb4b1ec3e7e 100644 (file)
@@ -35,7 +35,8 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               status_led: status {
+               status {
+                       label = "zbt-wg3526:green:status";
                        gpios = <&gpio0 24 1>;
                };
        };
index ae5bf5e1738f8bcabb92a2d98bbed9c1a0effdbc..b57552a6f4c35cf5f98d8dbf2315e956fd31e96f 100644 (file)
@@ -34,14 +34,6 @@ define Device/11acnas
 endef
 TARGET_DEVICES += 11acnas
 
-define Device/ac1200pro
-  DTS := AC1200pro
-  IMAGE_SIZE := $(ralink_default_fw_size_32M)
-  DEVICE_TITLE := Digineo AC1200 Pro
-  DEVICE_PACKAGES := kmod-usb3 kmod-ata-core kmod-ata-ahci
-endef
-TARGET_DEVICES += ac1200pro
-
 define Device/dir-860l-b1
   DTS := DIR-860L-B1
   BLOCKSIZE := 64k
@@ -270,6 +262,15 @@ define Device/zbt-wg3526-16M
 endef
 TARGET_DEVICES += zbt-wg3526-16M
 
+define Device/zbt-wg3526-32M
+  DTS := ZBT-WG3526-32M
+  IMAGE_SIZE := $(ralink_default_fw_size_32M)
+  SUPPORTED_DEVICES += ac1200pro
+  DEVICE_TITLE := ZBT WG3526 (32MB flash)
+  DEVICE_PACKAGES := kmod-usb3 kmod-usb-ledtrig-usbport kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620
+endef
+TARGET_DEVICES += zbt-wg3526-32M
+
 # FIXME: is this still needed?
 define Image/Prepare
 #define Build/Compile