Skip to content

Commit

Permalink
SAMA5D4-EK LCD: Actual hardware with appears to be RGB888
Browse files Browse the repository at this point in the history
  • Loading branch information
gregory-nutt committed Jul 10, 2014
1 parent 89024f3 commit 95df6bd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 5 additions & 5 deletions arch/arm/src/sama5/sam_lcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion configs/sama5d4-ek/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) */
Expand Down

0 comments on commit 95df6bd

Please sign in to comment.