MLK-17405 iMX8QM: Change HDMI TX clocks.
authorOliver Brown <oliver.brown@nxp.com>
Fri, 15 Feb 2019 16:13:27 +0000 (10:13 -0600)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 11:28:17 +0000 (04:28 -0700)
The HDMI digital PLL, bus clock and core clock need to change to match the
settings used by the Linux driver. This allows the SECO to start and
initialize the HDMI/DP firmware.

Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
(cherry picked from commit d2713d11afc35bc2ce546f9bd065cc7477ee65cc)

drivers/video/imx/hdp_load.c

index ed5f2b4..fd8e99e 100644 (file)
@@ -23,9 +23,9 @@ static void display_set_power(int onoff)
 
 static void display_set_clocks(void)
 {
-       const sc_pm_clock_rate_t pll = 1188000000;
-       const sc_pm_clock_rate_t hdmi_core_clock = pll / 10;
-       const sc_pm_clock_rate_t hdmi_bus_clock = pll / 14;
+       const sc_pm_clock_rate_t pll = 657000000;
+       const sc_pm_clock_rate_t hdmi_core_clock = pll / 5; /* 135.000 Mhz */
+       const sc_pm_clock_rate_t hdmi_bus_clock = pll / 8;  /*  83.375 Mhz */
 
        SC_PM_SET_RESOURCE_POWER_MODE(-1,
                                      SC_R_HDMI_PLL_0, SC_PM_PW_MODE_OFF);