mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
Fix Atmel LCD controller endianess for AVR32 processors
The Atmel lcd controller is used on Atmel's AT91 (little endian) and AVR32 (big endian) platforms. As such, the controller can handle both big and little endian memory. This patch fixes the driver for the AVR32 platform. Signed-off-by: Mark Jackson <mpfj@mimc.co.uk>
This commit is contained in:
parent
cdb8bd2fd3
commit
a5bcb01fbd
1 changed files with 4 additions and 0 deletions
|
@ -100,7 +100,11 @@ void lcd_ctrl_init(void *lcdbase)
|
||||||
value << ATMEL_LCDC_CLKVAL_OFFSET);
|
value << ATMEL_LCDC_CLKVAL_OFFSET);
|
||||||
|
|
||||||
/* Initialize control register 2 */
|
/* Initialize control register 2 */
|
||||||
|
#ifdef CONFIG_AVR32
|
||||||
|
value = ATMEL_LCDC_MEMOR_BIG | ATMEL_LCDC_CLKMOD_ALWAYSACTIVE;
|
||||||
|
#else
|
||||||
value = ATMEL_LCDC_MEMOR_LITTLE | ATMEL_LCDC_CLKMOD_ALWAYSACTIVE;
|
value = ATMEL_LCDC_MEMOR_LITTLE | ATMEL_LCDC_CLKMOD_ALWAYSACTIVE;
|
||||||
|
#endif
|
||||||
if (panel_info.vl_tft)
|
if (panel_info.vl_tft)
|
||||||
value |= ATMEL_LCDC_DISTYPE_TFT;
|
value |= ATMEL_LCDC_DISTYPE_TFT;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue