imx: mx6ul_14x14_evk: turn of backlight and LCD before booting OS
authorAnatolij Gustschin <agust@denx.de>
Sat, 25 Jan 2020 23:35:59 +0000 (00:35 +0100)
committerStefano Babic <sbabic@denx.de>
Sun, 9 Feb 2020 20:47:20 +0000 (21:47 +0100)
This should help keeping the screen black when booting the kernel.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Reported-by: Fabio Estevam <festevam@gmail.com>
Tested-by: Fabio Estevam <festevam@gmail.com>
board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c

index 086e0e67398c1067992b6d71b45f1a767272eacd..9cb5b14f1351cb8a6720aa6e04e4c05a9ed19821 100644 (file)
@@ -384,6 +384,15 @@ int checkboard(void)
        return 0;
 }
 
+/*
+ * Backlight off and reset LCD before OS handover
+ */
+void board_preboot_os(void)
+{
+       gpio_set_value(IMX_GPIO_NR(1, 8), 0);
+       gpio_set_value(IMX_GPIO_NR(5, 9), 0);
+}
+
 #ifdef CONFIG_SPL_BUILD
 #include <linux/libfdt.h>
 #include <spl.h>