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)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 13 Mar 2013 09:54:58 +0000 (10:54 +0100)
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.

Cc: <stable@vger.kernel.org>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>

No differences found