ar71xx: add v4.14 support
[openwrt/openwrt.git] / target / linux / ar71xx / files / arch / mips / ath79 / mach-dir-869-a1.c
index 58474238916b37af3056ddc7147234de193c0238..3841c3d5d5e737f584e64b761c3e0693c30d8cb4 100644 (file)
@@ -42,8 +42,8 @@
 
 #define DIR869A1_GPIO_ENABLE_SWITCH    11
 
-#define DIR869A1_GPIO_LED_POWER                15
-#define DIR869A1_GPIO_LED_ORANGE       16
+#define DIR869A1_GPIO_LED_ORANGE       15
+#define DIR869A1_GPIO_LED_WHITE                16
 
 #define DIR869A1_KEYS_POLL_INTERVAL    20 /* msecs */
 #define DIR869A1_KEYS_DEBOUNCE_INTERVAL        (3 * DIR869A1_KEYS_POLL_INTERVAL)
 
 static struct gpio_led dir869a1_leds_gpio[] __initdata = {
        {
-               /* Actually, this GPIO controls the LED power,
-                * while d-link:orange:status switches it between
-                * orange and white */
                .name           = "d-link:white:status",
-               .gpio           = DIR869A1_GPIO_LED_POWER,
+               .gpio           = DIR869A1_GPIO_LED_WHITE,
                .active_low     = 1,
        },
        {
                .name           = "d-link:orange:status",
                .gpio           = DIR869A1_GPIO_LED_ORANGE,
-               .active_low     = 0,
+               .active_low     = 1,
        },
 };
 
@@ -121,7 +118,7 @@ static struct ar8327_platform_data dir869a1_ar8327_data = {
 static struct mdio_board_info dir869a1_mdio0_info[] = {
        {
                .bus_id = "ag71xx-mdio.0",
-               .phy_addr = 0,
+               .mdio_addr = 0,
                .platform_data = &dir869a1_ar8327_data,
        },
 };