The bootloader does not initializes the output function
correctly for all LEDs. DO that from the board setup code.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40474
3c298f89-4303-0410-b956-
a3cf2f4a3e73
static void __init wndr4300_setup(void)
{
+ int i;
+
+ for (i = 0; i < ARRAY_SIZE(wndr4300_leds_gpio); i++)
+ ath79_gpio_output_select(wndr4300_leds_gpio[i].gpio,
+ AR934X_GPIO_OUT_GPIO);
+
ath79_register_leds_gpio(-1, ARRAY_SIZE(wndr4300_leds_gpio),
wndr4300_leds_gpio);
ath79_register_gpio_keys_polled(-1, WNDR4300_KEYS_POLL_INTERVAL,