brcm63xx: move MAGIC to dts
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.18 / 519_board_CPVA502plus.patch
index d7a808763c39671f4a3635eef1f9ccb4bf4d1b7d..1eed2c15c068a8a82b61c9537052bcf8de9f4196 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -530,6 +530,40 @@ static struct board_info __initdata boar
+@@ -425,6 +425,27 @@ static struct board_info __initdata boar
        },
  };
  
 +              .phy_id                 = 0,
 +      },
 +
-+      .leds = {
-+              {
-+                      .name           = "CPVA502+:green:phone",
-+                      .gpio           = 0,
-+                      .active_low     = 1,
-+              },
-+              {
-+                      .name           = "CPVA502+:amber:link",
-+                      .gpio           = 5,
-+                      .active_low     = 1,
-+              },
-+      },
-+
 +      .ephy_reset_gpio                = 4,
-+      .ephy_reset_gpio_flags          = GPIOF_INIT_HIGH,
++      .ephy_reset_gpio_flags          = GPIO_ACTIVE_LOW,
 +};
  
  static struct board_info __initdata board_ct536_ct5621 = {
        .name                           = "CT536_CT5621",
-@@ -1922,6 +1956,7 @@ static const struct board_info __initcon
+@@ -1127,6 +1148,7 @@ static const struct board_info __initcon
        &board_V2110,
        &board_ct536_ct5621,
        &board_96348A_122,
  #endif
  
  #ifdef CONFIG_BCM63XX_CPU_6358
+@@ -1178,6 +1200,7 @@ static struct of_device_id const bcm963x
+       { .compatible = "t-com,spw500v", .data = &board_spw500v, },
+       { .compatible = "tecom,gw6000", .data = &board_gw6000, },
+       { .compatible = "tecom,gw6200", .data = &board_gw6200, },
++      { .compatible = "telsey,cpva502+", .data = &board_CPVA502plus, },
+       { .compatible = "telsey,magic", .data = &board_96348sv, },
+       { .compatible = "tp-link,td-w8900gb", .data = &board_96348gw_11, },
+       { .compatible = "usr,9108", .data = &board_96348gw_a, },