brcm63xx: add and enable support for loading an appended dtb
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.14 / 526-board_CT6373-1.patch
index ad3ec7d421ef96d9d8604d5347a3cfe2c30993b6..a8a4841be104a234f72bbdafeab8101ed1713b4c 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -635,6 +635,13 @@ static struct board_info __initdata boar
+@@ -47,6 +47,12 @@
  #define NB4_SPI_GPIO_CLK      6
  #define NB4_74HC64_GPIO(X)    (NB4_74X164_GPIO_BASE + (X))
  
 +#define CT6373_SPI_GPIO_CLK           6
 +#define CT6373_74HC64_GPIO(X) (CT6373_74X164_GPIO_BASE + (X))
 +
-+
-       .has_ohci0 = 1,
-       .has_pccard = 1,
-@@ -2339,6 +2346,117 @@ static struct board_info __initdata boar
+ /*
+  * known 3368 boards
+  */
+@@ -2376,6 +2382,124 @@ static struct board_info __initdata boar
        .num_spis = ARRAY_SIZE(nb4_spi_devices),
  };
  
@@ -63,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,
-@@ -2683,6 +2801,7 @@ static const struct board_info __initcon
+@@ -2720,6 +2844,7 @@ static const struct board_info __initcon
        &board_nb4_ser_r2,
        &board_nb4_fxc_r1,
        &board_nb4_fxc_r2,