diff options
author | John Crispin <blogic@openwrt.org> | 2014-06-02 15:02:54 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-06-02 15:02:54 +0000 |
commit | 9a219d99423f97852b532af2708a23d743b489d5 (patch) | |
tree | d116965c6507d8749d119c9a4a7a4230db9976cf /target/linux | |
parent | f662ba0148f5e8a255521408e81d1414f8ba759e (diff) | |
download | master-187ad058-9a219d99423f97852b532af2708a23d743b489d5.tar.gz master-187ad058-9a219d99423f97852b532af2708a23d743b489d5.tar.bz2 master-187ad058-9a219d99423f97852b532af2708a23d743b489d5.zip |
ar71xx: WNDAP360 adding wifi LED support
I added WIFI LED support (so now AP blinks nicely), I removed WPS
button GPIO (as it doesn't exist) and changed GPIO for reset button.
Signed-off-by: Jacek Kikiewicz <jaceq@aol.pl>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40976 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-wndap360.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wndap360.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wndap360.c index 80b0cf36be..e70d88b407 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wndap360.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wndap360.c @@ -28,9 +28,7 @@ #define WNDAP360_GPIO_LED_POWER_GREEN 2 /* Reset button - next to the power connector */ -#define WNDAP360_GPIO_BTN_RESET 3 -/* WPS button - next to a led on right */ -#define WNDAP360_GPIO_BTN_WPS 8 +#define WNDAP360_GPIO_BTN_RESET 8 #define WNDAP360_KEYS_POLL_INTERVAL 20 /* msecs */ #define WNDAP360_KEYS_DEBOUNCE_INTERVAL (3 * WNDAP360_KEYS_POLL_INTERVAL) @@ -95,6 +93,9 @@ static void __init wndap360_setup(void) ARRAY_SIZE(wndap360_gpio_keys), wndap360_gpio_keys); + ap9x_pci_setup_wmac_led_pin(0, 5); + ap9x_pci_setup_wmac_led_pin(1, 5); + ap94_pci_init(art + WNDAP360_CALDATA0_OFFSET, art + WNDAP360_WMAC0_MAC_OFFSET, art + WNDAP360_CALDATA1_OFFSET, |