mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
video, cfb_console: make background and foreground color configurable
make CONSOLE_BG_COL/CONSOLE_FG_COL configurable through board config file. Clear video screen in video_init(). Signed-off-by: Heiko Schocher <hs@denx.de> Cc: Anatolij Gustschin <agust@denx.de>
This commit is contained in:
committed by
Anatolij Gustschin
parent
2740e5de4f
commit
45ae2546ef
@@ -18,8 +18,13 @@
|
||||
#ifndef _VIDEO_FB_H_
|
||||
#define _VIDEO_FB_H_
|
||||
|
||||
#if defined(CONFIG_SYS_CONSOLE_FG_COL) && defined(CONFIG_SYS_CONSOLE_BG_COL)
|
||||
#define CONSOLE_BG_COL CONFIG_SYS_CONSOLE_BG_COL
|
||||
#define CONSOLE_FG_COL CONFIG_SYS_CONSOLE_FG_COL
|
||||
#else
|
||||
#define CONSOLE_BG_COL 0x00
|
||||
#define CONSOLE_FG_COL 0xa0
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Graphic Data Format (GDF) bits for VIDEO_DATA_FORMAT
|
||||
|
Reference in New Issue
Block a user