MLK-19252-6 drm/bridge: sec-dsim: improve DPHY TIMING configs
authorFancy Fang <chen.fang@nxp.com>
Tue, 21 Aug 2018 14:09:35 +0000 (22:09 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitd7a43b053ce3877028cd86b5da065d624451c551
treec58d55815ba4f0e64f2a018414f9583be3ae64cc
parent540d917bfed5fe391f0db25c578e20f942a01f07
MLK-19252-6 drm/bridge: sec-dsim: improve DPHY TIMING configs

The SEC provides a table to guide the DPHY TIMINGS config based
on the PLL output bit clock frequency for DSIM. So create the
table which is used by SEC LN14LPP DPHY with HS Timing v1.2 and
this table will be used by the SEC DSIM Bridge driver to help to
config the corresponding DPHY Timings correctly for each display
mode. Along with the table, a DPHY TIMING table entry 'compare'
method is implemented for the binary search when lookup the
suitable DPHY TIMING entry.

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