diff options
author | Enric Balletbo i Serra <enric.balletbo@collabora.com> | 2015-01-28 15:01:32 +0100 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2015-01-29 12:00:50 -0500 |
commit | f3b4bc458de3285a04c5f60df6372ad5ca79fa60 (patch) | |
tree | 9f7a59b994189bb82772eca3175600d8df0626a1 /include/configs/omap3_igep00x0.h | |
parent | 212324a9d4f505255349bc50b34ec9f912db78d3 (diff) | |
download | u-boot-f3b4bc458de3285a04c5f60df6372ad5ca79fa60.tar.gz u-boot-f3b4bc458de3285a04c5f60df6372ad5ca79fa60.tar.bz2 u-boot-f3b4bc458de3285a04c5f60df6372ad5ca79fa60.zip |
OMAP3: igep00x0: Fix boot hang and add support for status LED.
Use the STATUS_LED APIs for indicating a boot progress instead of
show_boot_progress.
This patch also fixes a problem introduced with commit b3f4ca1135 (dm: omap3:
Move to driver model for GPIO and serial). After that commit the board doesn't
boot. Looks like the problem is the gpio_request call inside the function
show_boot_progress.
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Diffstat (limited to 'include/configs/omap3_igep00x0.h')
-rw-r--r-- | include/configs/omap3_igep00x0.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/include/configs/omap3_igep00x0.h b/include/configs/omap3_igep00x0.h index b2b3750c1e..6295ec505f 100644 --- a/include/configs/omap3_igep00x0.h +++ b/include/configs/omap3_igep00x0.h @@ -29,11 +29,21 @@ #define CONFIG_REVISION_TAG 1 -/* define to enable boot progress via leds */ -#if (CONFIG_MACH_TYPE == MACH_TYPE_IGEP0020) || \ - (CONFIG_MACH_TYPE == MACH_TYPE_IGEP0030) -#define CONFIG_SHOW_BOOT_PROGRESS +/* Status LED */ +#define CONFIG_STATUS_LED +#define CONFIG_BOARD_SPECIFIC_LED +#define CONFIG_GPIO_LED +#if (CONFIG_MACH_TYPE == MACH_TYPE_IGEP0020) +#define RED_LED_GPIO 27 +#endif +#if (CONFIG_MACH_TYPE == MACH_TYPE_IGEP0030) +#define RED_LED_GPIO 16 #endif +#define RED_LED_DEV 0 +#define STATUS_LED_BIT RED_LED_GPIO +#define STATUS_LED_STATE STATUS_LED_ON +#define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2) +#define STATUS_LED_BOOT RED_LED_DEV /* GPIO banks */ #define CONFIG_OMAP3_GPIO_3 /* GPIO64 .. 95 is in GPIO bank 3 */ |