diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-10-12 02:40:22 (GMT) |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-03-25 00:36:28 (GMT) |
commit | 23fd959eeaaa0434ac7f9c1191de66c76d97d699 (patch) | |
tree | 3ac3648b6f7f60cd7eea965c31a598565cae3b8d /include | |
parent | cf6f469e2730fc8ab3523808b828be000d6eee77 (diff) | |
download | u-boot-23fd959eeaaa0434ac7f9c1191de66c76d97d699.tar.xz |
Blackfin: bf533-stamp: rewrite startup LED notifications
Again, don't clobber pins that we aren't actually using, and use the common
LED framework rather than our own hob-job-but-not-really-working.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/bf533-stamp.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/configs/bf533-stamp.h b/include/configs/bf533-stamp.h index 622f54c..c6fd038 100644 --- a/include/configs/bf533-stamp.h +++ b/include/configs/bf533-stamp.h @@ -207,6 +207,31 @@ /* FLASH/ETHERNET uses the same async bank */ #define SHARED_RESOURCES 1 +/* define to enable boot progress via leds */ +/* #define CONFIG_SHOW_BOOT_PROGRESS */ + +/* define to enable run status via led */ +/* #define CONFIG_STATUS_LED */ +#ifdef CONFIG_STATUS_LED +#define CONFIG_BOARD_SPECIFIC_LED +#ifndef __ASSEMBLY__ +typedef unsigned int led_id_t; +void __led_init(led_id_t mask, int state); +void __led_set(led_id_t mask, int state); +void __led_toggle(led_id_t mask); +#endif +/* use LED1 to indicate booting/alive */ +#define STATUS_LED_BOOT 0 +#define STATUS_LED_BIT 1 +#define STATUS_LED_STATE STATUS_LED_ON +#define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 4) +/* use LED2 to indicate crash */ +#define STATUS_LED_CRASH 1 +#define STATUS_LED_BIT1 2 +#define STATUS_LED_STATE1 STATUS_LED_ON +#define STATUS_LED_PERIOD1 (CONFIG_SYS_HZ / 2) +#endif + /* define to enable splash screen support */ /* #define CONFIG_VIDEO */ |