summaryrefslogtreecommitdiff
path: root/target/linux/ramips/files
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-03-27 19:19:40 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-03-27 19:19:40 +0000
commit4d41fe60132f3e83d453a4b680121b357d5294a7 (patch)
tree9c8db7f8acff9bdb930863b52ca55454d90052d8 /target/linux/ramips/files
parent96fee377d5d0e05ad7841b617cc012c304af0eea (diff)
ramips: add sysupgrade and status LED support for HW550-3G
This patch adds sysupgrade and status LED support for the Aztech HW550-3G. Some LED GPIOs were changed for clarity. Signed-off-by: Layne Edwards <ledwards76@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26320 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files')
-rw-r--r--target/linux/ramips/files/arch/mips/ralink/rt305x/mach-hw550-3g.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-hw550-3g.c b/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-hw550-3g.c
index ffb209456a..3770760fdc 100644
--- a/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-hw550-3g.c
+++ b/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-hw550-3g.c
@@ -23,12 +23,12 @@
#include "devices.h"
#define HW550_3G_GPIO_LED_USB 8
-#define HW550_3G_GPIO_LED_3G_STAT 11
-#define HW550_3G_GPIO_LED_3G_TOGGLE 12
+#define HW550_3G_GPIO_LED_3G 11
+#define HW550_3G_GPIO_LED_STATUS 12
#define HW550_3G_GPIO_LED_WPS 14
#define HW550_3G_GPIO_BUTTON_RESET 10
-#define HW550_3G_GPIO_BUTTON_3G 7
+#define HW550_3G_GPIO_BUTTON_CONNECT 7
#define HW550_3G_GPIO_BUTTON_WPS 0
#define HW550_3G_BUTTONS_POLL_INTERVAL 20
@@ -83,12 +83,12 @@ static struct gpio_led hw550_3g_leds_gpio[] __initdata = {
.gpio = HW550_3G_GPIO_LED_USB,
.active_low = 1,
}, {
- .name = "hw550-3g:green:3g-stat",
- .gpio = HW550_3G_GPIO_LED_3G_STAT,
+ .name = "hw550-3g:green:3g",
+ .gpio = HW550_3G_GPIO_LED_3G,
.active_low = 1,
}, {
- .name = "hw550-3g:green:3g-toggle",
- .gpio = HW550_3G_GPIO_LED_3G_TOGGLE,
+ .name = "hw550-3g:green:status",
+ .gpio = HW550_3G_GPIO_LED_STATUS,
.active_low = 1,
}, {
.name = "hw550-3g:green:wps",
@@ -106,11 +106,11 @@ static struct gpio_button hw550_3g_gpio_buttons[] __initdata = {
.gpio = HW550_3G_GPIO_BUTTON_RESET,
.active_low = 1,
}, {
- .desc = "3g",
+ .desc = "connect",
.type = EV_KEY,
- .code = BTN_1,
+ .code = KEY_CONNECT,
.threshold = 3,
- .gpio = HW550_3G_GPIO_BUTTON_3G,
+ .gpio = HW550_3G_GPIO_BUTTON_CONNECT,
.active_low = 1,
}, {
.desc = "wps",