MLK-21150-2 drm/bridge: sec-dsim: refine hblank word count compute
authorFancy Fang <chen.fang@nxp.com>
Fri, 15 Mar 2019 03:23:46 +0000 (11:23 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commite7e0cb666336ef552a070c0bde0c8a24e90c6e42
tree0bc5d2273afa388ae2adabf42e144db61529dc6c
parentb2fc66aee1a3d5b815564789284b74d57ea28d67
MLK-21150-2 drm/bridge: sec-dsim: refine hblank word count compute

When there is no existing horizontal blanking word counts in
'dsim_hblank_par' tables, these data requires to be computed
according to the 'hfp', 'hbp' and 'hsa' timings which are in
pixel unit. So the pixel unit data requires to be converted
to word count unit data correctly to match the PLL output clk
frequency.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit af9ab0d4362d9298978e2ac62033f65ea1cc09ed)
drivers/gpu/drm/bridge/sec-dsim.c