video i.MX IPU: Fix display connections
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 1 Dec 2011 13:58:52 +0000 (14:58 +0100)
committerVinod Koul <vinod.koul@linux.intel.com>
Thu, 8 Dec 2011 07:29:03 +0000 (12:59 +0530)
commitf910fb8fcd1c97788f2291c8646597bcd87ee061
treeb13f6aef306f3c708a6338bdbdaa3268d62d0508
parentc99e78435342a65a6a0bf9b86f87fd05831858d2
video i.MX IPU: Fix display connections

The IPU internally works on 32bit colors. It can arbitrarily map
between pixel formats and internal representation and also between
internal representation and the physical connection to the display.
The driver used to change the mapping between internal representation
and display connection depending on the user selected bpp which is
wrong. Instead, the mapping is specified by the hardware, so an
additional field in platform data is added to describe the connection
between i.MX and the display. The default for this field is RGB666
which seems to be the only configuration which works without this
patch, so I assumed that all in Kernel boards are connected this
way.
This patch has been tested on a RGB666 connected display and a
RGB888 connected display in both 16bpp and 32bpp modes.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
arch/arm/plat-mxc/include/mach/mx3fb.h
drivers/video/mx3fb.c