brcm63xx: Add DT support for CT-5365
[openwrt/openwrt.git] / target / linux / brcm63xx / patches-3.14 / 526-board_CT6373-1.patch
index e1fbf8cbe5d05019a50d5a3cbf05a27182d68a04..5d4c6208fb51982066c19a45004f5b8caa6b1fee 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -47,6 +47,12 @@
+@@ -43,6 +43,12 @@
  #define NB4_SPI_GPIO_CLK      6
  #define NB4_74HC64_GPIO(X)    (NB4_74X164_GPIO_BASE + (X))
  
@@ -13,7 +13,7 @@
  /*
   * known 3368 boards
   */
-@@ -2420,6 +2426,117 @@ static struct board_info __initdata boar
+@@ -2050,6 +2056,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,
-@@ -2698,6 +2815,7 @@ static const struct board_info __initcon
-       &board_nb4_ser_r2,
+@@ -2391,6 +2515,7 @@ static const struct board_info __initcon
+       &board_dsl_274xb_rev_c,
+       &board_nb4_ser_r0,
        &board_nb4_fxc_r1,
-       &board_nb4_fxc_r2,
 +      &board_ct6373_1,
        &board_HW553,
        &board_spw303v,