From: Johan Hovold Date: Tue, 5 Feb 2013 13:35:11 +0000 (+0100) Subject: atmel_lcdfb: fix 16-bpp modes on older SOCs X-Git-Tag: v3.9-rc4~34^2~5^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a79eac7165ed62114e6ca197195aa5060a54f137;p=pandora-kernel.git atmel_lcdfb: fix 16-bpp modes on older SOCs 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: Acked-by: Peter Korsgaard Signed-off-by: Johan Hovold Signed-off-by: Nicolas Ferre --- Reading git-diff-tree failed