MLK-19157 imx8mm_evk: Disable dsi panel before booting kernel
authorYe Li <ye.li@nxp.com>
Mon, 13 Aug 2018 08:49:19 +0000 (01:49 -0700)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 11:28:45 +0000 (04:28 -0700)
Pull down the DSI_EN gpio to disable mipi dsi panel before booting kernel.
This avoids display full yellow screen before kernel mipi driver probes
the device.

For MIPI2HDMI card, this DSI_EN gpio is not used. So nothing impact to it.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit e73adc9a139f2e8bb92bda1631fa2f2391a8a5e3)
(cherry picked from commit 7e07aa674bfdd37c6334f3a4b37d166f09d3ef90)

board/freescale/imx8mm_evk/imx8mm_evk.c

index 673fc1b..cf552ce 100644 (file)
@@ -602,6 +602,12 @@ void do_enable_mipi_led(struct display_info_t const *dev)
        imx_mipi_dsi_bridge_attach(&rm67191_dev); /* attach rm67191 device */
 }
 
+void board_quiesce_devices(void)
+{
+       gpio_request(IMX_GPIO_NR(1, 8), "DSI EN");
+       gpio_direction_output(IMX_GPIO_NR(1, 8), 0);
+}
+
 struct display_info_t const displays[] = {{
        .bus = LCDIF_BASE_ADDR,
        .addr = 0,