]> git.baikalelectronics.ru Git - kernel.git/commit
drm/fsl-dcu: use bus_flags for pixel clock polarity
authorStefan Agner <stefan@agner.ch>
Mon, 8 Feb 2016 20:50:13 +0000 (12:50 -0800)
committerStefan Agner <stefan@agner.ch>
Thu, 5 May 2016 17:09:06 +0000 (10:09 -0700)
commit690770c6634f9381dd0937f78f9a775a6424089f
treeed9ac6fc008fdf8517b240c09d4b2e6ee11d3a12
parent02e26463367a12fcc2f8bc4cc915fe34659391af
drm/fsl-dcu: use bus_flags for pixel clock polarity

The drivers current default configuration drives the pixel data
on rising edge of the pixel clock. However, most display sample
data on rising edge... This leads to color shift artefacts visible
especially at edges.

This patch changes the relevant defines to be useful and actually
set the bits, and changes pixel clock polarity to drive the pixel
data on falling edge by default. The patch also adds an explicit
pixel clock polarity flag to the display introduced with the driver
(NEC WQVGA "nec,nl4827hc19-05b") using the new bus_flags field to
retain the initial behavior.

Signed-off-by: Stefan Agner <stefan@agner.ch>
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.h
drivers/gpu/drm/panel/panel-simple.c