ar71xx: add inital support for the ALFA Network AP96 board
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / files / arch / mips / ar71xx / mach-wrt400n.c
index fd0e5de0e201095ea5ce10ab0eba2b4c0d13a1ee..6d8d55fafa9b4a8b0a7757cf2dc584f066c72b16 100644 (file)
 #include "dev-gpio-buttons.h"
 #include "dev-leds-gpio.h"
 
-#define WRT400N_GPIO_LED_ORANGE        5
-#define WRT400N_GPIO_LED_GREEN 4
-#define WRT400N_GPIO_LED_POWER 1
-#define WRT400N_GPIO_LED_WLAN  0
+#define WRT400N_GPIO_LED_POWER         1
+#define WRT400N_GPIO_LED_WPS_BLUE      4
+#define WRT400N_GPIO_LED_WPS_AMBER     5
+#define WRT400N_GPIO_LED_WLAN          6
 
 #define WRT400N_GPIO_BTN_RESET 8
 #define WRT400N_GPIO_BTN_WLSEC 3
@@ -93,21 +93,22 @@ static struct flash_platform_data wrt400n_flash_data = {
 
 static struct gpio_led wrt400n_leds_gpio[] __initdata = {
        {
-               .name           = "wrt400n:green:status",
-               .gpio           = WRT400N_GPIO_LED_GREEN,
+               .name           = "wrt400n:blue:wps",
+               .gpio           = WRT400N_GPIO_LED_WPS_BLUE,
                .active_low     = 1,
        }, {
-               .name           = "wrt400n:amber:aoss",
-               .gpio           = WRT400N_GPIO_LED_ORANGE,
+               .name           = "wrt400n:amber:wps",
+               .gpio           = WRT400N_GPIO_LED_WPS_AMBER,
                .active_low     = 1,
        }, {
-               .name           = "wrt400n:green:wlan",
+               .name           = "wrt400n:blue:wlan",
                .gpio           = WRT400N_GPIO_LED_WLAN,
                .active_low     = 1,
        }, {
-               .name           = "wrt400n:green:power",
+               .name           = "wrt400n:blue:power",
                .gpio           = WRT400N_GPIO_LED_POWER,
-               .active_low     = 1,
+               .active_low     = 0,
+               .default_trigger = "default-on",
        }
 };
 
@@ -134,7 +135,7 @@ static void __init wrt400n_setup(void)
        u8 *art = (u8 *) KSEG1ADDR(0x1fff0000);
        u8 *mac = art + WRT400N_MAC_ADDR_OFFSET;
 
-       ar71xx_add_device_mdio(0x0);
+       ar71xx_add_device_mdio(0, 0x0);
 
        ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac, 1);
        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;