From patchwork Sat Jan 25 23:35:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatolij Gustschin X-Patchwork-Id: 240112 List-Id: U-Boot discussion From: agust at denx.de (Anatolij Gustschin) Date: Sun, 26 Jan 2020 00:35:59 +0100 Subject: [PATCH] imx: mx6ul_14x14_evk: turn of backlight and LCD before booting OS Message-ID: <20200125233559.27763-1-agust@denx.de> This should help keeping the screen black when booting the kernel. Signed-off-by: Anatolij Gustschin Reported-by: Fabio Estevam Tested-by: Fabio Estevam --- board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c index 086e0e6739..9cb5b14f13 100644 --- a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c +++ b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c @@ -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 #include