MLK-21150-4 drm/bridge: sec-dsim: a general way to compute PLL PMS
authorFancy Fang <chen.fang@nxp.com>
Sun, 17 Mar 2019 04:16:26 +0000 (12:16 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit758f2589f70497cb0c44c126b357062e5a0ac387
treeb33cc27713f6dd4660a56753b20b8de9a541ee49
parent4f0a55d59e56f07f90aede3f852ddd9d91ec6502
MLK-21150-4 drm/bridge: sec-dsim: a general way to compute PLL PMS

A fixed PLL PMS setting for attached panel is obviously not
enough for any other mipi panel which needs a different PLL
output clock frequency, and besides, for the CEA-861 standard
display modes, the 'pll_pms' table also can not cover all the
modes requirements. So a general way is created to solve this
problem which can provide an optimum solution to output a PLL
bit clock to match the request frequency in a maximum degree
and also satisfy the input clock and intermediate clocks limit
according to the PLL specification.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit a73fdd5e48fe0df47685cfc197fe66edc1e28405)
drivers/gpu/drm/bridge/sec-dsim.c
drivers/gpu/drm/imx/sec_mipi_dsim-imx.c
drivers/gpu/drm/imx/sec_mipi_pll_1432x.h [new file with mode: 0644]
include/drm/bridge/sec_mipi_dsim.h