avr32: fix 15-bit LCDC pin mask to use MSB lines

This patch corrects the 15-bit LCDC pin mask definitions to select the
five upper lines in each color byte from the LCDC data output. When
reducing the color depth the LCDC will start filling MSB and downwards.

Also only enable 5 bits per color as the define indicates.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
This commit is contained in:
Hans-Christian Egtvedt 2009-03-24 15:45:14 +01:00 committed by Haavard Skinnemoen
parent 5201b0a47b
commit ef41902190

View File

@ -172,24 +172,26 @@
ATMEL_LCDC(PD, DATA22) | ATMEL_LCDC(PD, DATA23))
#define ATMEL_LCDC_PRI_15B_DATA ( \
ATMEL_LCDC(PC, DATA0) | ATMEL_LCDC(PC, DATA1) | \
ATMEL_LCDC(PC, DATA2) | ATMEL_LCDC(PC, DATA3) | \
ATMEL_LCDC(PC, DATA4) | ATMEL_LCDC(PC, DATA5) | \
ATMEL_LCDC(PD, DATA8) | ATMEL_LCDC(PD, DATA9) | \
ATMEL_LCDC(PD, DATA10) | ATMEL_LCDC(PD, DATA11) | \
ATMEL_LCDC(PD, DATA12) | ATMEL_LCDC(PD, DATA16) | \
ATMEL_LCDC(PD, DATA17) | ATMEL_LCDC(PD, DATA18) | \
ATMEL_LCDC(PD, DATA19) | ATMEL_LCDC(PD, DATA20))
ATMEL_LCDC(PC, DATA3) | ATMEL_LCDC(PC, DATA4) | \
ATMEL_LCDC(PC, DATA5) | ATMEL_LCDC(PD, DATA6) | \
ATMEL_LCDC(PD, DATA7) | \
ATMEL_LCDC(PD, DATA11) | ATMEL_LCDC(PD, DATA12) | \
ATMEL_LCDC(PD, DATA13) | ATMEL_LCDC(PD, DATA14) | \
ATMEL_LCDC(PD, DATA15) | \
ATMEL_LCDC(PD, DATA19) | ATMEL_LCDC(PD, DATA20) | \
ATMEL_LCDC(PD, DATA21) | ATMEL_LCDC(PD, DATA22) | \
ATMEL_LCDC(PD, DATA23))
#define ATMEL_LCDC_ALT_15B_DATA ( \
ATMEL_LCDC(PE, DATA0) | ATMEL_LCDC(PE, DATA1) | \
ATMEL_LCDC(PE, DATA2) | ATMEL_LCDC(PE, DATA3) | \
ATMEL_LCDC(PE, DATA4) | ATMEL_LCDC(PC, DATA5) | \
ATMEL_LCDC(PE, DATA8) | ATMEL_LCDC(PE, DATA9) | \
ATMEL_LCDC(PE, DATA10) | ATMEL_LCDC(PE, DATA11) | \
ATMEL_LCDC(PE, DATA12) | ATMEL_LCDC(PE, DATA16) | \
ATMEL_LCDC(PE, DATA17) | ATMEL_LCDC(PE, DATA18) | \
ATMEL_LCDC(PE, DATA19) | ATMEL_LCDC(PE, DATA20))
ATMEL_LCDC(PE, DATA3) | ATMEL_LCDC(PE, DATA4) | \
ATMEL_LCDC(PC, DATA5) | ATMEL_LCDC(PD, DATA6) | \
ATMEL_LCDC(PD, DATA7) | \
ATMEL_LCDC(PE, DATA11) | ATMEL_LCDC(PE, DATA12) | \
ATMEL_LCDC(PD, DATA13) | ATMEL_LCDC(PD, DATA14) | \
ATMEL_LCDC(PD, DATA15) | \
ATMEL_LCDC(PE, DATA19) | ATMEL_LCDC(PE, DATA20) | \
ATMEL_LCDC(PE, DATA21) | ATMEL_LCDC(PD, DATA22) | \
ATMEL_LCDC(PD, DATA23))
#define ATMEL_LCDC_PRI_CONTROL ( \
ATMEL_LCDC(PC, CC) | ATMEL_LCDC(PC, DVAL) | \