1
0
Fork 0

MLK-19045 imx8mm_evk: enable the dispmix & mipi phy power domain

dispmix & mipi phy power domain must be enabled before doing any
config for lcfif and dsi.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
(cherry picked from commit 240475ecb29aff22fb362ea39f3bf8e7045281db)
zero-sugar
Bai Ping 2018-07-25 17:30:05 +08:00 committed by Ye Li
parent 76babfc2d9
commit 44d97952c6
1 changed files with 13 additions and 0 deletions

View File

@ -614,6 +614,11 @@ struct mipi_dsi_client_dev rm67191_dev = {
MIPI_DSI_MODE_EOT_PACKET | MIPI_DSI_MODE_VIDEO_HSE,
};
#define FSL_SIP_GPC 0xC2000000
#define FSL_SIP_CONFIG_GPC_PM_DOMAIN 0x3
#define DISPMIX 9
#define MIPI 10
void do_enable_mipi2hdmi(struct display_info_t const *dev)
{
gpio_request(IMX_GPIO_NR(1, 8), "DSI EN");
@ -622,6 +627,10 @@ void do_enable_mipi2hdmi(struct display_info_t const *dev)
/* ADV7353 initialization */
adv7535_init();
/* enable the dispmix & mipi phy power domain */
call_imx_sip(FSL_SIP_GPC, FSL_SIP_CONFIG_GPC_PM_DOMAIN, DISPMIX, true, 0);
call_imx_sip(FSL_SIP_GPC, FSL_SIP_CONFIG_GPC_PM_DOMAIN, MIPI, true, 0);
/* Put lcdif out of reset */
disp_mix_bus_rstn_reset(imx8mm_mipi_dsim_plat_data.gpr_base, false);
disp_mix_lcdif_clks_enable(imx8mm_mipi_dsim_plat_data.gpr_base, true);
@ -638,6 +647,10 @@ void do_enable_mipi_led(struct display_info_t const *dev)
mdelay(100);
gpio_direction_output(IMX_GPIO_NR(1, 8), 1);
/* enable the dispmix & mipi phy power domain */
call_imx_sip(FSL_SIP_GPC, FSL_SIP_CONFIG_GPC_PM_DOMAIN, DISPMIX, true, 0);
call_imx_sip(FSL_SIP_GPC, FSL_SIP_CONFIG_GPC_PM_DOMAIN, MIPI, true, 0);
/* Put lcdif out of reset */
disp_mix_bus_rstn_reset(imx8mm_mipi_dsim_plat_data.gpr_base, false);
disp_mix_lcdif_clks_enable(imx8mm_mipi_dsim_plat_data.gpr_base, true);