Skip to contentSkip to conversation

Add 16bit colour support in lcd.h

PATCH New Mark Jackson 2 participants 2 messages Jul 21, 2009 – Jul 26, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add 16bit colour support in lcd.h

This patch adds support for LCD_COLOR16 in include/lcd.h.

---
 include/lcd.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/lcd.h +1 -1
index f054cac..0d6549c 100644
@@ -314,7 +314,7 @@ void lcd_show_board_info(void);
 #if LCD_BPP == LCD_MONOCHROME
 # define COLOR_MASK(c)		((c)	  | (c) << 1 | (c) << 2 | (c) << 3 | \
 				 (c) << 4 | (c) << 5 | (c) << 6 | (c) << 7)
-#elif LCD_BPP == LCD_COLOR8
+#elif (LCD_BPP == LCD_COLOR8) || (LCD_BPP == LCD_COLOR16)
 # define COLOR_MASK(c)		(c)
 #else
 # error Unsupported LCD BPP.
#1 lore raw

PATCH 1/1 Add 16bit colour support in lcd.h

Quoted 6 lines · Mark Jackson

This patch adds support for LCD_COLOR16 in include/lcd.h.

---
 include/lcd.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Applied to u-boot-video. Thanks!

Best regards,
Anatolij