MLK-20781-2 video: dsi_northwest: Change the DSI PHY clock settings
authorYe Li <ye.li@nxp.com>
Mon, 21 Jan 2019 03:54:19 +0000 (19:54 -0800)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 11:28:46 +0000 (04:28 -0700)
commit47b06e5926be48a206b5f3b708010702de82015f
tree5f9ae1378f5b902346d80f82e3704b091d565792
parent48804cc75c9a8b7332f6d5f6ed2238749f6851a8
MLK-20781-2 video: dsi_northwest: Change the DSI PHY clock settings

The previous driver uses a hard coded value which generates the DSI
PHY clock can fit HX8363 WVGA screen. But when switching to new WXGA
screen which needs higher pixclock and higher DSI PHY clock, the
hard coded parameters can't work.
Change to follow kernel codes to find the best value of CM, CN, CO
parameters for DSI PHY clock to meet pixclock requirement.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit d84ddab71eda66b22c702c7d358a53a22b9ac662)
(cherry picked from commit 9fcb1cbae58042e75cd427c9c290a6830a9feff1)
drivers/video/mipi_dsi_northwest.c