diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-05-10 16:22:25 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-09-29 16:38:05 -0400 |
commit | 2151374fa6556ec1027d1d0003b1e238a106cc63 (patch) | |
tree | b93e921639bccc57a98262ebbcd7b5dd54bd64e8 /include | |
parent | 20698b350614d4575afd20bfba1396873bea87a4 (diff) | |
download | u-boot-imx-2151374fa6556ec1027d1d0003b1e238a106cc63.zip u-boot-imx-2151374fa6556ec1027d1d0003b1e238a106cc63.tar.gz u-boot-imx-2151374fa6556ec1027d1d0003b1e238a106cc63.tar.bz2 |
Blackfin: post: generalize led/button tests with GPIOs
Make it easy for any Blackfin board to enable led/push button tests.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/bf537-stamp.h | 6 | ||||
-rw-r--r-- | include/configs/bf548-ezkit.h | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/configs/bf537-stamp.h b/include/configs/bf537-stamp.h index 3dee8ee..172268b 100644 --- a/include/configs/bf537-stamp.h +++ b/include/configs/bf537-stamp.h @@ -258,6 +258,12 @@ #undef CONFIG_POST #ifdef CONFIG_POST #define CONFIG_SYS_POST_HOTKEYS_GPIO GPIO_PF5 +#define CONFIG_POST_BSPEC1_GPIO_LEDS \ + GPIO_PF6, GPIO_PF7, GPIO_PF8, GPIO_PF9, GPIO_PF10, GPIO_PF11, +#define CONFIG_POST_BSPEC2_GPIO_BUTTONS \ + GPIO_PF5, GPIO_PF4, GPIO_PF3, GPIO_PF2, +#define CONFIG_POST_BSPEC2_GPIO_NAMES \ + 10, 11, 12, 13, #define FLASH_START_POST_BLOCK 11 /* Should > = 11 */ #define FLASH_END_POST_BLOCK 71 /* Should < = 71 */ #endif diff --git a/include/configs/bf548-ezkit.h b/include/configs/bf548-ezkit.h index 3550fd3..ae27a97 100644 --- a/include/configs/bf548-ezkit.h +++ b/include/configs/bf548-ezkit.h @@ -197,6 +197,12 @@ /* Define if want to do post memory test */ #undef CONFIG_POST #ifdef CONFIG_POST +#define CONFIG_POST_BSPEC1_GPIO_LEDS \ + GPIO_PG6, GPIO_PG7, GPIO_PG8, GPIO_PG9, GPIO_PG10, GPIO_PG11, +#define CONFIG_POST_BSPEC2_GPIO_BUTTONS \ + GPIO_PB8, GPIO_PB9, GPIO_PB10, GPIO_PB11 +#define CONFIG_POST_BSPEC2_GPIO_NAMES \ + 13, 12, 11, 10, #define FLASH_START_POST_BLOCK 11 /* Should > = 11 */ #define FLASH_END_POST_BLOCK 71 /* Should < = 71 */ #endif |