summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2013-10-22 11:06:06 +0200
committerAnatolij Gustschin <agust@denx.de>2013-10-30 10:48:37 +0100
commit45ae2546ef157b647d8684845c6554283b80be92 (patch)
treebcd787b8daaa3e2eb5b345313f536ae5e764e3a4 /include
parent2740e5de4f3cd0aa36efcfe1a995fb6e3858cc97 (diff)
downloadu-boot-imx-45ae2546ef157b647d8684845c6554283b80be92.zip
u-boot-imx-45ae2546ef157b647d8684845c6554283b80be92.tar.gz
u-boot-imx-45ae2546ef157b647d8684845c6554283b80be92.tar.bz2
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>
Diffstat (limited to 'include')
-rw-r--r--include/video_fb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/video_fb.h b/include/video_fb.h
index 028e2a6..6cd4e37 100644
--- a/include/video_fb.h
+++ b/include/video_fb.h
@@ -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