brcm63xx: fix HG556a boards and remove fallback board
authorJonas Gorski <jogo@openwrt.org>
Mon, 18 Aug 2014 21:50:29 +0000 (21:50 +0000)
committerJonas Gorski <jogo@openwrt.org>
Mon, 18 Aug 2014 21:50:29 +0000 (21:50 +0000)
This changes board info to match the Wiki
http://wiki.openwrt.org/toh/huawei/hg556a, removes the no longer needed
fallback board and fixes HG556 Ralink eeprom extraction.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[jogo: rename partitions instead]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42206

21 files changed:
target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
target/linux/brcm63xx/dts/hg556a-a.dts
target/linux/brcm63xx/dts/hg556a-b.dts
target/linux/brcm63xx/dts/hg556a-c.dts
target/linux/brcm63xx/patches-3.14/534-board_hw556.patch
target/linux/brcm63xx/patches-3.14/535-board_rta770w.patch
target/linux/brcm63xx/patches-3.14/536-board_fast2704.patch
target/linux/brcm63xx/patches-3.14/537-board_fast2504n.patch
target/linux/brcm63xx/patches-3.14/555-board_96318ref.patch
target/linux/brcm63xx/patches-3.14/556-board_96318ref_p300.patch
target/linux/brcm63xx/patches-3.14/557-board_bcm963269bhr.patch
target/linux/brcm63xx/patches-3.14/558-board_AR1004G.patch
target/linux/brcm63xx/patches-3.14/559-board_vw6339gu.patch
target/linux/brcm63xx/patches-3.14/560-board_963268gu_p300.patch
target/linux/brcm63xx/patches-3.14/561-board_WAP-5813n.patch
target/linux/brcm63xx/patches-3.14/562-board_VR-3025u.patch
target/linux/brcm63xx/patches-3.14/563-board_VR-3025un.patch
target/linux/brcm63xx/patches-3.14/564-board_P870HW-51a_v2.patch
target/linux/brcm63xx/patches-3.14/565-board_hw520.patch
target/linux/brcm63xx/patches-3.14/566-board_A4001N.patch
target/linux/brcm63xx/patches-3.14/567-board_dsl-2751b_e1.patch

index 8e229d1d9aec4bc9815436264b852bc5e45de4c3..2d8f1f55ff0cc8b9bc65539e7570aea9b052877c 100644 (file)
@@ -31,7 +31,7 @@ board=$board_name
 case "$FIRMWARE" in
 "rt2x00.eeprom" )
        case $board in
-       HW556_A)
+       HW556_C)
                rt2x00_eeprom_extract "cal_data" 130560 512
                ;;
        *)
index 89e2698ed9e47560d55e505ad7fc68c81282570b..bf43571f6d52f709a9053132f290cb837c939928 100644 (file)
@@ -23,8 +23,8 @@
                reg = <0x020000 0xec0000>;
        };
 
-       caldata@ee0000 {
-               label = "caldata";
+       cal_data@ee0000 {
+               label = "cal_data";
                reg = <0xee0000 0x100000>;
                read-only;
        };
index 855dcd1f657b073ed7449062347018c9311abaa8..6d218c20b9e9eb5aba7a6795bc331af6103cf48c 100644 (file)
@@ -23,8 +23,8 @@
                reg = <0x020000 0xec0000>;
        };
 
-       caldata@ee0000 {
-               label = "caldata";
+       cal_data@ee0000 {
+               label = "cal_data";
                reg = <0xee0000 0x100000>;
                read-only;
        };
index 43e578d0180da1ab3c0f92d58d83334905f0f51b..a5bccda6a6a5290e7ca9afe791e17059ba1a85e4 100644 (file)
@@ -23,8 +23,8 @@
                reg = <0x020000 0xec0000>;
        };
 
-       caldata@ee0000 {
-               label = "caldata";
+       cal_data@ee0000 {
+               label = "cal_data";
                reg = <0xee0000 0x100000>;
                read-only;
        };
index 2013b7db06658febb63466159f34d9c3b1a9d4aa..c1af61bf5b55d8bb0ec220c8f4612b0c4eb229b8 100644 (file)
  #include <linux/platform_device.h>
  #include <linux/spi/spi.h>
  #include <linux/spi/spi_gpio.h>
-@@ -2667,6 +2668,495 @@ static struct board_info __initdata boar
+@@ -2667,6 +2668,405 @@ static struct board_info __initdata boar
        },
  };
  
-+static struct board_info __initdata board_HW556 = {
-+      .name                                   = "HW556",
-+      .expected_cpu_id                        = 0x6358,
-+
-+      .has_uart0                              = 1,
-+      .has_pci                                = 1,
-+      .has_ohci0                              = 1,
-+      .has_ehci0                              = 1,
-+      .num_usbh_ports                         = 2,
-+
-+      .has_caldata                            = 1,
-+      .caldata = {
-+              {
-+                      .caldata_offset         = 0xe00000,
-+              },
-+      },
-+
-+      .has_enet1                              = 1,
-+      .enet1 = {
-+              .has_phy                        = 1,
-+              .phy_id                         = 0,
-+              .force_speed_100                = 1,
-+              .force_duplex_full              = 1,
-+      },
-+
-+      .leds = {
-+              {
-+                      .name                   = "HW556:red:message",
-+                      .gpio                   = 0,
-+                      .active_low             = 1,
-+              },
-+              {
-+                      .name                   = "HW556:red:hspa",
-+                      .gpio                   = 1,
-+                      .active_low             = 1,
-+              },
-+              {
-+                      .name                   = "HW556:red:dsl",
-+                      .gpio                   = 2,
-+                      .active_low             = 1,
-+              },
-+              {
-+                      .name                   = "HW556:red:power",
-+                      .gpio                   = 3,
-+                      .active_low             = 1,
-+                      .default_trigger        = "default-on",
-+              },
-+              {
-+                      .name                   = "HW556:red:all",
-+                      .gpio                   = 6,
-+                      .active_low             = 1,
-+                      .default_trigger        = "default-on",
-+              },
-+      },
-+
-+      .buttons = {
-+              {
-+                      .desc                   = "help",
-+                      .gpio                   = 8,
-+                      .active_low             = 1,
-+                      .type                   = EV_KEY,
-+                      .code                   = KEY_HELP,
-+                      .debounce_interval      = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
-+              },
-+              {
-+                      .desc                   = "wlan",
-+                      .gpio                   = 9,
-+                      .active_low             = 1,
-+                      .type                   = EV_KEY,
-+                      .code                   = KEY_WLAN,
-+                      .debounce_interval      = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
-+              },
-+              {
-+                      .desc                   = "restart",
-+                      .gpio                   = 10,
-+                      .active_low             = 1,
-+                      .type                   = EV_KEY,
-+                      .code                   = KEY_RESTART,
-+                      .debounce_interval      = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
-+              },
-+              {
-+                      .desc                   = "reset",
-+                      .gpio                   = 11,
-+                      .active_low             = 1,
-+                      .type                   = EV_KEY,
-+                      .code                   = KEY_CONFIG,
-+                      .debounce_interval      = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
-+              },
-+      },
-+};
-+static struct board_info __initdata board_HW556_A = {
-+      .name                                   = "HW556_A",
-+      .of_board_id                            = "huawei,hg556a-a",
++static struct board_info __initdata board_HW556_C = {
++      .name                                   = "HW556_C",
++      .of_board_id                            = "huawei,hg556a-c",
 +      .expected_cpu_id                        = 0x6358,
 +
 +      .has_uart0                              = 1,
 +              },
 +      },
 +};
-+static struct board_info __initdata board_HW556_B = {
-+      .name                                   = "HW556_B",
-+      .of_board_id                            = "huawei,hg556a-b",
++static struct board_info __initdata board_HW556_A = {
++      .name                                   = "HW556_A",
++      .of_board_id                            = "huawei,hg556a-a",
 +      .expected_cpu_id                        = 0x6358,
 +
 +      .has_uart0                              = 1,
 +              },
 +      },
 +};
-+static struct board_info __initdata board_HW556_C = {
-+      .name                                   = "HW556_C",
-+      .of_board_id                            = "huawei,hg556a-c",
++static struct board_info __initdata board_HW556_B = {
++      .name                                   = "HW556_B",
++      .of_board_id                            = "huawei,hg556a-b",
 +      .expected_cpu_id                        = 0x6358,
 +
 +      .has_uart0                              = 1,
   /* T-Home Speedport W 303V Typ B */
  static struct board_info __initdata board_spw303v = {
        .name                   = "96358-502V",
-@@ -3105,6 +3595,10 @@ static const struct board_info __initcon
+@@ -3105,6 +3505,9 @@ static const struct board_info __initcon
        &board_nb4_fxc_r1,
        &board_ct6373_1,
        &board_HW553,
-+      &board_HW556,
 +      &board_HW556_A,
 +      &board_HW556_B,
 +      &board_HW556_C,
        &board_spw303v,
        &board_DVAG3810BN,
  #endif
---- a/drivers/mtd/bcm63xxpart.c
-+++ b/drivers/mtd/bcm63xxpart.c
-@@ -224,6 +224,11 @@ static int bcm63xx_parse_cfe_partitions(
-                             BCM63XX_CFE_BLOCK_SIZE);
-       cfelen = cfe_erasesize;
-+
-+      /* Fix HW556 MX29LV128DB */
-+      if (!strncmp(bcm63xx_nvram_get_name(), "HW556", 5))
-+              cfelen = 0x20000;
-+
-       nvramlen = bcm63xx_nvram_get_psi_size() * SZ_1K;
-       nvramlen = roundup(nvramlen, cfe_erasesize);
-       nvramaddr = master->size - nvramlen;
index d63f88922bfd9a135c9fe101efeae5cc467439dd..455ccc43eb74e3648168579ca0c29b42a9bfd047 100644 (file)
@@ -61,7 +61,7 @@
  #endif /* CONFIG_BCM63XX_CPU_6345 */
  
  /*
-@@ -3560,6 +3614,7 @@ static const struct board_info __initcon
+@@ -3470,6 +3524,7 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6345
        &board_96345gw2,
        &board_rta770bw,
index 9d90deaffae5afdf0559282466344fcee88b6f66..d082c499cb92247ed9a2113d6ebc200ff4ba37da 100644 (file)
@@ -135,7 +135,7 @@ Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
  #endif /* CONFIG_BCM63XX_CPU_6328 */
  
  /*
-@@ -3604,6 +3720,7 @@ static const struct board_info __initcon
+@@ -3514,6 +3630,7 @@ static const struct board_info __initcon
        &board_963281TAN,
        &board_A4001N1,
        &board_dsl_274xb_f1,
index db66540f70fd31dd405ee319786326db41957462..88a0f8ff637b514ecc5c98a91dd1fe06da2ff30f 100644 (file)
@@ -6,7 +6,7 @@ Signed-off-by: Max Staudt <openwrt.max@enpas.org>
 ---
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -3559,6 +3559,96 @@ static struct board_info __initdata boar
+@@ -3469,6 +3469,96 @@ static struct board_info __initdata boar
        .devs = nb6_devices,
        .num_devs = ARRAY_SIZE(nb6_devices),
  };
@@ -103,7 +103,7 @@ Signed-off-by: Max Staudt <openwrt.max@enpas.org>
  #endif /* CONFIG_BCM63XX_CPU_6362 */
  
  /*
-@@ -3777,6 +3867,7 @@ static const struct board_info __initcon
+@@ -3686,6 +3776,7 @@ static const struct board_info __initcon
  
  #ifdef CONFIG_BCM63XX_CPU_6362
        &board_nb6,
index d064e238c3c57f950b75e6b2bf336d061077c4cc..d28ed2f2d6f35192390079df7c9ad5440a66fa34 100644 (file)
@@ -94,7 +94,7 @@
   * known 6328 boards
   */
  #ifdef CONFIG_BCM63XX_CPU_6328
-@@ -4034,6 +4121,9 @@ static const struct board_info __initcon
+@@ -3944,6 +4031,9 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_3368
        &board_cvg834g,
  #endif
index 902bcab49306de49899191ae001011de805cb5e1..7eff2bc7dee0dfa4fe2ae5f5bd6ceb1704c7493d 100644 (file)
@@ -95,7 +95,7 @@
  #endif /* CONFIG_BCM63XX_CPU_6318 */
  
  /*
-@@ -4123,6 +4211,7 @@ static const struct board_info __initcon
+@@ -4033,6 +4121,7 @@ static const struct board_info __initcon
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6318
        &board_96318ref,
index 68ebf17ae9ad749681df4732b09d5cf74f9162d7..9ec979c9bac6c621290eab5685460fb9d1f3b218 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -4203,6 +4203,75 @@ static struct board_info __initdata boar
+@@ -4113,6 +4113,75 @@ static struct board_info __initdata boar
  #endif /* CONFIG_BCM63XX_CPU_6368 */
  
  /*
@@ -76,7 +76,7 @@
   * all boards
   */
  static const struct board_info __initconst *bcm963xx_boards[] = {
-@@ -4284,6 +4353,9 @@ static const struct board_info __initcon
+@@ -4193,6 +4262,9 @@ static const struct board_info __initcon
        &board_96368mvwg,
        &board_96368mvngr,
  #endif
index 243007bfbf05ac4b734dd20d8c0593101d259683..46ea23264a5c7c4ad70120e5a2c8969e21a73bbe 100644 (file)
@@ -61,7 +61,7 @@ Signed-off-by: Adrian Feliks <mexit@o2.pl>
  
  /* BT Voyager 2110 */
  static struct board_info __initdata board_V2110 = {
-@@ -4323,6 +4369,7 @@ static const struct board_info __initcon
+@@ -4233,6 +4279,7 @@ static const struct board_info __initcon
        &board_96348A_122,
        &board_CPVA502plus,
        &board_96348W3,
index e55a003d28657d84a8f0e84b734cecbba87e75c5..dda02a5f39fef44cb10d29c485f850030e05cf10 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -4315,6 +4315,108 @@ static struct board_info __initdata boar
+@@ -4225,6 +4225,108 @@ static struct board_info __initdata boar
                },
        },
  };
  #endif /* CONFIG_BCM63XX_CPU_63268 */
  
  /*
-@@ -4402,6 +4504,7 @@ static const struct board_info __initcon
+@@ -4311,6 +4413,7 @@ static const struct board_info __initcon
  #endif
  #ifdef CONFIG_BCM63XX_CPU_63268
        &board_963269bhr,
index 61528bf9fe8bf10ab3828ce4d635599b543c7b21..e5651337bf1f3e1dbff40a05f31593b42589ceb8 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -4252,6 +4252,131 @@ static struct board_info __initdata boar
+@@ -4162,6 +4162,131 @@ static struct board_info __initdata boar
   * known 63268/63269 boards
   */
  #ifdef CONFIG_BCM63XX_CPU_63268
  static struct board_info __initdata board_963269bhr = {
        .name                           = "963269BHR",
        .expected_cpu_id                = 0x63268,
-@@ -4503,6 +4628,7 @@ static const struct board_info __initcon
+@@ -4412,6 +4537,7 @@ static const struct board_info __initcon
        &board_96368mvngr,
  #endif
  #ifdef CONFIG_BCM63XX_CPU_63268
index 86e6a5faa6a651b8a0f24746af4146495a684104..e35d77562d73a03986352713be418cf71d095ca0 100644 (file)
@@ -8,7 +8,7 @@
  #include <linux/platform_device.h>
  #include <linux/spi/spi.h>
  #include <linux/spi/spi_gpio.h>
-@@ -4246,6 +4247,117 @@ static struct board_info __initdata boar
+@@ -4156,6 +4157,117 @@ static struct board_info __initdata boar
        .has_ohci0 = 1,
        .has_ehci0 = 1,
  };
  #endif /* CONFIG_BCM63XX_CPU_6368 */
  
  /*
-@@ -4626,6 +4738,7 @@ static const struct board_info __initcon
+@@ -4535,6 +4647,7 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6368
        &board_96368mvwg,
        &board_96368mvngr,
index 8ba638afc22fe61366a550b0ad2be631e609095e..27f5e691ab2e62577e3a6f8cc3c75d4dc337fb6d 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -4248,6 +4248,116 @@ static struct board_info __initdata boar
+@@ -4158,6 +4158,116 @@ static struct board_info __initdata boar
        .has_ehci0 = 1,
  };
  
  static struct b53_platform_data WAP5813n_b53_pdata = {
        .alias = "eth0",
  };
-@@ -4738,6 +4848,7 @@ static const struct board_info __initcon
+@@ -4647,6 +4757,7 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6368
        &board_96368mvwg,
        &board_96368mvngr,
index 36e21ab6e9e3b603a2e57496e9a8e1c40abcf413..44bd7ee2af0378dd1d08a5dc277c28abbb103e12 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -4358,6 +4358,116 @@ static struct board_info __initdata boar
+@@ -4268,6 +4268,116 @@ static struct board_info __initdata boar
        },
  };
  
  static struct b53_platform_data WAP5813n_b53_pdata = {
        .alias = "eth0",
  };
-@@ -4849,6 +4959,7 @@ static const struct board_info __initcon
+@@ -4758,6 +4868,7 @@ static const struct board_info __initcon
        &board_96368mvwg,
        &board_96368mvngr,
        &board_VR3025u,
index 205c4c742d4b6a22ce3911775d9eae7bf97bf810..9731cb5e86a1be7cfb02fc124c1d3b4469bc6d96 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -4257,6 +4257,96 @@ static struct sprom_fixup __initdata vr3
+@@ -4167,6 +4167,96 @@ static struct sprom_fixup __initdata vr3
        { .offset = 115, .value = 0xfad9 },
  };
  
@@ -97,7 +97,7 @@
  static struct board_info __initdata board_VR3025u = {
        .name                                   = "96368M-1541N",
        .expected_cpu_id                = 0x6368,
-@@ -4958,6 +5048,7 @@ static const struct board_info __initcon
+@@ -4867,6 +4957,7 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6368
        &board_96368mvwg,
        &board_96368mvngr,
index 8f9a22bca8324903b922de680a4e969387db597f..4ec1326f448844937e0644e95ee15160c5e11817 100644 (file)
  static struct board_info __initdata board_HW553 = {
        .name                           = "HW553",
        .expected_cpu_id                = 0x6358,
-@@ -5031,6 +5081,7 @@ static const struct board_info __initcon
+@@ -4941,6 +4991,7 @@ static const struct board_info __initcon
        &board_nb4_ser_r0,
        &board_nb4_fxc_r1,
        &board_ct6373_1,
 +      &board_HW520,
        &board_HW553,
-       &board_HW556,
        &board_HW556_A,
+       &board_HW556_B,
index 2954db83f6403223622d7044be1ed7db87e17987..420433275dec92317546b5cdee4dd6b26284ee5a 100644 (file)
@@ -96,7 +96,7 @@
  static struct board_info __initdata board_A4001N1 = {
        .name                                   = "963281T_TEF",
        .expected_cpu_id                        = 0x6328,
-@@ -5032,6 +5121,7 @@ static const struct board_info __initcon
+@@ -4942,6 +5031,7 @@ static const struct board_info __initcon
        &board_AR5381u,
        &board_AR5387un,
        &board_963281TAN,
index d02f4e033aa1b39c11838946e250a7f9fe7a8991..55457a5fa5c93ddaaf16fe906628e722fa50bfc4 100644 (file)
  #endif /* CONFIG_BCM63XX_CPU_6318 */
  
  /*
-@@ -5115,6 +5250,7 @@ static const struct board_info __initcon
+@@ -5025,6 +5160,7 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6318
        &board_96318ref,
        &board_96318ref_p300,