MLK-20718-5: drm/imx: nwl_dsi-imx: Correct clk usage
authorRobert Chiras <robert.chiras@nxp.com>
Fri, 1 Mar 2019 08:40:10 +0000 (10:40 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit204fe181c656af0a81912e3ea2de2dfc2f642a2b
tree3d88a432abec89dcaea8ecf35edbc93405bef328
parent7c483e87930c2a28254e6f888b65612a89cdd4b1
MLK-20718-5: drm/imx: nwl_dsi-imx: Correct clk usage

For QM and QXP, the PHY_REF clock was default ON on SCFW so it was not
handled by driver. Since now this clock is OFF in SCFW, it can be
correctly handled by kernel driver.
Now, the PHY_REF clock rate is set by the nwl-dsi bridge driver,
depending on the display mode used.
In this driver, the PIXEL and BYPASS clocks rates were set to the same
rate as the PHY_REF, but their rates need to be set to current display
mode clock.
Also, the order of the clocks matters, so make sure the BYPASS is
enabled before the PIXEL clock.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/drm/imx/nwl_dsi-imx.c