diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2013-02-23 02:43:09 +0000 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2013-03-07 17:22:57 +0100 |
commit | 36c7c9250d7c4717808a637da74e59a29a235848 (patch) | |
tree | 48ab877fdb0c314ece6a20ff73de2760eecc6ecb /include | |
parent | eb2996024b1592f77454302213d5bf0659684c7b (diff) | |
download | u-boot-imx-36c7c9250d7c4717808a637da74e59a29a235848.zip u-boot-imx-36c7c9250d7c4717808a637da74e59a29a235848.tar.gz u-boot-imx-36c7c9250d7c4717808a637da74e59a29a235848.tar.bz2 |
mx23_olinuxino: Add support for status LED
This allow user to know if the bootloader is running, even without a
serial console.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/mx23_olinuxino.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/configs/mx23_olinuxino.h b/include/configs/mx23_olinuxino.h index 7983c5d..d019944 100644 --- a/include/configs/mx23_olinuxino.h +++ b/include/configs/mx23_olinuxino.h @@ -19,6 +19,8 @@ #ifndef __MX23_OLINUXINO_CONFIG_H__ #define __MX23_OLINUXINO_CONFIG_H__ +#include <asm/arch/iomux-mx23.h> + /* * SoC configurations */ @@ -56,6 +58,7 @@ #define CONFIG_CMD_EXT2 #define CONFIG_CMD_FAT #define CONFIG_CMD_GPIO +#define CONFIG_CMD_LED #define CONFIG_CMD_MMC /* @@ -112,6 +115,17 @@ #define CONFIG_BAUDRATE 115200 /* Default baud rate */ /* + * Status LED + */ +#define CONFIG_STATUS_LED +#define CONFIG_GPIO_LED +#define CONFIG_BOARD_SPECIFIC_LED +#define STATUS_LED_BOOT 0 +#define STATUS_LED_BIT MX23_PAD_SSP1_DETECT__GPIO_2_1 +#define STATUS_LED_STATE STATUS_LED_ON +#define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2) + +/* * MMC Driver */ #ifdef CONFIG_CMD_MMC |