brcm63xx: move buttons and leds to dts files
[openwrt.git] / target / linux / brcm63xx / patches-3.14 / 519_board_CPVA502plus.patch
index b5846ba..b0233a1 100644 (file)
@@ -1,10 +1,9 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -347,6 +347,42 @@ static struct board_info __initdata boar
-               },
+@@ -445,6 +445,27 @@ static struct board_info __initdata boar
        },
  };
-+
 +static struct board_info __initdata board_CPVA502plus = {
 +      .name                           = "CPVA502+",
 +      .expected_cpu_id                = 0x6348,
 +              .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,
 +};
-+
- #endif
  
- /*
-@@ -2232,6 +2268,7 @@ static const struct board_info __initcon
+ static struct board_info __initdata board_ct536_ct5621 = {
+       .name                           = "CT536_CT5621",
+@@ -1185,6 +1206,7 @@ static const struct board_info __initcon
        &board_V2110,
        &board_ct536_ct5621,
        &board_96348A_122,