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

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 83bd1ec8f20e6a1d510a4775fd4484a3a899166f..6bafd8976398470a3020658654d9cf0b0d0c2c67 100644 (file)
@@ -8,7 +8,7 @@
  #include <linux/platform_device.h>
  #include <linux/spi/spi.h>
  #include <linux/spi/spi_gpio.h>
-@@ -4559,6 +4560,99 @@ static struct board_info __initdata boar
+@@ -4559,6 +4560,117 @@ static struct board_info __initdata boar
        .has_ohci0 = 1,
        .has_ehci0 = 1,
  };
 +      }
 +};
 +
++static struct sprom_fixup __initdata wap5813n_fixups[] = {
++      { .offset = 97, .value = 0xfeed },
++      { .offset = 98, .value = 0x15d1 },
++      { .offset = 99, .value = 0xfb0d },
++      { .offset = 113, .value = 0xfef7 },
++      { .offset = 114, .value = 0x15f7 },
++      { .offset = 115, .value = 0xfb1a },
++};
++
 +static struct board_info __initdata board_WAP5813n = {
 +      .name                           = "96369R-1231N",
 +      .expected_cpu_id                = 0x6368,
 +
 +      .has_uart0                      = 1,
 +      .has_pci                        = 1,
++      .use_fallback_sprom             = 1,
 +      .has_ohci0                      = 1,
 +      .has_ehci0                      = 1,
 +
 +              },
 +      },
 +
++      .fallback_sprom = {
++              .type                           = SPROM_BCM43222,
++              .pci_bus                        = 0,
++              .pci_dev                        = 1,
++              .board_fixups                   = wap5813n_fixups,
++              .num_board_fixups               = ARRAY_SIZE(wap5813n_fixups),
++      },
++
 +      .spis = WAP5813n_spi_devices,
 +      .num_spis = ARRAY_SIZE(WAP5813n_spi_devices),
 +};
  #endif
  
  /*
-@@ -4942,6 +5036,7 @@ static const struct board_info __initcon
+@@ -4942,6 +5054,7 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6368
        &board_96368mvwg,
        &board_96368mvngr,
index ea29e00d7bf2fb0299afd6692ad43d43548f7819..f0f7dab614ce1ac81af57a73e44162c86daa72bc 100644 (file)
@@ -99,7 +99,7 @@
  static struct b53_platform_data WAP5813n_b53_pdata = {
        .alias = "eth0",
  };
-@@ -5036,6 +5128,7 @@ static const struct board_info __initcon
+@@ -5054,6 +5146,7 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6368
        &board_96368mvwg,
        &board_96368mvngr,
index bc18ba15fab6664dc5281622af60a39ec735d933..890ce02da7840c159d03c03e9d05731fd01ac922 100644 (file)
@@ -99,7 +99,7 @@
  static struct b53_platform_data WAP5813n_b53_pdata = {
        .alias = "eth0",
  };
-@@ -5129,6 +5221,7 @@ static const struct board_info __initcon
+@@ -5147,6 +5239,7 @@ static const struct board_info __initcon
        &board_96368mvwg,
        &board_96368mvngr,
        &board_VR3025u,
index 5312c9869b6bddcc7512cd14f198a3dd22861795..16d3f64527c1d386c0c9edc4981c8cd14d6bbbf1 100644 (file)
@@ -90,7 +90,7 @@
  static struct board_info __initdata board_VR3025u = {
        .name                                   = "96368M-1541N",
        .expected_cpu_id                = 0x6368,
-@@ -5220,6 +5303,7 @@ static const struct board_info __initcon
+@@ -5238,6 +5321,7 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6368
        &board_96368mvwg,
        &board_96368mvngr,
index e518fc3a6c3db10ea95cb9c4fb977959880b7234..f5fd41e4ae5909a0fa35109cc41a0f6b169f7853 100644 (file)
@@ -50,7 +50,7 @@
  static struct board_info __initdata board_HW553 = {
        .name                           = "HW553",
        .expected_cpu_id                = 0x6358,
-@@ -5286,6 +5329,7 @@ static const struct board_info __initcon
+@@ -5304,6 +5347,7 @@ static const struct board_info __initcon
        &board_nb4_fxc_r1,
        &board_nb4_fxc_r2,
        &board_ct6373_1,
index 8e693ec9298dab2f360ae5615d277a210e7015dd..cd517339bbffd535b876da5125b0d7df588d4b02 100644 (file)
@@ -89,7 +89,7 @@
  static struct board_info __initdata board_A4001N1 = {
        .name                                   = "963281T_TEF",
        .expected_cpu_id                        = 0x6328,
-@@ -5277,6 +5359,7 @@ static const struct board_info __initcon
+@@ -5295,6 +5377,7 @@ static const struct board_info __initcon
        &board_AR5381u,
        &board_AR5387un,
        &board_963281TAN,
index abdfcdd804a23820ab853a0144507ac70315dd8e..6474e9afaf217d42c984183b2ea16c163f1c465e 100644 (file)
  #endif
  
  /*
-@@ -5353,6 +5488,7 @@ static const struct board_info __initcon
+@@ -5371,6 +5506,7 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6318
        &board_96318ref,
        &board_96318ref_p300,