drm/fsl-dcu: use mode flags for hsync/vsync polarity
commit4bc390c6337b6c73e0b44895e0ade7212f2815bf
authorStefan Agner <stefan@agner.ch>
Wed, 18 Nov 2015 03:10:29 +0000 (17 19:10 -0800)
committerStefan Agner <stefan@agner.ch>
Fri, 26 Feb 2016 00:13:16 +0000 (25 16:13 -0800)
treeee75b7bc82b570f8dba95791873f60b2a8cfd794
parent69855819c7683c88e7f136f98b790392ebf9fe88
drm/fsl-dcu: use mode flags for hsync/vsync polarity

The current default configuration is as follows:
- Invert VSYNC signal (active LOW)
- Invert HSYNC signal (active LOW)

The mode flags allow to specify the required polarity per
mode. Furthermore, none of the current driver settings is
actually a standard polarity.

This patch applies the current driver default polarities as
explicit flags to the display which has been introduced with
the driver (NEC WQVGA "nec,nl4827hc19-05b"). The driver now
also parses the flags field and applies the configuration
accordingly, by using the following values as standard
polarities: (e.g. when no flags are specified):
- VSYNC signal not inverted (active HIGH)
- HSYNC signal not inverted (active HIGH)

Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Stefan Agner <stefan@agner.ch>
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c
drivers/gpu/drm/panel/panel-simple.c