From 95df6bd3de2b470f8ec755ab30650dd852a4a7d5 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 10 Jul 2014 12:23:41 -0600 Subject: [PATCH] SAMA5D4-EK LCD: Actual hardware with appears to be RGB888 --- arch/arm/src/sama5/sam_lcd.c | 10 +++++----- configs/sama5d4-ek/include/board.h | 5 ++++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/arch/arm/src/sama5/sam_lcd.c b/arch/arm/src/sama5/sam_lcd.c index d8ce51b717..8674368efc 100644 --- a/arch/arm/src/sama5/sam_lcd.c +++ b/arch/arm/src/sama5/sam_lcd.c @@ -2067,7 +2067,7 @@ static void sam_layer_color(void) LCDC_BASECFG1_16BPP_RGB565); #else -# error Support for this resolution is not yet supported +# error Support for this resolution is not yet implemented #endif #ifdef CONFIG_SAMA5_LCDC_OVR1 @@ -2096,7 +2096,7 @@ static void sam_layer_color(void) LCDC_OVR1CFG9_GA(0xff) | LCDC_OVR1CFG9_GAEN); # else -# error Support for this resolution is not yet supported +# error Support for this resolution is not yet implemented # endif #endif @@ -2126,7 +2126,7 @@ static void sam_layer_color(void) LCDC_OVR2CFG9_GA(0xff) | LCDC_OVR2CFG9_GAEN); # else -# error Support for this resolution is not yet supported +# error Support for this resolution is not yet implemented # endif #endif @@ -2156,7 +2156,7 @@ static void sam_layer_color(void) LCDC_HEOCFG9_GA(0xff) | LCDC_HEOCFG9_GAEN); # else -# error Support for this resolution is not yet supported +# error Support for this resolution is not yet implemented # endif #endif @@ -2190,7 +2190,7 @@ static void sam_layer_color(void) LCDC_HCRCFG9_GA(0xff) | LCDC_HCRCFG9_GAEN); # else -# error Support for this resolution is not yet supported +# error Support for this resolution is not yet implemented # endif #endif #endif diff --git a/configs/sama5d4-ek/include/board.h b/configs/sama5d4-ek/include/board.h index 0baf6fa8c3..d11d15871b 100644 --- a/configs/sama5d4-ek/include/board.h +++ b/configs/sama5d4-ek/include/board.h @@ -168,8 +168,11 @@ #define BUTTON_USER_BIT (1 << BUTTON_USER) /* LCD Interface, Geometry and Timing ***********************************************/ +/* This configuration applies only to the TM7000 LCD/Touchscreen module. Other LCDs + * will require changes. + */ -#define BOARD_LCDC_OUTPUT_BPP 18 /* Output format to H/W is 18BPP RGB666 */ +#define BOARD_LCDC_OUTPUT_BPP 24 /* Output format to H/W is 24BPP RGB888 */ #define BOARD_LCDC_WIDTH 800 /* Display width (pixels) */ #define BOARD_LCDC_HEIGHT 480 /* Display height (rows) */ #undef BOARD_LCDC_MCK_MUL2 /* Source clock is Mck (vs 2*Mck) */