summaryrefslogtreecommitdiffstats
path: root/include/configs/cm_t335.h
diff options
context:
space:
mode:
authorIlya Ledvich <ilya@compulab.co.il>2013-11-07 07:57:34 +0200
committerTom Rini <trini@ti.com>2013-12-04 08:11:26 -0500
commite8ac22be6a6a8544f43ae58d9ef33574a51b5971 (patch)
tree6bc3d3b005bd26a9b272000b4e39dd2762a83856 /include/configs/cm_t335.h
parent54e7445de9367cde53ff3daa391fddd87e699113 (diff)
downloadblackbird-obmc-uboot-e8ac22be6a6a8544f43ae58d9ef33574a51b5971.tar.gz
blackbird-obmc-uboot-e8ac22be6a6a8544f43ae58d9ef33574a51b5971.zip
cm_t335: add support for status LED
Add support for status LED. Use the STATUS_LED APIs for indicating a boot progress. Signed-off-by: Ilya Ledvich <ilya@compulab.co.il> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Diffstat (limited to 'include/configs/cm_t335.h')
-rw-r--r--include/configs/cm_t335.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/configs/cm_t335.h b/include/configs/cm_t335.h
index e4eba02add..fbdead2794 100644
--- a/include/configs/cm_t335.h
+++ b/include/configs/cm_t335.h
@@ -156,5 +156,15 @@
/* GPIO pin + bank to pin ID mapping */
#define GPIO_PIN(_bank, _pin) ((_bank << 5) + _pin)
+/* Status LED */
+#define CONFIG_STATUS_LED
+#define CONFIG_GPIO_LED
+#define CONFIG_BOARD_SPECIFIC_LED
+#define STATUS_LED_BIT GPIO_PIN(2, 0)
+/* Status LED polarity is inversed, so init it in the "off" state */
+#define STATUS_LED_STATE STATUS_LED_OFF
+#define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2)
+#define STATUS_LED_BOOT 0
+
#endif /* __CONFIG_CM_T335_H */
OpenPOWER on IntegriCloud