Skip to content
Snippets Groups Projects
Commit 8baad26d authored by Sergey Ryazanov's avatar Sergey Ryazanov Committed by John Crispin
Browse files

ar71xx: fix RouterBOARD Power LED default state


RouterBOARD(s) bootloader actully turns Power LED off just before
it starts the kernel. So we need to set the LED default status to On
instead of Keep in order to keep LED on during kernel boot.

This change fixes Power LED off during the kernel boot on the RB91x and
SXT Lite boards.

Fixes: 6cad8ee0 ("ar71xx: keep the RouterBOARD Power LED in On state")

CC: Mathias Kresin <dev@kresin.me>
Signed-off-by: default avatarSergey Ryazanov <ryazanov.s.a@gmail.com>
parent 38167cb7
No related branches found
No related tags found
No related merge requests found
......@@ -219,7 +219,7 @@ static struct gpio_led rb711gr100_leds[] __initdata = {
.name = "rb:green:power",
.gpio = RB91X_GPIO_LED_POWER,
.active_low = 0,
.default_state = LEDS_GPIO_DEFSTATE_KEEP,
.default_state = LEDS_GPIO_DEFSTATE_ON,
},
};
......
......@@ -115,7 +115,7 @@ static struct gpio_led rbsxtlite_leds_gpio[] __initdata = {
{
.name = "rb:green:power",
.gpio = SXTLITE_GPIO_LED_POWER,
.default_state = LEDS_GPIO_DEFSTATE_KEEP,
.default_state = LEDS_GPIO_DEFSTATE_ON,
},
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment