mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[ramips] add GPIO configuration feature
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17512 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user