drm: mali-dp: Add CTM support
authorMihail Atanassov <mihail.atanassov@arm.com>
Mon, 13 Feb 2017 12:49:03 +0000 (12:49 +0000)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Mon, 24 Apr 2017 09:45:34 +0000 (10:45 +0100)
commit6954f24588ebddc2e3c840103f02d1fe7e65a2d6
tree2699bd1b9e39adc819d43307f67bc6c56605315a
parent02725d31371b66b97bc58b2a81f0c6dc40970598
drm: mali-dp: Add CTM support

All DPs have a COLORADJ matrix which is applied prior to output gamma.
Attach that to the CTM property. Also, ensure the input CTM's coefficients
can fit in the DP registers' Q3.12 format.

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_drv.c
drivers/gpu/drm/arm/malidp_drv.h
drivers/gpu/drm/arm/malidp_hw.h
drivers/gpu/drm/arm/malidp_regs.h