]> git.baikalelectronics.ru Git - kernel.git/commit
drm: mali-dp: Check the mclk rate and allow up/down scaling
authorMihail Atanassov <mihail.atanassov@arm.com>
Mon, 13 Feb 2017 15:09:01 +0000 (15:09 +0000)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Mon, 24 Apr 2017 12:28:09 +0000 (13:28 +0100)
commit14899dc042ea1a6cf37ae89f4c356249e3db3cc5
tree7a589b812cf505c31464b2e6628b1eb846600aad
parentdfaf9c8496e1a995455e95b22fce1ce45731afe4
drm: mali-dp: Check the mclk rate and allow up/down scaling

When downscaling, mclk needs to be sufficiently higher than pxlclk in
order to be able to fetch the higher-resolution data and produce output
pixels. When not scaling, or when upscaling, mclk can be equal to
pxlclk. Since the driver doesn't control mclk, just ensure that the
requirement is satisfied with the current clock rate.

Signed-off-by: Mihail Atanassov <mihail.atanassov@arm.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
drivers/gpu/drm/arm/malidp_crtc.c
drivers/gpu/drm/arm/malidp_hw.c
drivers/gpu/drm/arm/malidp_hw.h