x86: Adjust config to support DM_VIDEO
authorSimon Glass <sjg@chromium.org>
Thu, 6 Oct 2016 02:42:18 +0000 (20:42 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 11 Oct 2016 03:55:33 +0000 (11:55 +0800)
Update the common configuration so that it works correctly when
CONFIG_DM_VIDEO is enabled. This involves dropping the legacy CONFIG_VIDEO
option and changing the stdio device from "vga" to "vidconsole".

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
include/configs/x86-chromebook.h
include/configs/x86-common.h

index 312987edc8ab766988438db5481ad8dcac84be52..7fba7169db2e5a4efc7e285c9771ad3fc02a74f4 100644 (file)
 
 #define CONFIG_SYS_WHITE_ON_BLACK
 
+#ifdef CONFIG_DM_VIDEO
+#define VIDEO_DEV "vidconsole"
+#else
+#define VIDEO_DEV "vga"
+#endif
+
 #define CONFIG_STD_DEVICES_SETTINGS     "stdin=usbkbd,i8042-kbd,serial\0" \
-                                       "stdout=vga,serial\0" \
-                                       "stderr=vga,serial\0"
+                                       "stdout=" VIDEO_DEV ",serial\0" \
+                                       "stderr=" VIDEO_DEV ",serial\0"
 
 #endif
index 74b25221920b65b2895b45a3f7bed8db653113e4..96c53b841e9b4e3076486b66646f88d4d1d63e45 100644 (file)
 /*-----------------------------------------------------------------------
  * Video Configuration
  */
+#ifndef CONFIG_DM_VIDEO
 #define CONFIG_VIDEO
 #define CONFIG_VIDEO_SW_CURSOR
 #define VIDEO_FB_16BPP_WORD_SWAP
 #define CONFIG_VGA_AS_SINGLE_DEVICE
 #define CONFIG_CFB_CONSOLE
+#endif
 #define CONFIG_CONSOLE_SCROLL_LINES 5
 
 /*-----------------------------------------------------------------------