diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-09-04 15:08:26 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-09-04 15:08:26 +0000 |
commit | 4087330444e959cdc79c05e2ac066585bdbe9835 (patch) | |
tree | ccf6a5b81e9dc2421a4387d63ac2735067130ab1 /target/linux/ramips/files/arch/mips/ralink/rt305x/mach-v22rw-2x2.c | |
parent | beeade30e75f7f7052a902709a8c995cd60a237f (diff) | |
download | master-187ad058-4087330444e959cdc79c05e2ac066585bdbe9835.tar.gz master-187ad058-4087330444e959cdc79c05e2ac066585bdbe9835.tar.bz2 master-187ad058-4087330444e959cdc79c05e2ac066585bdbe9835.zip |
[ramips] add GPIO configuration feature
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17512 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files/arch/mips/ralink/rt305x/mach-v22rw-2x2.c')
-rw-r--r-- | target/linux/ramips/files/arch/mips/ralink/rt305x/mach-v22rw-2x2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-v22rw-2x2.c b/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-v22rw-2x2.c index 1186763279..8bd2c956fd 100644 --- a/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-v22rw-2x2.c +++ b/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-v22rw-2x2.c @@ -18,9 +18,13 @@ #include <asm/mips_machine.h> #include <asm/mach-ralink/machine.h> #include <asm/mach-ralink/dev_gpio_leds.h> +#include <asm/mach-ralink/rt305x.h> +#include <asm/mach-ralink/rt305x_regs.h> #include "devices.h" +#define V22RW_2X2_GPIO_BUTTON_WPS 0 +#define V22RW_2X2_GPIO_BUTTON_SWRST 10 #define V22RW_2X2_GPIO_LED_SECURITY 13 #define V22RW_2X2_GPIO_LED_WPS 14 @@ -78,6 +82,8 @@ static struct gpio_led v22rw_2x2_leds_gpio[] __initdata = { static void __init v22rw_2x2_init(void) { + rt305x_gpio_init(RT305X_GPIO_MODE_GPIO << RT305X_GPIO_MODE_UART0_SHIFT); + rt305x_register_flash(0, &v22rw_2x2_flash_data); ramips_register_gpio_leds(-1, ARRAY_SIZE(v22rw_2x2_leds_gpio), |