From c67aadf49ccc6492b53924974e21f9c63cedc7fc Mon Sep 17 00:00:00 2001 From: Jose Miguel Sanchez Sanabria Date: Thu, 24 Jan 2019 09:13:53 +0100 Subject: IGEP0046QDL: Added LED sequence to comply for ISEE Test LED Code Signed-off-by: Jose Miguel Sanchez Sanabria --- board/isee/igep0046/igep0046.c | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'board/isee/igep0046') diff --git a/board/isee/igep0046/igep0046.c b/board/isee/igep0046/igep0046.c index 2843de6..cdc0466 100644 --- a/board/isee/igep0046/igep0046.c +++ b/board/isee/igep0046/igep0046.c @@ -86,6 +86,12 @@ DECLARE_GLOBAL_DATA_PTR; #define PCB_REV_C 3 #define PCB_REV_D10 4 +/* Dual Lite case */ +#define GPIO_LED_RED1 IMX_GPIO_NR(4, 18) +#define GPIO_LED_GREEN1 IMX_GPIO_NR(4, 19) +#define GPIO_LED_RED2 IMX_GPIO_NR(4, 20) +#define GPIO_LED_GREEN2 IMX_GPIO_NR(4, 17) + int dram_init(void) { gd->ram_size = imx_ddr_size(); @@ -416,17 +422,23 @@ int board_early_init_f(void) imx_iomux_v3_setup_multiple_pads(init_pads, ARRAY_SIZE(init_pads)); - /* configure LEDS */ - gpio_direction_output(IMX_GPIO_NR(4, 18), 0); - gpio_direction_output(IMX_GPIO_NR(4, 19), 1); - gpio_direction_output(IMX_GPIO_NR(4, 20), 0); - gpio_direction_output(IMX_GPIO_NR(4, 17), 1); + /* configure LEDS - SPL = 1 YELLOW */ + gpio_direction_output(GPIO_LED_RED1, 1); + gpio_direction_output(GPIO_LED_GREEN1, 1); + gpio_direction_output(GPIO_LED_RED2, 0); + gpio_direction_output(GPIO_LED_GREEN2, 0); return 0; } int board_init(void) { + /* configure LEDS - UBOOT = 2 YELLOW */ + gpio_direction_output(GPIO_LED_RED1, 1); + gpio_direction_output(GPIO_LED_GREEN1, 1); + gpio_direction_output(GPIO_LED_RED2, 1); + gpio_direction_output(GPIO_LED_GREEN2, 1); + #ifdef CONFIG_BASE0040 reset_audio(); #endif @@ -958,6 +970,7 @@ void board_init_f(ulong dummy) /* its our chance to print info about boot device */ void spl_board_init(void) { + /* determine boot device from SRC_SBMR1 (BOOT_CFG[4:1]) or SRC_GPR9 */ u32 boot_device = spl_boot_device(); -- cgit v1.1