aboutsummaryrefslogtreecommitdiffstats
path: root/arch/avr32/mach-at32ap
diff options
context:
space:
mode:
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>2009-03-24 10:45:14 -0400
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>2009-03-26 09:49:39 -0400
commitef419021907b2daa51ac31bdc1f858b1b1338b07 (patch)
tree5b3cc91e391f3b42a5cd34329f27c721efe337b0 /arch/avr32/mach-at32ap
parent5201b0a47b83aba66e1e348d18f3f9a7bc17d612 (diff)
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>
Diffstat (limited to 'arch/avr32/mach-at32ap')
-rw-r--r--arch/avr32/mach-at32ap/include/mach/at32ap700x.h34
1 files changed, 18 insertions, 16 deletions
diff --git a/arch/avr32/mach-at32ap/include/mach/at32ap700x.h b/arch/avr32/mach-at32ap/include/mach/at32ap700x.h
index 5c4c971eed8e..f07fcd7390be 100644
--- a/arch/avr32/mach-at32ap/include/mach/at32ap700x.h
+++ b/arch/avr32/mach-at32ap/include/mach/at32ap700x.h
@@ -172,24 +172,26 @@
172 ATMEL_LCDC(PD, DATA22) | ATMEL_LCDC(PD, DATA23)) 172 ATMEL_LCDC(PD, DATA22) | ATMEL_LCDC(PD, DATA23))
173 173
174#define ATMEL_LCDC_PRI_15B_DATA ( \ 174#define ATMEL_LCDC_PRI_15B_DATA ( \
175 ATMEL_LCDC(PC, DATA0) | ATMEL_LCDC(PC, DATA1) | \ 175 ATMEL_LCDC(PC, DATA3) | ATMEL_LCDC(PC, DATA4) | \
176 ATMEL_LCDC(PC, DATA2) | ATMEL_LCDC(PC, DATA3) | \ 176 ATMEL_LCDC(PC, DATA5) | ATMEL_LCDC(PD, DATA6) | \
177 ATMEL_LCDC(PC, DATA4) | ATMEL_LCDC(PC, DATA5) | \ 177 ATMEL_LCDC(PD, DATA7) | \
178 ATMEL_LCDC(PD, DATA8) | ATMEL_LCDC(PD, DATA9) | \ 178 ATMEL_LCDC(PD, DATA11) | ATMEL_LCDC(PD, DATA12) | \
179 ATMEL_LCDC(PD, DATA10) | ATMEL_LCDC(PD, DATA11) | \ 179 ATMEL_LCDC(PD, DATA13) | ATMEL_LCDC(PD, DATA14) | \
180 ATMEL_LCDC(PD, DATA12) | ATMEL_LCDC(PD, DATA16) | \ 180 ATMEL_LCDC(PD, DATA15) | \
181 ATMEL_LCDC(PD, DATA17) | ATMEL_LCDC(PD, DATA18) | \ 181 ATMEL_LCDC(PD, DATA19) | ATMEL_LCDC(PD, DATA20) | \
182 ATMEL_LCDC(PD, DATA19) | ATMEL_LCDC(PD, DATA20)) 182 ATMEL_LCDC(PD, DATA21) | ATMEL_LCDC(PD, DATA22) | \
183 ATMEL_LCDC(PD, DATA23))
183 184
184#define ATMEL_LCDC_ALT_15B_DATA ( \ 185#define ATMEL_LCDC_ALT_15B_DATA ( \
185 ATMEL_LCDC(PE, DATA0) | ATMEL_LCDC(PE, DATA1) | \ 186 ATMEL_LCDC(PE, DATA3) | ATMEL_LCDC(PE, DATA4) | \
186 ATMEL_LCDC(PE, DATA2) | ATMEL_LCDC(PE, DATA3) | \ 187 ATMEL_LCDC(PC, DATA5) | ATMEL_LCDC(PD, DATA6) | \
187 ATMEL_LCDC(PE, DATA4) | ATMEL_LCDC(PC, DATA5) | \ 188 ATMEL_LCDC(PD, DATA7) | \
188 ATMEL_LCDC(PE, DATA8) | ATMEL_LCDC(PE, DATA9) | \ 189 ATMEL_LCDC(PE, DATA11) | ATMEL_LCDC(PE, DATA12) | \
189 ATMEL_LCDC(PE, DATA10) | ATMEL_LCDC(PE, DATA11) | \ 190 ATMEL_LCDC(PD, DATA13) | ATMEL_LCDC(PD, DATA14) | \
190 ATMEL_LCDC(PE, DATA12) | ATMEL_LCDC(PE, DATA16) | \ 191 ATMEL_LCDC(PD, DATA15) | \
191 ATMEL_LCDC(PE, DATA17) | ATMEL_LCDC(PE, DATA18) | \ 192 ATMEL_LCDC(PE, DATA19) | ATMEL_LCDC(PE, DATA20) | \
192 ATMEL_LCDC(PE, DATA19) | ATMEL_LCDC(PE, DATA20)) 193 ATMEL_LCDC(PE, DATA21) | ATMEL_LCDC(PD, DATA22) | \
194 ATMEL_LCDC(PD, DATA23))
193 195
194#define ATMEL_LCDC_PRI_CONTROL ( \ 196#define ATMEL_LCDC_PRI_CONTROL ( \
195 ATMEL_LCDC(PC, CC) | ATMEL_LCDC(PC, DVAL) | \ 197 ATMEL_LCDC(PC, CC) | ATMEL_LCDC(PC, DVAL) | \