X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/be7ba8de2fdef858152092df620fd82981659d50..59b7de56237bddc694706c8c220ca0865be4c666:/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-whr-g300n.c diff --git a/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-whr-g300n.c b/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-whr-g300n.c index 97fe85737..2c2f44469 100644 --- a/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-whr-g300n.c +++ b/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-whr-g300n.c @@ -18,6 +18,8 @@ #include #include #include +#include +#include #include "devices.h" @@ -87,6 +89,8 @@ static struct gpio_led whr_g300n_leds_gpio[] __initdata = { static void __init whr_g300n_init(void) { + rt305x_gpio_init(RT305X_GPIO_MODE_GPIO << RT305X_GPIO_MODE_UART0_SHIFT); + rt305x_register_flash(0, &whr_g300n_flash_data); ramips_register_gpio_leds(-1, ARRAY_SIZE(whr_g300n_leds_gpio),