summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-10-11 22:40:22 -0400
committerMike Frysinger <vapier@gentoo.org>2009-03-24 20:36:28 -0400
commit23fd959eeaaa0434ac7f9c1191de66c76d97d699 (patch)
tree3ac3648b6f7f60cd7eea965c31a598565cae3b8d /include
parentcf6f469e2730fc8ab3523808b828be000d6eee77 (diff)
downloadu-boot-imx-23fd959eeaaa0434ac7f9c1191de66c76d97d699.zip
u-boot-imx-23fd959eeaaa0434ac7f9c1191de66c76d97d699.tar.gz
u-boot-imx-23fd959eeaaa0434ac7f9c1191de66c76d97d699.tar.bz2
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.h25
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 */