brcm63xx: Add fallback sprom for CT6373
authorJonas Gorski <jogo@openwrt.org>
Sun, 10 Aug 2014 12:21:48 +0000 (12:21 +0000)
committerJonas Gorski <jogo@openwrt.org>
Sun, 10 Aug 2014 12:21:48 +0000 (12:21 +0000)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42101

25 files changed:
target/linux/brcm63xx/patches-3.14/526-board_CT6373-1.patch
target/linux/brcm63xx/patches-3.14/527-board_dva-g3810bn-tl-1.patch
target/linux/brcm63xx/patches-3.14/528-board_nb6.patch
target/linux/brcm63xx/patches-3.14/529-board_fast2604.patch
target/linux/brcm63xx/patches-3.14/530-board_A4001N1.patch
target/linux/brcm63xx/patches-3.14/531-board_AR-5387un.patch
target/linux/brcm63xx/patches-3.14/532-board_AR-5381u.patch
target/linux/brcm63xx/patches-3.14/533-board_rta770bw.patch
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 4a1cfb48a859d1ac5f7c1fb6f6dd26e67fd8a0b9..96ef61c7293cc2ec5165595f56c335e6fa227dc3 100644 (file)
@@ -13,7 +13,7 @@
  /*
   * known 3368 boards
   */
-@@ -2427,6 +2433,117 @@ static struct board_info __initdata boar
+@@ -2427,6 +2433,124 @@ static struct board_info __initdata boar
        .num_spis = ARRAY_SIZE(nb4_spi_devices),
  };
  
@@ -62,6 +62,7 @@
 +
 +      .has_uart0                      = 1,
 +      .has_pci                        = 1,
++      .use_fallback_sprom             = 1,
 +      .has_ohci0                      = 1,
 +      .has_ehci0                      = 1,
 +
 +              },
 +      },
 +
++      .fallback_sprom = {
++              .type                           = SPROM_BCM4318,
++              .pci_bus                        = 0,
++              .pci_dev                        = 1,
++      },
++
 +      .devs = ct6373_devices,
 +      .num_devs = ARRAY_SIZE(ct6373_devices),
 +      .spis = ct6373_spi_devices,
  static struct board_info __initdata board_HW553 = {
        .name                           = "HW553",
        .expected_cpu_id                = 0x6358,
-@@ -2705,6 +2822,7 @@ static const struct board_info __initcon
+@@ -2705,6 +2829,7 @@ static const struct board_info __initcon
        &board_nb4_ser_r2,
        &board_nb4_fxc_r1,
        &board_nb4_fxc_r2,
index a99885709371d70a4f6cf1d50d1b18e059e36243..89619885f81d273260fff1592bb999ed6c85f94e 100644 (file)
@@ -74,7 +74,7 @@
  #endif
  
  /*
-@@ -2825,6 +2892,7 @@ static const struct board_info __initcon
+@@ -2832,6 +2899,7 @@ static const struct board_info __initcon
        &board_ct6373_1,
        &board_HW553,
        &board_spw303v,
index 8dec4ad80acad844abb6c777defbdb64c35dee53..7e4f6ebb1a064aea920d022fe45923b2af1c08f6 100644 (file)
@@ -17,7 +17,7 @@
  
  #define CT6373_PID_OFFSET             0xff80
  #define CT6373_74X164_GPIO_BASE       64
-@@ -2689,6 +2692,104 @@ static struct board_info __initdata boar
+@@ -2696,6 +2699,104 @@ static struct board_info __initdata boar
  };
  #endif
  
  /*
   * known 6368 boards
   */
-@@ -2895,6 +2996,10 @@ static const struct board_info __initcon
+@@ -2902,6 +3003,10 @@ static const struct board_info __initcon
        &board_DVAG3810BN,
  #endif
  
  #ifdef CONFIG_BCM63XX_CPU_6368
        &board_96368mvwg,
        &board_96368mvngr,
-@@ -2916,6 +3021,11 @@ static void __init boardid_fixup(u8 *boo
+@@ -2923,6 +3028,11 @@ static void __init boardid_fixup(u8 *boo
                }
        }
  
index b516043289c9201d0b0300cea1b8980abcc43cf9..8c03e4a0e153351ac1d83cc29c02d73fd390f25c 100644 (file)
@@ -58,7 +58,7 @@
  static struct board_info __initdata board_rta1025w_16 = {
        .name                           = "RTA1025W_16",
        .expected_cpu_id                = 0x6348,
-@@ -2964,6 +3015,7 @@ static const struct board_info __initcon
+@@ -2971,6 +3022,7 @@ static const struct board_info __initcon
        &board_96348gw_10,
        &board_96348gw_11,
        &board_FAST2404,
index d7433978623847bfe19a00e1c796ff4bbf869c8f..19fe3f6e1268b7942b44e71a2678375128c3b866 100644 (file)
  static struct board_info __initdata board_dsl_274xb_f1 = {
        .name                           = "AW4339U",
        .expected_cpu_id                = 0x6328,
-@@ -2996,6 +3116,7 @@ static const struct board_info __initcon
+@@ -3003,6 +3123,7 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6328
        &board_96328avng,
        &board_963281TAN,
index ea9a3d9c3ec6788ba2010efd1b7e28d6d0727ddd..a87ea224fcaed1fd033501207adee1b374e6321d 100644 (file)
@@ -80,7 +80,7 @@
  static struct board_info __initdata board_963281TAN = {
        .name                           = "963281TAN",
        .expected_cpu_id                = 0x6328,
-@@ -3115,6 +3188,7 @@ static const struct board_info __initcon
+@@ -3122,6 +3195,7 @@ static const struct board_info __initcon
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6328
        &board_96328avng,
index e8ad7351e34d80150c45e42264031ddd8f412932..f1332081189f016cd893ff21ad049ae23a539749 100644 (file)
@@ -74,7 +74,7 @@
  static struct board_info __initdata board_AR5387un = {
        .name                                   = "96328A-1441N1",
        .expected_cpu_id                        = 0x6328,
-@@ -3188,6 +3255,7 @@ static const struct board_info __initcon
+@@ -3195,6 +3262,7 @@ static const struct board_info __initcon
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6328
        &board_96328avng,
index 8e84c5c81bbcc35cbef598845da0c94b1cd9e77b..afd8cb6677a995fa8902bfc8e9a113cab88c304f 100644 (file)
@@ -56,7 +56,7 @@
  #endif
  
  /*
-@@ -3269,6 +3318,7 @@ static const struct board_info __initcon
+@@ -3276,6 +3325,7 @@ static const struct board_info __initcon
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6345
        &board_96345gw2,
index 593d973babc6348f78aa5f5f56888194de118bda..4d8cf5f5cc151d023eb6e0b9dfe94f3b04c27627 100644 (file)
   /* T-Home Speedport W 303V Typ B */
  static struct board_info __initdata board_spw303v = {
        .name                   = "96358-502V",
-@@ -3357,6 +3844,10 @@ static const struct board_info __initcon
+@@ -3364,6 +3851,10 @@ static const struct board_info __initcon
        &board_nb4_fxc_r2,
        &board_ct6373_1,
        &board_HW553,
        &board_spw303v,
        &board_DVAG3810BN,
  #endif
-@@ -3376,13 +3867,37 @@ static void __init boardid_fixup(u8 *boo
+@@ -3383,13 +3874,37 @@ static void __init boardid_fixup(u8 *boo
        struct bcm_tag *tag = (struct bcm_tag *)(boot_addr + CFE_OFFSET_64K);
        char *board_name = (char *)bcm63xx_nvram_get_name();
  
index 49a61af53f0c62c05e0880cd876bc112943d1c50..a0ff6b3e8cd89f3afd6cc393137a23a463e5776f 100644 (file)
@@ -61,7 +61,7 @@
  #endif
  
  /*
-@@ -3806,6 +3860,7 @@ static const struct board_info __initcon
+@@ -3813,6 +3867,7 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6345
        &board_96345gw2,
        &board_rta770bw,
index bdcea16dfcb74c1db3ac5f68a7f4c3f28a8f6624..ce3efc16f1f15e18fc43c2f9fd71cc41ac43a2c8 100644 (file)
@@ -135,7 +135,7 @@ Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
  static struct board_info __initdata board_rta1025w_16 = {
        .name                           = "RTA1025W_16",
        .expected_cpu_id                = 0x6348,
-@@ -3850,6 +3966,7 @@ static const struct board_info __initcon
+@@ -3857,6 +3973,7 @@ static const struct board_info __initcon
        &board_963281TAN,
        &board_A4001N1,
        &board_dsl_274xb_f1,
index 1773c3c9cda580cc1eb11e349afb9a6c6c39f435..8f65cef53e17b2894bf0462b705b94dfa6767efd 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
-@@ -3805,6 +3805,96 @@ static struct board_info __initdata boar
+@@ -3812,6 +3812,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
  
  /*
-@@ -4026,6 +4116,7 @@ static const struct board_info __initcon
+@@ -4033,6 +4123,7 @@ static const struct board_info __initcon
  
  #ifdef CONFIG_BCM63XX_CPU_6362
        &board_nb6,
index 7b4b5fb74a78df82106e863de65df6b918ce59f9..92ee2128e2f4c1d8cc86f487308b9e52b8495625 100644 (file)
@@ -94,7 +94,7 @@
   * known 6328 boards
   */
  #ifdef CONFIG_BCM63XX_CPU_6328
-@@ -4280,6 +4367,9 @@ static const struct board_info __initcon
+@@ -4287,6 +4374,9 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_3368
        &board_cvg834g,
  #endif
index 6fdaf813d79ad4e8622629339b3462a4b9a36627..d2b20b54aabda8116f2fe9ab441f2f784c06565c 100644 (file)
@@ -95,7 +95,7 @@
  #endif
  
  /*
-@@ -4369,6 +4457,7 @@ static const struct board_info __initcon
+@@ -4376,6 +4464,7 @@ static const struct board_info __initcon
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6318
        &board_96318ref,
index 9a06e79cee8c37c6f862b7d57ae182edfd802c7e..3ddafa9b2b1f043ba546b37c64df3a39d3427b0a 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -4449,6 +4449,75 @@ static struct board_info __initdata boar
+@@ -4456,6 +4456,75 @@ static struct board_info __initdata boar
  #endif
  
  /*
@@ -76,7 +76,7 @@
   * all boards
   */
  static const struct board_info __initconst *bcm963xx_boards[] = {
-@@ -4533,6 +4602,9 @@ static const struct board_info __initcon
+@@ -4540,6 +4609,9 @@ static const struct board_info __initcon
        &board_96368mvwg,
        &board_96368mvngr,
  #endif
index b2e7015789f893bbd404084093a5cd5b84f526fa..f2958d82d8c8b6fbdac7f724a6b7fca8d896bd39 100644 (file)
@@ -60,7 +60,7 @@ Signed-off-by: Adrian Feliks <mexit@o2.pl>
  #endif
  
  /*
-@@ -4569,6 +4614,7 @@ static const struct board_info __initcon
+@@ -4576,6 +4621,7 @@ static const struct board_info __initcon
        &board_96348A_122,
        &board_CPVA502plus,
        &board_96348W3,
index adbd0f9bec4bf7532c3bbf1875bbf55fb20f8cc3..bffb7ab8ace35917fc8b2a287a111e66a2ef7761 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -4560,6 +4560,108 @@ static struct board_info __initdata boar
+@@ -4567,6 +4567,108 @@ static struct board_info __initdata boar
                },
        },
  };
  #endif
  
  /*
-@@ -4650,6 +4752,7 @@ static const struct board_info __initcon
+@@ -4657,6 +4759,7 @@ static const struct board_info __initcon
  #endif
  #ifdef CONFIG_BCM63XX_CPU_63268
        &board_963269bhr,
index 531759b4a18c980f83004b5fef26b2a87e653649..f51b0fc963f38ff78b84e351bda0acefd1f873a6 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -4497,6 +4497,131 @@ static struct board_info __initdata boar
+@@ -4504,6 +4504,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,
-@@ -4751,6 +4876,7 @@ static const struct board_info __initcon
+@@ -4758,6 +4883,7 @@ static const struct board_info __initcon
        &board_96368mvngr,
  #endif
  #ifdef CONFIG_BCM63XX_CPU_63268
index d60352a4fb86e797e9518ae9ab0693b3286f8640..e409cf4c508b5b50627c1898a32d1fb0364813df 100644 (file)
@@ -8,7 +8,7 @@
  #include <linux/platform_device.h>
  #include <linux/spi/spi.h>
  #include <linux/spi/spi_gpio.h>
-@@ -4491,6 +4492,99 @@ static struct board_info __initdata boar
+@@ -4498,6 +4499,99 @@ static struct board_info __initdata boar
        .has_ohci0 = 1,
        .has_ehci0 = 1,
  };
  #endif
  
  /*
-@@ -4874,6 +4968,7 @@ static const struct board_info __initcon
+@@ -4881,6 +4975,7 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6368
        &board_96368mvwg,
        &board_96368mvngr,
index 273d4ef933ca8cae163e425950abf3599b3b5247..183baa634acbca5a22b33b221d129abaee2babff 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -4493,6 +4493,98 @@ static struct board_info __initdata boar
+@@ -4500,6 +4500,98 @@ static struct board_info __initdata boar
        .has_ehci0 = 1,
  };
  
@@ -99,7 +99,7 @@
  static struct b53_platform_data WAP5813n_b53_pdata = {
        .alias = "eth0",
  };
-@@ -4968,6 +5060,7 @@ static const struct board_info __initcon
+@@ -4975,6 +5067,7 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6368
        &board_96368mvwg,
        &board_96368mvngr,
index cfe22611405b5afb184e154f0abba32f5591caa7..529f2fbd608b288092cfe6204207162c2137969a 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -4585,6 +4585,98 @@ static struct board_info __initdata boar
+@@ -4592,6 +4592,98 @@ static struct board_info __initdata boar
        },
  };
  
@@ -99,7 +99,7 @@
  static struct b53_platform_data WAP5813n_b53_pdata = {
        .alias = "eth0",
  };
-@@ -5061,6 +5153,7 @@ static const struct board_info __initcon
+@@ -5068,6 +5160,7 @@ static const struct board_info __initcon
        &board_96368mvwg,
        &board_96368mvngr,
        &board_VR3025u,
index ecfa8ea4e3f4515355b92c7b647a8e4b8fc5f021..551c832e528ffef159cd2c5ab77ccec388750a94 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -4493,6 +4493,89 @@ static struct board_info __initdata boar
+@@ -4500,6 +4500,89 @@ static struct board_info __initdata boar
        .has_ehci0 = 1,
  };
  
@@ -90,7 +90,7 @@
  static struct board_info __initdata board_VR3025u = {
        .name                                   = "96368M-1541N",
        .expected_cpu_id                = 0x6368,
-@@ -5152,6 +5235,7 @@ static const struct board_info __initcon
+@@ -5159,6 +5242,7 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6368
        &board_96368mvwg,
        &board_96368mvngr,
index 451b0445ac6f1cb6230ffffba519d61e479ab3b8..cc6acb1bde276cc146cfd9fa635570a700c02220 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -4083,6 +4083,49 @@ static struct board_info __initdata boar
+@@ -4090,6 +4090,49 @@ static struct board_info __initdata boar
        .num_spis = ARRAY_SIZE(ct6373_spi_devices),
  };
  
@@ -50,7 +50,7 @@
  static struct board_info __initdata board_HW553 = {
        .name                           = "HW553",
        .expected_cpu_id                = 0x6358,
-@@ -5218,6 +5261,7 @@ static const struct board_info __initcon
+@@ -5225,6 +5268,7 @@ static const struct board_info __initcon
        &board_nb4_fxc_r1,
        &board_nb4_fxc_r2,
        &board_ct6373_1,
index e96100272d4cb070ed2870c5513186031c639c39..7f411df62197f9453160b4976a004550a1cf98ae 100644 (file)
@@ -89,7 +89,7 @@
  static struct board_info __initdata board_A4001N1 = {
        .name                                   = "963281T_TEF",
        .expected_cpu_id                        = 0x6328,
-@@ -5209,6 +5291,7 @@ static const struct board_info __initcon
+@@ -5216,6 +5298,7 @@ static const struct board_info __initcon
        &board_AR5381u,
        &board_AR5387un,
        &board_963281TAN,
index e3160d5a82f9b1fcf8dc46df4a3eeb2a76437e4b..f59c6c2db74fe5df37d66c2d762bcf38eceb5dcd 100644 (file)
  #endif
  
  /*
-@@ -5285,6 +5420,7 @@ static const struct board_info __initcon
+@@ -5292,6 +5427,7 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6318
        &board_96318ref,
        &board_96318ref_p300,