Commit 0fecbc0a authored by Nick Elsmore's avatar Nick Elsmore
Browse files

board: omap5_pyra: set LEDs on valid boot

parent ee139b7e
......@@ -228,6 +228,8 @@ int board_init(void)
gd->bd->bi_arch_number = MACH_TYPE_OMAP5_SEVM;
gd->bd->bi_boot_params = (0x80000000 + 0x100); /* boot param addr */
pyra_led_init();
#if defined(CONFIG_BQ2429X_POWER)
bq2429x_reset_wd();
bq2429x_enable_wd(false);
......@@ -241,9 +243,14 @@ int board_init(void)
if (!pyra_is_valid_reset()) {
printf("power on reason is not valid, shutting down.\n");
pyra_led_disable();
twl603x_poweroff(false);
}
pyra_led_set_color(PYRA_LED_LEFT, 0, 255, 0);
pyra_led_set_color(PYRA_LED_CENTER, 255, 255, 255);
pyra_led_set_color(PYRA_LED_RIGHT, 0, 255, 0);
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment