atmel_lcdfb: support new-style palette format
authorPeter Korsgaard <jacmet@sunsite.dk>
Thu, 13 Oct 2011 14:45:52 +0000 (16:45 +0200)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Fri, 11 Nov 2011 16:52:42 +0000 (16:52 +0000)
commit5d67b89ce88f2db60573de859649b1b5a8c830d6
tree52d52dcbc01559947319c0288aa0a8580f2c9f90
parentacfdc2e1bdb4b148e7546fe8948d8f75bd2f9377
atmel_lcdfb: support new-style palette format

The newer Atmel SoCs use normal 16bit 565 BGR/RGB for the palette data,
rather than the special intensity + 555 format.

Fill out palette data correctly on these devices, and at the same time
respect the RGB/BGR wiring mode.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/atmel_lcdfb.c