From 9d4f542123a4ec7557e40a6944c93cbae9242eb3 Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Thu, 27 Dec 2012 03:36:01 +0000 Subject: OMAP3: igep00x0: add boot status GPIO LED This patch adds an GPIO LED boot status for IGEP boards. The GPIO LED used is the red LED0 while the Linux kernel uses the green LED0 as the boot status. By using different GPIO LEDs, the user can know in which step of the boot process the board currently is. Signed-off-by: Javier Martinez Canillas Acked-by: Igor Grinberg --- board/isee/igep00x0/igep00x0.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'board/isee/igep00x0/igep00x0.c') diff --git a/board/isee/igep00x0/igep00x0.c b/board/isee/igep00x0/igep00x0.c index 3589049..49fcf34 100644 --- a/board/isee/igep00x0/igep00x0.c +++ b/board/isee/igep00x0/igep00x0.c @@ -60,6 +60,19 @@ int board_init(void) return 0; } +#if defined(CONFIG_SHOW_BOOT_PROGRESS) && !defined(CONFIG_SPL_BUILD) +void show_boot_progress(int val) +{ + if (val < 0) { + /* something went wrong */ + return; + } + + if (!gpio_request(IGEP00X0_GPIO_LED, "")) + gpio_direction_output(IGEP00X0_GPIO_LED, 1); +} +#endif + #ifdef CONFIG_SPL_BUILD /* * Routine: omap_rev_string -- cgit v1.1