Skip to contentSkip to conversation

Fix Atmel lcd controller endian for AVR32 processors

PATCH New Mark Jackson 2 participants 2 messages Jul 31, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix Atmel lcd controller endian 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.

---

 drivers/video/atmel_lcdfb.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/video/atmel_lcdfb.c +4 -0
index 27df449..b332a82 100644
@@ -100,7 +100,11 @@ void lcd_ctrl_init(void *lcdbase)
 			    value << ATMEL_LCDC_CLKVAL_OFFSET);
 
 	/* 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;
+#endif
 	if (panel_info.vl_tft)
 		value |= ATMEL_LCDC_DISTYPE_TFT;
 
#1 lore raw

PATCH 1/1 Fix Atmel lcd controller endian for AVR32 processors

Quoted 11 lines · In message <[email protected]> you wrote:

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.

---

 drivers/video/atmel_lcdfb.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The computer can't tell you the emotional story. It can give you  the
exact mathematical design, but what's missing is the eyebrows.
- Frank Zappa