Add BeiMan HA910_BizN and HA910_N support.

Signed-off-by: Kicer Jiao <joyki...@gmail.com>
---

Index: target/linux/brcm63xx/image/Makefile
===================================================================
--- target/linux/brcm63xx/image/Makefile        (revision 35162)
+++ target/linux/brcm63xx/image/Makefile        (working copy)
@@ -272,6 +272,12 @@

        # T-Com Speedport W 303V Typ B
        $(call Image/Build/SPW303V,$(1),96358-502V,6358,SPW303V)
+
+       # HA910_BizN
+       $(call 
Image/Build/CFEFIXUP,$(1),96328avng,HA910_BizN,6328,HA910_BizN,,--pad
8)
+
+       # HA910_N
+       $(call Image/Build/CFEFIXUP,$(1),96328avng,HA910_N,6328,HA910_N,,--pad
8)
 endef

 $(eval $(call BuildImage))
Index: target/linux/brcm63xx/base-files/lib/brcm63xx.sh
===================================================================
--- target/linux/brcm63xx/base-files/lib/brcm63xx.sh    (revision 35162)
+++ target/linux/brcm63xx/base-files/lib/brcm63xx.sh    (working copy)
@@ -106,6 +106,14 @@
                brcm63xx_has_reset_button="true"
                ifname=eth0
                ;;
+       HA910_BizN)
+               brcm63xx_has_reset_button="true"
+               ifname=eth0
+               ;;
+       HA910_N)
+               brcm63xx_has_reset_button="true"
+               ifname=eth0
+               ;;
        *)
                ;;
        esac
Index: target/linux/brcm63xx/base-files/etc/uci-defaults/brcm63xx_fixcrc.sh
===================================================================
--- target/linux/brcm63xx/base-files/etc/uci-defaults/brcm63xx_fixcrc.sh
      (revision 35162)
+++ target/linux/brcm63xx/base-files/etc/uci-defaults/brcm63xx_fixcrc.sh
      (working copy)
@@ -14,6 +14,8 @@

 case "$board_name" in
        96328avng |\
+       HA910_BizN |\
+       HA910_N |\
        96328A-1241N |\
        96328A-1441N1 |\
        963281TAN |\
Index: target/linux/brcm63xx/base-files/etc/uci-defaults/network
===================================================================
--- target/linux/brcm63xx/base-files/etc/uci-defaults/network   (revision 35162)
+++ target/linux/brcm63xx/base-files/etc/uci-defaults/network   (working copy)
@@ -15,6 +15,8 @@
 case "$board_name" in

 96328avng |\
+HA910_BizN |\
+HA910_N |\
 96328A-1241N |\
 96328A-1441N1 |\
 963281TAN |\
Index: target/linux/brcm63xx/patches-3.6/803-board_HA910_BizN.patch
===================================================================
--- target/linux/brcm63xx/patches-3.6/803-board_HA910_BizN.patch
 (revision 0)
+++ target/linux/brcm63xx/patches-3.6/803-board_HA910_BizN.patch
 (revision 0)
@@ -0,0 +1,104 @@
+--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
++++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
+@@ -138,6 +138,93 @@ static struct board_info __initdata boar
+       },
+ };
+
++static struct board_info __initdata board_HA910_BizN = {
++      .name                           = "HA910_BizN",
++      .expected_cpu_id                = 0x6328,
++
++      .has_uart0                      = 1,
++      .has_pci                        = 1,
++
++      .has_ohci0                      = 1,
++      .has_ehci0                      = 1,
++
++      .has_enetsw                     = 1,
++
++      .enetsw = {
++              .used_ports = {
++                      [0] = {
++                              .used   = 1,
++                              .phy_id = 1,
++                              .name   = "Port 1",
++                      },
++                      [1] = {
++                              .used   = 1,
++                              .phy_id = 2,
++                              .name   = "Port 2",
++                      },
++                      [2] = {
++                              .used   = 1,
++                              .phy_id = 3,
++                              .name   = "Port 3",
++                      },
++                      [3] = {
++                              .used   = 1,
++                              .phy_id = 4,
++                              .name   = "Port 4",
++                      },
++              },
++      },
++
++      .leds = {
++              {
++                      .name           = "HA910_BizN::dsl",
++                      .gpio           = 3,
++                      .active_low     = 1,
++              },
++              {
++                      .name           = "HA910_BizN::internet",
++                      .gpio           = 11,
++                      .active_low     = 1,
++              },
++              {
++                      .name           = "HA910_BizN::wps",
++                      .gpio           = 10,
++                      .active_low     = 1,
++              },
++              {
++                      .name           = "HA910_BizN::usb",
++                      .gpio           = 1,
++                      .active_low     = 1,
++              },
++      },
++      .buttons = {
++              {
++                      .desc                   = "reset",
++                      .gpio                   = 23,
++                      .active_low             = 1,
++                      .type                   = EV_KEY,
++                      .code                   = KEY_RESTART,
++                      .debounce_interval      =
BCM963XX_KEYS_DEBOUNCE_INTERVAL,
++              },
++              {
++                      .desc                   = "wlan",
++                      .gpio                   = 15,
++                      .active_low             = 1,
++                      .type                   = EV_KEY,
++                      .code                   = KEY_WLAN,
++                      .debounce_interval      =
BCM963XX_KEYS_DEBOUNCE_INTERVAL,
++              },
++              {
++                      .desc                   = "wps",
++                      .gpio                   = 22,
++                      .active_low             = 1,
++                      .type                   = EV_KEY,
++                      .code                   = KEY_WPS_BUTTON,
++                      .debounce_interval      =
BCM963XX_KEYS_DEBOUNCE_INTERVAL,
++              },
++      },
++};
++
+ static struct board_info __initdata board_96328A_1241N = {
+       .name                                   = "96328A-1241N",
+       .expected_cpu_id                        = 0x6328,
+@@ -3657,6 +3744,7 @@ static struct board_info __initdata boar
+ static const struct board_info __initdata *bcm963xx_boards[] = {
+ #ifdef CONFIG_BCM63XX_CPU_6328
+       &board_96328avng,
++      &board_HA910_BizN,
+       &board_96328A_1241N,
+       &board_96328A_1441N1,
+       &board_963281TAN,
Index: target/linux/brcm63xx/patches-3.6/804-board_HA910_N.patch
===================================================================
--- target/linux/brcm63xx/patches-3.6/804-board_HA910_N.patch   (revision 0)
+++ target/linux/brcm63xx/patches-3.6/804-board_HA910_N.patch   (revision 0)
@@ -0,0 +1,104 @@
+--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
++++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
+@@ -225,6 +225,93 @@ static struct board_info __initdata boar
+       },
+ };
+
++static struct board_info __initdata board_HA910_N = {
++      .name                           = "HA910_N",
++      .expected_cpu_id                = 0x6328,
++
++      .has_uart0                      = 1,
++      .has_pci                        = 1,
++
++      .has_ohci0                      = 1,
++      .has_ehci0                      = 1,
++
++      .has_enetsw                     = 1,
++
++      .enetsw = {
++              .used_ports = {
++                      [0] = {
++                              .used   = 1,
++                              .phy_id = 1,
++                              .name   = "Port 1",
++                      },
++                      [1] = {
++                              .used   = 1,
++                              .phy_id = 2,
++                              .name   = "Port 2",
++                      },
++                      [2] = {
++                              .used   = 1,
++                              .phy_id = 3,
++                              .name   = "Port 3",
++                      },
++                      [3] = {
++                              .used   = 1,
++                              .phy_id = 4,
++                              .name   = "Port 4",
++                      },
++              },
++      },
++
++      .leds = {
++              {
++                      .name           = "HA910_N::dsl",
++                      .gpio           = 3,
++                      .active_low     = 1,
++              },
++              {
++                      .name           = "HA910_N::internet",
++                      .gpio           = 11,
++                      .active_low     = 1,
++              },
++              {
++                      .name           = "HA910_N::wps",
++                      .gpio           = 10,
++                      .active_low     = 1,
++              },
++              {
++                      .name           = "HA910_N::usb",
++                      .gpio           = 1,
++                      .active_low     = 1,
++              },
++      },
++      .buttons = {
++              {
++                      .desc                   = "reset",
++                      .gpio                   = 23,
++                      .active_low             = 1,
++                      .type                   = EV_KEY,
++                      .code                   = KEY_RESTART,
++                      .debounce_interval      =
BCM963XX_KEYS_DEBOUNCE_INTERVAL,
++              },
++              {
++                      .desc                   = "wlan",
++                      .gpio                   = 15,
++                      .active_low             = 1,
++                      .type                   = EV_KEY,
++                      .code                   = KEY_WLAN,
++                      .debounce_interval      =
BCM963XX_KEYS_DEBOUNCE_INTERVAL,
++              },
++              {
++                      .desc                   = "wps",
++                      .gpio                   = 24,
++                      .active_low             = 1,
++                      .type                   = EV_KEY,
++                      .code                   = KEY_WPS_BUTTON,
++                      .debounce_interval      =
BCM963XX_KEYS_DEBOUNCE_INTERVAL,
++              },
++      },
++};
++
+ static struct board_info __initdata board_96328A_1241N = {
+       .name                                   = "96328A-1241N",
+       .expected_cpu_id                        = 0x6328,
+@@ -3745,6 +3832,7 @@ static const struct board_info __initdat
+ #ifdef CONFIG_BCM63XX_CPU_6328
+       &board_96328avng,
+       &board_HA910_BizN,
++      &board_HA910_N,
+       &board_96328A_1241N,
+       &board_96328A_1441N1,
+       &board_963281TAN,
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to