Commit 775c5bd9588cc7895dfbfbcdcce91f84146b09a3
1 parent
b28f2b7fbe
Exists in
smarc_8mq-imx_v2020.04_5.4.24_2.1.0
and in
1 other branch
MLK-23964-13 imx8mq: Add power and clock settings for HDMI splash screen
Implement the power on and clock settings for DCSS and HDMI drivers Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit e97703d2e708f3e44c1276b46b9293fc24ba7a73)
Showing 2 changed files with 27 additions and 0 deletions Side-by-side Diff
arch/arm/mach-imx/imx8m/clock_imx8mq.c
... | ... | @@ -862,6 +862,20 @@ |
862 | 862 | } |
863 | 863 | #endif |
864 | 864 | |
865 | +int imx8m_dcss_clock_init(u32 pixclk) | |
866 | +{ | |
867 | + /* b_clk: bus_clk_root(4) sel 2nd input source and | |
868 | + pre_div to 0; output should be 800M */ | |
869 | + clock_set_target_val(DISPLAY_AXI_CLK_ROOT, CLK_ROOT_ON |CLK_ROOT_SOURCE_SEL(2)); | |
870 | + | |
871 | + /* rtr_clk: bus_clk_root(6) sel 1st input source | |
872 | + and pre_div to 1; output should be 400M */ | |
873 | + clock_set_target_val(DISPLAY_RTRM_CLK_ROOT, | |
874 | + CLK_ROOT_ON |CLK_ROOT_SOURCE_SEL(1) |CLK_ROOT_PRE_DIV(CLK_ROOT_PRE_DIV2)); | |
875 | + | |
876 | + return 0; | |
877 | +} | |
878 | + | |
865 | 879 | /* |
866 | 880 | * Dump some clockes. |
867 | 881 | */ |
arch/arm/mach-imx/imx8m/soc.c
... | ... | @@ -1266,4 +1266,17 @@ |
1266 | 1266 | } |
1267 | 1267 | #endif |
1268 | 1268 | #endif |
1269 | + | |
1270 | +#ifdef CONFIG_IMX8MQ | |
1271 | +int imx8m_dcss_power_init(void) | |
1272 | +{ | |
1273 | + /* Enable the display CCGR before power on */ | |
1274 | + clock_enable(CCGR_DISPLAY, 1); | |
1275 | + | |
1276 | + writel(0x0000ffff, 0x303A00EC); /*PGC_CPU_MAPPING */ | |
1277 | + setbits_le32(0x303A00F8, 0x1 << 10); /*PU_PGC_SW_PUP_REQ : disp was 10 */ | |
1278 | + | |
1279 | + return 0; | |
1280 | +} | |
1281 | +#endif |