]> git.karo-electronics.de Git - karo-tx-linux.git/commit
atmel_lcdfb: fix 16-bpp modes on older SOCs
authorJohan Hovold <jhovold@gmail.com>
Tue, 5 Feb 2013 13:35:11 +0000 (14:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Mar 2013 20:05:00 +0000 (13:05 -0700)
commitcb505e2eb68fe9e22afa220bf172f6aa090b7dca
treed1b25dcc977afffedbca41ee63b331c6f49f1f00
parenta40a945f829a2b95d5460491d81061166817e3cb
atmel_lcdfb: fix 16-bpp modes on older SOCs

commit a79eac7165ed62114e6ca197195aa5060a54f137 upstream.

Fix regression introduced by commit 787f9fd23283 ("atmel_lcdfb: support
16bit BGR:565 mode, remove unsupported 15bit modes") which broke 16-bpp
modes for older SOCs which use IBGR:555 (msb is intensity) rather
than BGR:565.

Use SOC-type to determine the pixel layout.

Tested on at91sam9263 and at91sam9g45.

Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/video/atmel_lcdfb.c
include/video/atmel_lcdc.h