summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Miguel Sanchez Sanabria <jsanabria@iseebcn.com>2019-01-24 09:13:53 +0100
committerJose Miguel Sanchez Sanabria <jsanabria@iseebcn.com>2019-01-24 09:13:53 +0100
commitc67aadf49ccc6492b53924974e21f9c63cedc7fc (patch)
tree01e8efb5912ef9bc3829f19945e03372bc5b526d
parent042a7cb1e4163b6811f3859af308ca13c1ec9390 (diff)
downloadu-boot-imx-c67aadf49ccc6492b53924974e21f9c63cedc7fc.zip
u-boot-imx-c67aadf49ccc6492b53924974e21f9c63cedc7fc.tar.gz
u-boot-imx-c67aadf49ccc6492b53924974e21f9c63cedc7fc.tar.bz2
IGEP0046QDL: Added LED sequence to comply for ISEE Test LED Code
Signed-off-by: Jose Miguel Sanchez Sanabria <jsanabria@iseebcn.com>
-rw-r--r--board/isee/igep0046/igep0046.c23
1 files changed, 18 insertions, 5 deletions
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();