mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
lcd: fix the color testpattern in 16bit mode
The testpattern of the lcd was only working in 8bit mode(2x3 tiles in different colors). With this patch now 8bit and 16bit is supported. In 16bit mode there are 2x4 tiles in different colors. The number of LCD-colors is defined in the include/configs/<boardfile>.h Signed-off-by: Andreas Neubacher <neubacher.andreas@gmail.com> Signed-off-by: Anatolij Gustschin <agust@denx.de>
This commit is contained in:

committed by
Anatolij Gustschin

parent
913d1be208
commit
e32951b525
@ -195,8 +195,15 @@ void lcd_sync(void);
|
||||
#define CONSOLE_COLOR_WHITE 0x00ffffff /* Must remain last / highest */
|
||||
#define NBYTES(bit_code) (NBITS(bit_code) >> 3)
|
||||
#else /* 16bpp color definitions */
|
||||
#define CONSOLE_COLOR_BLACK 0x0000
|
||||
#define CONSOLE_COLOR_WHITE 0xffff /* Must remain last / highest */
|
||||
# define CONSOLE_COLOR_BLACK 0x0000
|
||||
# define CONSOLE_COLOR_RED 0xF800
|
||||
# define CONSOLE_COLOR_GREEN 0x07E0
|
||||
# define CONSOLE_COLOR_YELLOW 0xFFE0
|
||||
# define CONSOLE_COLOR_BLUE 0x001F
|
||||
# define CONSOLE_COLOR_MAGENTA 0xF81F
|
||||
# define CONSOLE_COLOR_CYAN 0x07FF
|
||||
# define CONSOLE_COLOR_GREY 0xC618
|
||||
# define CONSOLE_COLOR_WHITE 0xffff /* Must remain last / highest */
|
||||
#endif /* color definitions */
|
||||
|
||||
#if LCD_BPP == LCD_COLOR16
|
||||
|
Reference in New Issue
Block a user