]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commitc2e7f82d336a451ebb904b8bf9a5a558cf16c39b
tree7a589b812cf505c31464b2e6628b1eb846600aad
parent0274e6a0ba9a4994a449fcd3483ef530027e152f
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