]> git.proxmox.com Git - mirror_ubuntu-artful-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)
commit2c80661d2ea9bac9bc7ba519097745829add1871
treeed9ac6fc008fdf8517b240c09d4b2e6ee11d3a12
parentf0aa08387b92e432166d7143993da2635c8821e8
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