linux/drivers/video/omap
Janusz Krzysztofik 3e9ff04408 omapfb: Fix 12-bit display (RGB444 color mode) handling
Support for RGB444 (12-bit) pixel format has been introduced into omapfb/lcdc
by Mark Underwood on 2006-05-26 (commit
f74edb6668aad9fc8e81585861b18f996c78a574) in preparation for Amstrad Delta
(E3) videophone LCD display support.

Before the Amstrad Delta LCD patch by Jonathan McDowell was applied (on
2006-08-04, commit 8d22fb2ea004cdb6379b54c1a8fd1546cfe40ed7), omapfb and lcdc
code was changed substantially (commit
e563dc81aa01bd8bbb01bc53975a15c398715f62 dated 2006-06-26) in a way that broke
Mark's 12-bit display support. Than, a patch by Jonathan, that supposed to
correct the problem, was introduced immediatelly (on 2006-08-04, commit
e10a75b49e7a57ae17c28b705153c70eba15a8ef).

As a result, the Amstrad Delta display was working correctly at boot time,
with fbset reporting:

	geometry 480 320 480 320 16
	...
	rgba 4/8,4/4,4/0,0/0

However, after first framebuffer reinitialization, colors were no longer being
displayed correctly and fbset was reporting:

        rgba 5/11,6/5,5/0,0/0

The patch tries to correct the issue by setting plane->color_mode depending on
panel->bpp, not var->bits_per_pixel.

Created and tested on Amstrad Delta against linux-2.6.33-rc3.

Signed-off-by: Janusz Krzysztofik <jkrzysz@tis.icnet.pl>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
2010-02-12 12:46:07 +02:00
..
blizzard.c OMAP: OMAPFB: split omapfb.h 2009-12-09 12:04:06 +02:00
dispc.c OMAP: OMAPFB: fix clk_get for RFBI 2010-01-11 13:33:09 +02:00
dispc.h omapfb: dispc: allow multiple external IRQ handlers 2009-09-23 07:39:50 -07:00
hwa742.c OMAP: OMAPFB: split omapfb.h 2009-12-09 12:04:06 +02:00
Kconfig OMAP: DSS2: omapfb driver 2009-12-09 12:12:44 +02:00
lcd_2430sdp.c mfd: Rename all twl4030_i2c* 2009-12-13 21:23:33 +01:00
lcd_ams_delta.c Merge branch 'for-linus' of git://gitorious.org/linux-omap-dss2/linux 2009-12-10 21:55:17 -08:00
lcd_apollon.c OMAP: OMAPFB: split omapfb.h 2009-12-09 12:04:06 +02:00
lcd_h3.c OMAP: OMAPFB: split omapfb.h 2009-12-09 12:04:06 +02:00
lcd_h4.c OMAP: OMAPFB: split omapfb.h 2009-12-09 12:04:06 +02:00
lcd_htcherald.c video/omap: add __init/__exit macros to drivers/video/omap/lcd_htcherald.c 2010-01-11 14:45:25 +02:00
lcd_inn1510.c OMAP: OMAPFB: split omapfb.h 2009-12-09 12:04:06 +02:00
lcd_inn1610.c OMAP: OMAPFB: split omapfb.h 2009-12-09 12:04:06 +02:00
lcd_ldp.c mfd: twl: fix twl4030 rename for remaining driver, board files 2009-12-16 12:44:04 -08:00
lcd_mipid.c Merge branch 'for-linus' of git://gitorious.org/linux-omap-dss2/linux 2009-12-10 21:55:17 -08:00
lcd_omap2evm.c mfd: twl: fix twl4030 rename for remaining driver, board files 2009-12-16 12:44:04 -08:00
lcd_omap3beagle.c mfd: twl: fix twl4030 rename for remaining driver, board files 2009-12-16 12:44:04 -08:00
lcd_omap3evm.c mfd: twl: fix twl4030 rename for remaining driver, board files 2009-12-16 12:44:04 -08:00
lcd_osk.c OMAP: OMAPFB: split omapfb.h 2009-12-09 12:04:06 +02:00
lcd_overo.c mfd: twl: fix twl4030 rename for remaining driver, board files 2009-12-16 12:44:04 -08:00
lcd_palmte.c OMAP: OMAPFB: split omapfb.h 2009-12-09 12:04:06 +02:00
lcd_palmtt.c OMAP: OMAPFB: split omapfb.h 2009-12-09 12:04:06 +02:00
lcd_palmz71.c OMAP: OMAPFB: split omapfb.h 2009-12-09 12:04:06 +02:00
lcdc.c omap1: LCD_DMA: Use some define rather than a hexadecimal 2009-12-11 16:16:36 -08:00
lcdc.h [ARM] omap: fix a load of "warning: symbol 'xxx' was not declared. Should it be static?" 2008-09-05 17:02:34 +01:00
Makefile omap1: Add board support and LCD for HTC Herald 2009-11-22 10:24:33 -08:00
omapfb_main.c omapfb: Fix 12-bit display (RGB444 color mode) handling 2010-02-12 12:46:07 +02:00
omapfb.h OMAP: OMAPFB: fix clk_get for RFBI 2010-01-11 13:33:09 +02:00
rfbi.c OMAP: OMAPFB: fix clk_get for RFBI 2010-01-11 13:33:09 +02:00
sossi.c OMAP: OMAPFB: split omapfb.h 2009-12-09 12:04:06 +02:00