X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/37bd623236d675677af55ff52ac5848cb51b672f..19a1c706137e969cb3b08af5f7d3aa1e0a21c673:/target/linux/ramips/files/arch/mips/ralink/rt288x/mach-rt-n15.c diff --git a/target/linux/ramips/files/arch/mips/ralink/rt288x/mach-rt-n15.c b/target/linux/ramips/files/arch/mips/ralink/rt288x/mach-rt-n15.c index be5c815cb..26f08845b 100644 --- a/target/linux/ramips/files/arch/mips/ralink/rt288x/mach-rt-n15.c +++ b/target/linux/ramips/files/arch/mips/ralink/rt288x/mach-rt-n15.c @@ -18,10 +18,14 @@ #include #include #include +#include +#include #include "devices.h" #define RT_N15_GPIO_LED_POWER 11 +#define RT_N15_GPIO_BUTTON_WPS 0 +#define RT_N15_GPIO_BUTTON_RESET 12 #ifdef CONFIG_MTD_PARTITIONS static struct mtd_partition rt_n15_partitions[] = { @@ -73,6 +77,8 @@ static struct gpio_led rt_n15_leds_gpio[] __initdata = { static void __init rt_n15_init(void) { + rt288x_gpio_init(RT2880_GPIO_MODE_UART0); + rt288x_register_flash(0, &rt_n15_flash_data); ramips_register_gpio_leds(-1, ARRAY_SIZE(rt_n15_leds_gpio),