This patch adds led support for WeIO board.
WeIO is the new AR9331 MIPS based board for Internet of Things.
Project web-site is: http://we-io.net/
From ef42b3f73ff685589f3d5df50f8a88942ca51985 Mon Sep 17 00:00:00 2001
From: Drasko DRASKOVIC <[email protected]>
Date: Sat, 22 Mar 2014 17:12:14 +0100
Subject: [PATCH 2/5] weio: leds - enable STA and AP leds for WeIO board
mach-weio: led names to correspond to convention.
---
.../linux/ar71xx/files/arch/mips/ath79/mach-weio.c | 28 ++++++++++------------
1 file changed, 12 insertions(+), 16 deletions(-)
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-weio.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-weio.c
index 6a18ae9..3b5a40b 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-weio.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-weio.c
@@ -45,12 +45,12 @@
#include "dev-wmac.h"
#include "machtypes.h"
-#define WEIO_GPIO_LED_WLAN 0
-#define WEIO_GPIO_LED_ETH0 14
-#define WEIO_GPIO_LED_ETH1 13
+#define WEIO_GPIO_LED_STA 1
+#define WEIO_GPIO_LED_AP 16
+//#define WEIO_GPIO_LED_ETH0 13
-#define WEIO_GPIO_BTN_JUMPSTART 11
-#define WEIO_GPIO_BTN_RESET 12
+#define WEIO_GPIO_BTN_AP 20
+#define WEIO_GPIO_BTN_RESET 15
#define WEIO_KEYS_POLL_INTERVAL 20 /* msecs */
#define WEIO_KEYS_DEBOUNCE_INTERVAL (3 * WEIO_KEYS_POLL_INTERVAL)
@@ -62,27 +62,23 @@
static struct gpio_led weio_leds_gpio[] __initdata = {
{
- .name = "weio:green:wlan",
- .gpio = WEIO_GPIO_LED_WLAN,
+ .name = "weio:green:sta",
+ .gpio = WEIO_GPIO_LED_STA,
.active_low = 1,
}, {
- .name = "weio:orange:eth0",
- .gpio = WEIO_GPIO_LED_ETH0,
- .active_low = 0,
- }, {
- .name = "weio:orange:eth1",
- .gpio = WEIO_GPIO_LED_ETH1,
- .active_low = 0,
+ .name = "weio:green:ap",
+ .gpio = WEIO_GPIO_LED_AP,
+ .active_low = 1,
}
};
static struct gpio_keys_button weio_gpio_keys[] __initdata = {
{
- .desc = "jumpstart button",
+ .desc = "ap button",
.type = EV_KEY,
.code = KEY_WPS_BUTTON,
.debounce_interval = WEIO_KEYS_DEBOUNCE_INTERVAL,
- .gpio = WEIO_GPIO_BTN_JUMPSTART,
+ .gpio = WEIO_GPIO_BTN_AP,
.active_low = 1,
},
{
--
1.8.5.3
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel