Commit ef419021 authored by Hans-Christian Egtvedt's avatar Hans-Christian Egtvedt Committed by Haavard Skinnemoen

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: default avatarHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Signed-off-by: default avatarHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
parent 5201b0a4
......@@ -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) | \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment