summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-07-06 16:31:36 +0800
committerSimon Glass <sjg@chromium.org>2015-07-14 18:03:19 -0600
commita452002259e172c93277dbe5752817e0732afe78 (patch)
treeebe93096ea5998bd0ec106eccac80cf24214b06e /arch
parent7aaff9bf81b17b7920826f99a17eae7659292f5c (diff)
downloadblackbird-obmc-uboot-a452002259e172c93277dbe5752817e0732afe78.tar.gz
blackbird-obmc-uboot-a452002259e172c93277dbe5752817e0732afe78.zip
x86: Configure VESA parameters before loading Linux kernel
Store VESA parameters to Linux setup header so that vesafb driver in the kernel could work. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org> Tested-by: Jian Luo <jian.luo4@boschrexroth.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/include/asm/zimage.h1
-rw-r--r--arch/x86/lib/zimage.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/include/asm/zimage.h b/arch/x86/include/asm/zimage.h
index 8e7dd424ca..bf351ed3b6 100644
--- a/arch/x86/include/asm/zimage.h
+++ b/arch/x86/include/asm/zimage.h
@@ -38,5 +38,6 @@ struct boot_params *load_zimage(char *image, unsigned long kernel_size,
ulong *load_addressp);
int setup_zimage(struct boot_params *setup_base, char *cmd_line, int auto_boot,
unsigned long initrd_addr, unsigned long initrd_size);
+void setup_video(struct screen_info *screen_info);
#endif
diff --git a/arch/x86/lib/zimage.c b/arch/x86/lib/zimage.c
index c3f8a7308f..144471c5bb 100644
--- a/arch/x86/lib/zimage.c
+++ b/arch/x86/lib/zimage.c
@@ -273,6 +273,8 @@ int setup_zimage(struct boot_params *setup_base, char *cmd_line, int auto_boot,
build_command_line(cmd_line, auto_boot);
}
+ setup_video(&setup_base->screen_info);
+
return 0;
}
OpenPOWER on IntegriCloud