projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: move 'arch/mips/include/asm/mach-ralink/eth.h' to 'drivers/net/ramips_eth.h'
[openwrt.git]
/
target
/
linux
/
ramips
/
files
/
arch
/
mips
/
ralink
/
rt305x
/
mach-v22rw-2x2.c
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
1186763
..
8bd2c95
100644
(file)
--- 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/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"
#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
#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)
{
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),
rt305x_register_flash(0, &v22rw_2x2_flash_data);
ramips_register_gpio_leds(-1, ARRAY_SIZE(v22rw_2x2_leds_gpio),
This page took
0.026181 seconds
and
4
git commands to generate.