ARM: integrator: support CLCD RGB5551 layout for 16bpp
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 22 Jan 2011 11:02:10 +0000 (11:02 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 19 Feb 2011 11:08:41 +0000 (11:08 +0000)
commite6b9c1f8a623bfaa545067df73213db1c9c8e7af
tree735d23cf96b81103c7771156fc760c17f186c6a8
parent9728c1b6a724daefc413b44e10253cdbb5e06d08
ARM: integrator: support CLCD RGB5551 layout for 16bpp

When the CLCD is in anything but RGB888 mode, its outputs are configured
for RGB5551 output.  Integrator/CP supports RGB565 via an external
multiplexer, which we configure for RGB5551 or RGB565 based only on the
bits per pixel.  So when userspace asks for the RGB555 layout, the mux
remains in RGB565 mode, and we produce incorrect colours.  Fix this.

Note that Integrator doesn't support BGR565 mode, but does support
BGR5551.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-integrator/include/mach/cm.h
arch/arm/mach-integrator/integrator_cp.c