MLK-16986-2: drm: mxsfb: fix pixel clock polarity
authorStefan Agner <stefan@agner.ch>
Wed, 14 Dec 2016 20:48:09 +0000 (12:48 -0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:50:07 +0000 (14:50 -0500)
commit5244ca3beea51c5250f0fb8f6a2efa4980a93be2
tree28387ca9423f1cff6d286cdd68a7526d2b7ffe05
parent7ad8df0bee555c79f1cbe941934820235bccd245
MLK-16986-2: drm: mxsfb: fix pixel clock polarity

The DRM subsystem specifies the pixel clock polarity from a
controllers perspective: DRM_BUS_FLAG_PIXDATA_NEGEDGE means
the controller drives the data on pixel clocks falling edge.
That is the controllers DOTCLK_POL=0 (Default is data launched
at negative edge).

Also change the data enable logic to be high active by default
and only change if explicitly requested via bus_flags. With
that defaults are:
- Data enable: high active
- Pixel clock polarity: controller drives data on negative edge

Signed-off-by: Stefan Agner <stefan@agner.ch>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/mxsfb/mxsfb_crtc.c