Skip to contentSkip to conversation

imx: mx6ul_14x14_evk: turn of backlight and LCD before booting OS

PATCH New Anatolij Gustschin 3 participants 3 messages Jan 25, 2020 – Feb 10, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 imx: mx6ul_14x14_evk: turn of backlight and LCD before booting OS

This should help keeping the screen black when booting the kernel.

---
 board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 9 +++++++++
 1 file changed, 9 insertions(+)
board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c +9 -0
index 086e0e6739..9cb5b14f13 100644
@@ -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>
Signature · 1 line
2.17.1
#2 lore raw

PATCH 1/1 imx: mx6ul_14x14_evk: turn of backlight and LCD before booting OS

In reply to Anatolij Gustschin
Quoted 4 lines

This should help keeping the screen black when booting the kernel.

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================