- image generation is commented out since NAND is not support (only initramfs)
- NAND/WiFi not working
- LEDCtrl register must be cleared in order to get Power LED to work.
- refresh patches

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
---
 .../base-files/etc/uci-defaults/02_network         |  1 +
 target/linux/brcm63xx/base-files/lib/brcm63xx.sh   |  5 ++
 target/linux/brcm63xx/dts/vr-3032u.dts             | 93 ++++++++++++++++++++++
 target/linux/brcm63xx/image/Makefile               |  2 +
 .../379-BCM63xx-clear-LEDCtrl-register.patch       | 13 +++
 ...-allow-providing-fixup-data-in-board-data.patch |  4 +-
 ...8-MIPS-BCM63XX-pass-caldata-info-to-flash.patch |  2 +-
 .../420-BCM63XX-add-endian-check-for-ath9k.patch   |  2 +-
 .../421-BCM63XX-add-led-pin-for-ath9k.patch        |  2 +-
 ...22-BCM63XX-add-a-fixup-for-rt2x00-devices.patch |  2 +-
 .../brcm63xx/patches-3.14/568-board_VR-3032u.patch | 65 +++++++++++++++
 .../379-BCM63xx-clear-LEDCtrl-register.patch       | 13 +++
 ...-allow-providing-fixup-data-in-board-data.patch |  4 +-
 ...8-MIPS-BCM63XX-pass-caldata-info-to-flash.patch |  2 +-
 .../420-BCM63XX-add-endian-check-for-ath9k.patch   |  2 +-
 .../421-BCM63XX-add-led-pin-for-ath9k.patch        |  2 +-
 ...22-BCM63XX-add-a-fixup-for-rt2x00-devices.patch |  2 +-
 .../brcm63xx/patches-3.18/568-board_VR-3032u.patch | 65 +++++++++++++++
 target/linux/brcm63xx/profiles/comtrend.mk         |  9 +++
 19 files changed, 278 insertions(+), 12 deletions(-)
 create mode 100644 target/linux/brcm63xx/dts/vr-3032u.dts
 create mode 100644 
target/linux/brcm63xx/patches-3.14/379-BCM63xx-clear-LEDCtrl-register.patch
 create mode 100644 target/linux/brcm63xx/patches-3.14/568-board_VR-3032u.patch
 create mode 100644 
target/linux/brcm63xx/patches-3.18/379-BCM63xx-clear-LEDCtrl-register.patch
 create mode 100644 target/linux/brcm63xx/patches-3.18/568-board_VR-3032u.patch

diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network 
b/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network
index 709a1c8..83f23f6 100644
--- a/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network
@@ -76,6 +76,7 @@ HW6358GW_B)
        ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 4 5t"
        ;;
 
+963168M-1841N1 |\
 96328avng |\
 96328A-1241N |\
 96328A-1441N1 |\
diff --git a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh 
b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh
index 58ce71e..3431467 100755
--- a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh
+++ b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh
@@ -19,6 +19,11 @@ brcm63xx_detect() {
        fi
 
        case "$board_name" in
+       963168M-1841N1)
+               brcm63xx_has_reset_button="true"
+               status_led="VR-3032u:green:power"
+               ifname=eth0
+               ;;
        963281TAN)
                status_led="963281TAN::power"
                ifname=eth0
diff --git a/target/linux/brcm63xx/dts/vr-3032u.dts 
b/target/linux/brcm63xx/dts/vr-3032u.dts
new file mode 100644
index 0000000..4bd8724
--- /dev/null
+++ b/target/linux/brcm63xx/dts/vr-3032u.dts
@@ -0,0 +1,93 @@
+/dts-v1/;
+
+/include/ "bcm63268.dtsi"
+
+/ {
+       model = "Comtrend VR-3032u";
+       compatible = "comtrend,vr-3032u", "brcm,bcm63268";
+
+       spi-gpio {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "spi-gpio";
+
+               gpio-mosi = <&gpio0 1 0>;
+               gpio-sck = <&gpio0 0 0>;
+               num-chipselects = <0>;
+
+               hc595: gpio-spi-controller@0 {
+                       compatible = "fairchild,74hc595";
+                       reg = <0>;
+                       registers-number = <2>;
+                       spi-max-frequency = <100000>;
+
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+       };
+
+       gpio-keys-polled {
+               compatible = "gpio-keys-polled";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               poll-interval = <20>;
+               debounce-interval = <60>;
+
+               reset {
+                       label = "reset";
+                       gpios = <&gpio1 0 1>;
+                       linux,code = <0x198>;
+               };
+               wps {
+                       label = "wps";
+                       gpios = <&gpio1 1 1>;
+                       linux,code = <0x211>;
+               };
+       };
+
+       gpio-leds {
+               compatible = "gpio-leds";
+
+               power_green {
+                       label = "VR-3032u:green:power";
+                       gpios = <&gpio0 20 1>;
+                       default-state = "on";
+               };
+               inet_red {
+                       label = "VR-3032u:red:inet";
+                       gpios = <&hc595 2 1>;
+               };
+               dsl_green {
+                       label = "VR-3032u:green:dsl";
+                       gpios = <&hc595 3 1>;
+               };
+               usb_green {
+                       label = "VR-3032u:green:usb";
+                       gpios = <&hc595 4 1>;
+               };
+               wps_green {
+                       label = "VR-3032u:green:wps";
+                       gpios = <&hc595 7 1>;
+               };
+               inet_green {
+                       label = "VR-3032u:green:inet";
+                       gpios = <&hc595 8 1>;
+               };
+               lan2_green {
+                       label = "VR-3032u:green:lan2";
+                       gpios = <&hc595 9 1>;
+               };
+               lan3_green {
+                       label = "VR-3032u:green:lan3";
+                       gpios = <&hc595 10 1>;
+               };
+               lan4_green {
+                       label = "VR-3032u:green:lan4";
+                       gpios = <&hc595 11 1>;
+               };
+               lan1_green {
+                       label = "VR-3032u:green:lan1";
+                       gpios = <&hc595 12 1>;
+               };
+       };
+};
diff --git a/target/linux/brcm63xx/image/Makefile 
b/target/linux/brcm63xx/image/Makefile
index dd16355..d6a426c 100755
--- a/target/linux/brcm63xx/image/Makefile
+++ b/target/linux/brcm63xx/image/Makefile
@@ -268,6 +268,8 @@ $(eval $(call 
ImageDTB,CFEDTB,CT6373,CT-6373,ct-6373,CT6373-1,6358))
 $(eval $(call 
ImageDTB,CFEDTB,VR3025u,VR-3025u,vr-3025u,96368M-1541N,6368,--pad 16 
--image-offset 0x20000 --block-size 0x20000))
 # Comtrend VR-3025un
 $(eval $(call 
ImageDTB,CFEDTB,VR3025un,VR-3025un,vr-3025un,96368M-1341N,6368,--pad 4))
+# Comtrend VR-3032u
+#$(eval $(call ImageDTB,CFEDTB,VR3032u,VR-3032u,vr-3032u,963168M-1841N1,63268))
 # Comtrend WAP-5813n
 $(eval $(call 
ImageDTB,CFEDTB,WAP5813n,WAP-5813n,wap-5813n,96369R-1231N,6368,--pad 4))
 # D-Link DSL-2640B, rev B2
diff --git 
a/target/linux/brcm63xx/patches-3.14/379-BCM63xx-clear-LEDCtrl-register.patch 
b/target/linux/brcm63xx/patches-3.14/379-BCM63xx-clear-LEDCtrl-register.patch
new file mode 100644
index 0000000..35dabe7
--- /dev/null
+++ 
b/target/linux/brcm63xx/patches-3.14/379-BCM63xx-clear-LEDCtrl-register.patch
@@ -0,0 +1,13 @@
+--- a/arch/mips/bcm63xx/boards/board_common.c
++++ b/arch/mips/bcm63xx/boards/board_common.c
+@@ -108,6 +108,10 @@ void __init board_early_setup(const stru
+ 
+       bcm_gpio_writel(val, GPIO_MODE_REG);
+ 
++      /* Clear LEDCtrl register */
++      if (BCMCPU_IS_6362() || BCMCPU_IS_63268())
++              bcm_gpio_writel(0, 0x10);
++
+ #if IS_ENABLED(CONFIG_USB)
+       if (BCMCPU_IS_6318() && (board.has_ehci0 || board.has_ohci0)) {
+               val = bcm_gpio_readl(GPIO_PINMUX_SEL0_6318);
diff --git 
a/target/linux/brcm63xx/patches-3.14/413-BCM63XX-allow-providing-fixup-data-in-board-data.patch
 
b/target/linux/brcm63xx/patches-3.14/413-BCM63XX-allow-providing-fixup-data-in-board-data.patch
index 0960005..7bd587a 100644
--- 
a/target/linux/brcm63xx/patches-3.14/413-BCM63XX-allow-providing-fixup-data-in-board-data.patch
+++ 
b/target/linux/brcm63xx/patches-3.14/413-BCM63XX-allow-providing-fixup-data-in-board-data.patch
@@ -18,7 +18,7 @@ Subject: [PATCH 58/72] BCM63XX: allow providing fixup data in 
board data
  
  #include "board_common.h"
  
-@@ -196,6 +197,7 @@ int __init board_register_devices(void)
+@@ -200,6 +201,7 @@ int __init board_register_devices(void)
        int button_count = 0;
        int led_count = 0;
        int usbh_ports = 0;
@@ -26,7 +26,7 @@ Subject: [PATCH 58/72] BCM63XX: allow providing fixup data in 
board data
  
  #if CONFIG_OF
        if (of_have_populated_dt()) {
-@@ -296,6 +298,10 @@ int __init board_register_devices(void)
+@@ -300,6 +302,10 @@ int __init board_register_devices(void)
                platform_device_register(&bcm63xx_gpio_keys_device);
        }
  
diff --git 
a/target/linux/brcm63xx/patches-3.14/418-MIPS-BCM63XX-pass-caldata-info-to-flash.patch
 
b/target/linux/brcm63xx/patches-3.14/418-MIPS-BCM63XX-pass-caldata-info-to-flash.patch
index b329c31..0594071 100644
--- 
a/target/linux/brcm63xx/patches-3.14/418-MIPS-BCM63XX-pass-caldata-info-to-flash.patch
+++ 
b/target/linux/brcm63xx/patches-3.14/418-MIPS-BCM63XX-pass-caldata-info-to-flash.patch
@@ -11,7 +11,7 @@ Subject: [PATCH 69/80] MIPS: BCM63XX: pass caldata info to 
flash
 
 --- a/arch/mips/bcm63xx/boards/board_common.c
 +++ b/arch/mips/bcm63xx/boards/board_common.c
-@@ -269,7 +269,7 @@ int __init board_register_devices(void)
+@@ -273,7 +273,7 @@ int __init board_register_devices(void)
        if (board.num_spis)
                spi_register_board_info(board.spis, board.num_spis);
  
diff --git 
a/target/linux/brcm63xx/patches-3.14/420-BCM63XX-add-endian-check-for-ath9k.patch
 
b/target/linux/brcm63xx/patches-3.14/420-BCM63XX-add-endian-check-for-ath9k.patch
index 5398c3d..d1267f0 100644
--- 
a/target/linux/brcm63xx/patches-3.14/420-BCM63XX-add-endian-check-for-ath9k.patch
+++ 
b/target/linux/brcm63xx/patches-3.14/420-BCM63XX-add-endian-check-for-ath9k.patch
@@ -39,7 +39,7 @@
                return;
 --- a/arch/mips/bcm63xx/boards/board_common.c
 +++ b/arch/mips/bcm63xx/boards/board_common.c
-@@ -300,7 +300,8 @@ int __init board_register_devices(void)
+@@ -304,7 +304,8 @@ int __init board_register_devices(void)
  
        /* register any fixups */
        for (i = 0; i < board.has_caldata; i++)
diff --git 
a/target/linux/brcm63xx/patches-3.14/421-BCM63XX-add-led-pin-for-ath9k.patch 
b/target/linux/brcm63xx/patches-3.14/421-BCM63XX-add-led-pin-for-ath9k.patch
index 1310136..d877f1d 100644
--- a/target/linux/brcm63xx/patches-3.14/421-BCM63XX-add-led-pin-for-ath9k.patch
+++ b/target/linux/brcm63xx/patches-3.14/421-BCM63XX-add-led-pin-for-ath9k.patch
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_common.c
 +++ b/arch/mips/bcm63xx/boards/board_common.c
-@@ -301,7 +301,7 @@ int __init board_register_devices(void)
+@@ -305,7 +305,7 @@ int __init board_register_devices(void)
        /* register any fixups */
        for (i = 0; i < board.has_caldata; i++)
                pci_enable_ath9k_fixup(board.caldata[i].slot, 
board.caldata[i].caldata_offset,
diff --git 
a/target/linux/brcm63xx/patches-3.14/422-BCM63XX-add-a-fixup-for-rt2x00-devices.patch
 
b/target/linux/brcm63xx/patches-3.14/422-BCM63XX-add-a-fixup-for-rt2x00-devices.patch
index bff489b..4f0ab57 100644
--- 
a/target/linux/brcm63xx/patches-3.14/422-BCM63XX-add-a-fixup-for-rt2x00-devices.patch
+++ 
b/target/linux/brcm63xx/patches-3.14/422-BCM63XX-add-a-fixup-for-rt2x00-devices.patch
@@ -36,7 +36,7 @@ Subject: [PATCH 72/72] 
446-BCM63XX-add-a-fixup-for-rt2x00-devices
  
  #include "board_common.h"
  
-@@ -299,9 +300,19 @@ int __init board_register_devices(void)
+@@ -303,9 +304,19 @@ int __init board_register_devices(void)
        }
  
        /* register any fixups */
diff --git a/target/linux/brcm63xx/patches-3.14/568-board_VR-3032u.patch 
b/target/linux/brcm63xx/patches-3.14/568-board_VR-3032u.patch
new file mode 100644
index 0000000..56217a5
--- /dev/null
+++ b/target/linux/brcm63xx/patches-3.14/568-board_VR-3032u.patch
@@ -0,0 +1,65 @@
+--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
++++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
+@@ -2536,6 +2536,46 @@ static struct board_info __initdata boar
+       },
+ };
+ 
++static struct board_info __initdata board_VR3032u = {
++      .name                           = "963168M-1841N1",
++      .expected_cpu_id                = 0x63268,
++
++      .has_uart0                      = 1,
++
++      .has_ehci0                      = 1,
++      .has_ohci0                      = 1,
++      .num_usbh_ports                 = 1,
++
++      .has_enetsw                     = 1,
++      .enetsw = {
++              .used_ports = {
++                      [0] = {
++                              .used   = 1,
++                              .phy_id = 1,
++                              .name   = "LAN2",
++                      },
++
++                      [1] = {
++                              .used   = 1,
++                              .phy_id = 2,
++                              .name   = "LAN3",
++                      },
++
++                      [2] = {
++                              .used   = 1,
++                              .phy_id = 3,
++                              .name   = "LAN4",
++                      },
++
++                      [3] = {
++                              .used   = 1,
++                              .phy_id = 4,
++                              .name   = "LAN1",
++                      },
++              },
++      },
++};
++
+ static struct board_info __initdata board_vw6339gu = {
+       .name                           = "VW6339GU",
+       .expected_cpu_id                = 0x63268,
+@@ -2731,6 +2771,7 @@ static const struct board_info __initcon
+ #ifdef CONFIG_BCM63XX_CPU_63268
+       &board_963268bu_p300,
+       &board_963269bhr,
++      &board_VR3032u,
+       &board_vw6339gu,
+ #endif
+ };
+@@ -2817,6 +2858,7 @@ static struct of_device_id const bcm963x
+ #endif
+ #ifdef CONFIG_BCM63XX_CPU_63268
+       { .compatible = "brcm,bcm963268bu_p300", .data = &board_963268bu_p300, 
},
++      { .compatible = "comtrend,vr-3032u", .data = &board_VR3032u, },
+ #endif
+ #endif /* CONFIG_OF */
+       { },
diff --git 
a/target/linux/brcm63xx/patches-3.18/379-BCM63xx-clear-LEDCtrl-register.patch 
b/target/linux/brcm63xx/patches-3.18/379-BCM63xx-clear-LEDCtrl-register.patch
new file mode 100644
index 0000000..35dabe7
--- /dev/null
+++ 
b/target/linux/brcm63xx/patches-3.18/379-BCM63xx-clear-LEDCtrl-register.patch
@@ -0,0 +1,13 @@
+--- a/arch/mips/bcm63xx/boards/board_common.c
++++ b/arch/mips/bcm63xx/boards/board_common.c
+@@ -108,6 +108,10 @@ void __init board_early_setup(const stru
+ 
+       bcm_gpio_writel(val, GPIO_MODE_REG);
+ 
++      /* Clear LEDCtrl register */
++      if (BCMCPU_IS_6362() || BCMCPU_IS_63268())
++              bcm_gpio_writel(0, 0x10);
++
+ #if IS_ENABLED(CONFIG_USB)
+       if (BCMCPU_IS_6318() && (board.has_ehci0 || board.has_ohci0)) {
+               val = bcm_gpio_readl(GPIO_PINMUX_SEL0_6318);
diff --git 
a/target/linux/brcm63xx/patches-3.18/413-BCM63XX-allow-providing-fixup-data-in-board-data.patch
 
b/target/linux/brcm63xx/patches-3.18/413-BCM63XX-allow-providing-fixup-data-in-board-data.patch
index 0960005..7bd587a 100644
--- 
a/target/linux/brcm63xx/patches-3.18/413-BCM63XX-allow-providing-fixup-data-in-board-data.patch
+++ 
b/target/linux/brcm63xx/patches-3.18/413-BCM63XX-allow-providing-fixup-data-in-board-data.patch
@@ -18,7 +18,7 @@ Subject: [PATCH 58/72] BCM63XX: allow providing fixup data in 
board data
  
  #include "board_common.h"
  
-@@ -196,6 +197,7 @@ int __init board_register_devices(void)
+@@ -200,6 +201,7 @@ int __init board_register_devices(void)
        int button_count = 0;
        int led_count = 0;
        int usbh_ports = 0;
@@ -26,7 +26,7 @@ Subject: [PATCH 58/72] BCM63XX: allow providing fixup data in 
board data
  
  #if CONFIG_OF
        if (of_have_populated_dt()) {
-@@ -296,6 +298,10 @@ int __init board_register_devices(void)
+@@ -300,6 +302,10 @@ int __init board_register_devices(void)
                platform_device_register(&bcm63xx_gpio_keys_device);
        }
  
diff --git 
a/target/linux/brcm63xx/patches-3.18/418-MIPS-BCM63XX-pass-caldata-info-to-flash.patch
 
b/target/linux/brcm63xx/patches-3.18/418-MIPS-BCM63XX-pass-caldata-info-to-flash.patch
index b329c31..0594071 100644
--- 
a/target/linux/brcm63xx/patches-3.18/418-MIPS-BCM63XX-pass-caldata-info-to-flash.patch
+++ 
b/target/linux/brcm63xx/patches-3.18/418-MIPS-BCM63XX-pass-caldata-info-to-flash.patch
@@ -11,7 +11,7 @@ Subject: [PATCH 69/80] MIPS: BCM63XX: pass caldata info to 
flash
 
 --- a/arch/mips/bcm63xx/boards/board_common.c
 +++ b/arch/mips/bcm63xx/boards/board_common.c
-@@ -269,7 +269,7 @@ int __init board_register_devices(void)
+@@ -273,7 +273,7 @@ int __init board_register_devices(void)
        if (board.num_spis)
                spi_register_board_info(board.spis, board.num_spis);
  
diff --git 
a/target/linux/brcm63xx/patches-3.18/420-BCM63XX-add-endian-check-for-ath9k.patch
 
b/target/linux/brcm63xx/patches-3.18/420-BCM63XX-add-endian-check-for-ath9k.patch
index 5398c3d..d1267f0 100644
--- 
a/target/linux/brcm63xx/patches-3.18/420-BCM63XX-add-endian-check-for-ath9k.patch
+++ 
b/target/linux/brcm63xx/patches-3.18/420-BCM63XX-add-endian-check-for-ath9k.patch
@@ -39,7 +39,7 @@
                return;
 --- a/arch/mips/bcm63xx/boards/board_common.c
 +++ b/arch/mips/bcm63xx/boards/board_common.c
-@@ -300,7 +300,8 @@ int __init board_register_devices(void)
+@@ -304,7 +304,8 @@ int __init board_register_devices(void)
  
        /* register any fixups */
        for (i = 0; i < board.has_caldata; i++)
diff --git 
a/target/linux/brcm63xx/patches-3.18/421-BCM63XX-add-led-pin-for-ath9k.patch 
b/target/linux/brcm63xx/patches-3.18/421-BCM63XX-add-led-pin-for-ath9k.patch
index 1310136..d877f1d 100644
--- a/target/linux/brcm63xx/patches-3.18/421-BCM63XX-add-led-pin-for-ath9k.patch
+++ b/target/linux/brcm63xx/patches-3.18/421-BCM63XX-add-led-pin-for-ath9k.patch
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_common.c
 +++ b/arch/mips/bcm63xx/boards/board_common.c
-@@ -301,7 +301,7 @@ int __init board_register_devices(void)
+@@ -305,7 +305,7 @@ int __init board_register_devices(void)
        /* register any fixups */
        for (i = 0; i < board.has_caldata; i++)
                pci_enable_ath9k_fixup(board.caldata[i].slot, 
board.caldata[i].caldata_offset,
diff --git 
a/target/linux/brcm63xx/patches-3.18/422-BCM63XX-add-a-fixup-for-rt2x00-devices.patch
 
b/target/linux/brcm63xx/patches-3.18/422-BCM63XX-add-a-fixup-for-rt2x00-devices.patch
index bff489b..4f0ab57 100644
--- 
a/target/linux/brcm63xx/patches-3.18/422-BCM63XX-add-a-fixup-for-rt2x00-devices.patch
+++ 
b/target/linux/brcm63xx/patches-3.18/422-BCM63XX-add-a-fixup-for-rt2x00-devices.patch
@@ -36,7 +36,7 @@ Subject: [PATCH 72/72] 
446-BCM63XX-add-a-fixup-for-rt2x00-devices
  
  #include "board_common.h"
  
-@@ -299,9 +300,19 @@ int __init board_register_devices(void)
+@@ -303,9 +304,19 @@ int __init board_register_devices(void)
        }
  
        /* register any fixups */
diff --git a/target/linux/brcm63xx/patches-3.18/568-board_VR-3032u.patch 
b/target/linux/brcm63xx/patches-3.18/568-board_VR-3032u.patch
new file mode 100644
index 0000000..56217a5
--- /dev/null
+++ b/target/linux/brcm63xx/patches-3.18/568-board_VR-3032u.patch
@@ -0,0 +1,65 @@
+--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
++++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
+@@ -2536,6 +2536,46 @@ static struct board_info __initdata boar
+       },
+ };
+ 
++static struct board_info __initdata board_VR3032u = {
++      .name                           = "963168M-1841N1",
++      .expected_cpu_id                = 0x63268,
++
++      .has_uart0                      = 1,
++
++      .has_ehci0                      = 1,
++      .has_ohci0                      = 1,
++      .num_usbh_ports                 = 1,
++
++      .has_enetsw                     = 1,
++      .enetsw = {
++              .used_ports = {
++                      [0] = {
++                              .used   = 1,
++                              .phy_id = 1,
++                              .name   = "LAN2",
++                      },
++
++                      [1] = {
++                              .used   = 1,
++                              .phy_id = 2,
++                              .name   = "LAN3",
++                      },
++
++                      [2] = {
++                              .used   = 1,
++                              .phy_id = 3,
++                              .name   = "LAN4",
++                      },
++
++                      [3] = {
++                              .used   = 1,
++                              .phy_id = 4,
++                              .name   = "LAN1",
++                      },
++              },
++      },
++};
++
+ static struct board_info __initdata board_vw6339gu = {
+       .name                           = "VW6339GU",
+       .expected_cpu_id                = 0x63268,
+@@ -2731,6 +2771,7 @@ static const struct board_info __initcon
+ #ifdef CONFIG_BCM63XX_CPU_63268
+       &board_963268bu_p300,
+       &board_963269bhr,
++      &board_VR3032u,
+       &board_vw6339gu,
+ #endif
+ };
+@@ -2817,6 +2858,7 @@ static struct of_device_id const bcm963x
+ #endif
+ #ifdef CONFIG_BCM63XX_CPU_63268
+       { .compatible = "brcm,bcm963268bu_p300", .data = &board_963268bu_p300, 
},
++      { .compatible = "comtrend,vr-3032u", .data = &board_VR3032u, },
+ #endif
+ #endif /* CONFIG_OF */
+       { },
diff --git a/target/linux/brcm63xx/profiles/comtrend.mk 
b/target/linux/brcm63xx/profiles/comtrend.mk
index 8c1b862..4145899 100644
--- a/target/linux/brcm63xx/profiles/comtrend.mk
+++ b/target/linux/brcm63xx/profiles/comtrend.mk
@@ -73,6 +73,15 @@ define Profile/VR3025un/Description
 endef
 $(eval $(call Profile,VR3025un))
 
+define Profile/VR3032u
+  NAME:=Comtrend VR-3032u
+  PACKAGES:=kmod-usb2 kmod-usb-ohci
+endef
+define Profile/VR3032u/Description
+  Package set optimized for VR-3032u.
+endef
+$(eval $(call Profile,VR3032u))
+
 define Profile/WAP5813n
   NAME:=Comtrend WAP-5813n
   PACKAGES:=kmod-b43 wpad-mini \
-- 
1.9.1
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to