[PATCH v2] drm/fsl-dcu: Implement gamma_lut atomic crtc properties

2016-08-22 Thread Meng Yi
Hi Stefan, What do you think about this patch for gamma correction. I see many people approach gamma correction this way. Do you have any comments? Best Regards, Meng > +static void fsl_crtc_gamma_set(struct drm_crtc *crtc, struct drm_color_lut > *lut, > +

[PATCH v2] drm/fsl-dcu: Implement gamma_lut atomic crtc properties

2016-07-29 Thread Meng Yi
Gamma correction is optional and can be used to adjust the color output values to match the gamut of a particular TFT LCD panel Gamma_R, Gamma_G and Gamma_B registers are little-endian registers while the rest of the address-space in 2D-ACE is big-endian. Signed-off-by: Meng Yi --- Changes in V2: