diff options
author | Ye Li <ye.li@nxp.com> | 2018-08-13 01:49:19 -0700 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2018-08-13 02:04:53 -0700 |
commit | 4d436d59150c630de42845987ba7c7371aef1cd4 (patch) | |
tree | d2f39c22b43a547674891841d0a3c18965ccbd0d | |
parent | 14e879750b870a47b2a203d277ffedfe1c479bd0 (diff) |
MLK-19157 imx8mm_evk: Disable dsi panel before booting kernel
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)
-rw-r--r-- | board/freescale/imx8mm_evk/imx8mm_evk.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/board/freescale/imx8mm_evk/imx8mm_evk.c b/board/freescale/imx8mm_evk/imx8mm_evk.c index 43b49c9a42..f0d86771ca 100644 --- a/board/freescale/imx8mm_evk/imx8mm_evk.c +++ b/board/freescale/imx8mm_evk/imx8mm_evk.c @@ -660,6 +660,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, |