Browse Source

IGEP0046QDL: Added LED sequence to comply for ISEE Test LED Code

Signed-off-by: Jose Miguel Sanchez Sanabria <jsanabria@iseebcn.com>
isee_imx_v2017.03_4.9.11_1.0.0_ga_TEST
Jose Miguel Sanchez Sanabria 2 years ago
parent
commit
c67aadf49c
1 changed files with 18 additions and 5 deletions
  1. +18
    -5
      board/isee/igep0046/igep0046.c

+ 18
- 5
board/isee/igep0046/igep0046.c View File

@ -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();


Loading…
Cancel
Save