summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorJason Kridner <jkridner@beagleboard.org>2011-04-18 17:23:35 -0400
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-04-27 19:38:06 +0200
commit70d8c9446fe1d99dd4148dc39ceb5dc6ce39a934 (patch)
treea20e764e3271bc3675f2950dfe6afbfba025d439 /include/configs
parentb633f66f02ab3df6adc8fc65f13769e5fb9c328f (diff)
downloadu-boot-imx-70d8c9446fe1d99dd4148dc39ceb5dc6ce39a934.zip
u-boot-imx-70d8c9446fe1d99dd4148dc39ceb5dc6ce39a934.tar.gz
u-boot-imx-70d8c9446fe1d99dd4148dc39ceb5dc6ce39a934.tar.bz2
BeagleBoard: Added LED driver
Added LED driver using status_led. USR0 is set to monitor the boot status. USR1 is set to be the green LED. Included adding configuration and command to the default configuration. Signed-off-by: Jason Kridner <jkridner@beagleboard.org> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/omap3_beagle.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h
index 5cfa4cb..c064ae7 100644
--- a/include/configs/omap3_beagle.h
+++ b/include/configs/omap3_beagle.h
@@ -108,6 +108,18 @@
#define CONFIG_OMAP_HSMMC 1
#define CONFIG_DOS_PARTITION 1
+/* Status LED */
+#define CONFIG_STATUS_LED 1
+#define CONFIG_BOARD_SPECIFIC_LED 1
+#define STATUS_LED_BIT 0x01
+#define STATUS_LED_STATE STATUS_LED_ON
+#define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2)
+#define STATUS_LED_BIT1 0x02
+#define STATUS_LED_STATE1 STATUS_LED_ON
+#define STATUS_LED_PERIOD1 (CONFIG_SYS_HZ / 2)
+#define STATUS_LED_BOOT STATUS_LED_BIT
+#define STATUS_LED_GREEN STATUS_LED_BIT1
+
/* DDR - I use Micron DDR */
#define CONFIG_OMAP3_MICRON_DDR 1
@@ -138,6 +150,7 @@
#define CONFIG_CMD_I2C /* I2C serial bus support */
#define CONFIG_CMD_MMC /* MMC support */
#define CONFIG_CMD_NAND /* NAND support */
+#define CONFIG_CMD_LED /* LED support */
#undef CONFIG_CMD_FLASH /* flinfo, erase, protect */
#undef CONFIG_CMD_FPGA /* FPGA configuration Support */