summaryrefslogtreecommitdiff
path: root/arch/x86/lib/video.c
diff options
context:
space:
mode:
authorGabe Black <gabeblack@chromium.org>2012-11-29 16:23:41 +0000
committerSimon Glass <sjg@chromium.org>2012-11-30 13:44:04 -0800
commit5b5ece9ef4ac1a859179b894c3067e2841d76472 (patch)
tree036c632e07a534a7a5d98263e498c2d008a029ae /arch/x86/lib/video.c
parent420a2ca73f5805be5e69d01cfe60a06fba8c9754 (diff)
downloadu-boot-imx-5b5ece9ef4ac1a859179b894c3067e2841d76472.zip
u-boot-imx-5b5ece9ef4ac1a859179b894c3067e2841d76472.tar.gz
u-boot-imx-5b5ece9ef4ac1a859179b894c3067e2841d76472.tar.bz2
x86: Allow compiling out realmode/bios code
We don't want this for coreboot, so provide a way of compiling it out. Signed-off-by: Gabe Black <gabeblack@chromium.org> Signed-off-by: Stefan Reinauer <reinauer@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/lib/video.c')
-rw-r--r--arch/x86/lib/video.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/lib/video.c b/arch/x86/lib/video.c
index 3d6b24d..20e2416 100644
--- a/arch/x86/lib/video.c
+++ b/arch/x86/lib/video.c
@@ -222,8 +222,10 @@ int video_init(void)
int drv_video_init(void)
{
+#ifndef CONFIG_X86_NO_REAL_MODE
if (video_bios_init())
return 1;
+#endif
return video_init();
}