brcm63xx: convert RTA1025 to dts
[openwrt.git] / target / linux / brcm63xx / patches-3.14 / 526-board_CT6373-1.patch
index cad29a5..a5642cb 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
+@@ -43,6 +43,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,
-@@ -2335,6 +2342,117 @@ static struct board_info __initdata boar
+ /*
+  * known 3368 boards
+  */
+@@ -2035,6 +2041,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,
-@@ -2679,6 +2797,7 @@ static const struct board_info __initcon
-       &board_nb4_ser_r2,
+@@ -2376,6 +2500,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,
  #endif
+@@ -2427,6 +2552,7 @@ static struct of_device_id const bcm963x
+       { .compatible = "alcatel,rg100a", .data = &board_96358vw2, },
+       { .compatible = "brcm,bcm96358vw", .data = &board_96358vw, },
+       { .compatible = "brcm,bcm96358vw2", .data = &board_96358vw2, },
++      { .compatible = "comtrend,ct-6373", .data = &board_ct6373_1, },
+       { .compatible = "d-link,dsl-274xb-c2", .data = &board_dsl_274xb_rev_c, },
+       { .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
+       { .compatible = "huawei,hg553", .data = &board_HW553, },