]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
x86: qemu: Adjust VGA initialization
authorBin Meng <bmeng.cn@gmail.com>
Mon, 25 May 2015 14:36:27 +0000 (22:36 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:48:16 +0000 (22:48 +0200)
commitd649e81b648610f7a0909a7c779f08aee543d211
tree0f16f41c97828566cfb03267161ae90481608637
parent8aceba2628b46d140373de168daa5483c282cd24
x86: qemu: Adjust VGA initialization

As VGA option rom needs to run at C segment, although QEMU PAM emulation
seems to only guard E/F segments, for correctness, move VGA initialization
after PAM decode C/D/E/F segments.

Also since we already tested QEMU targets to differentiate I440FX and Q35
platforms, change to locate the VGA device via hardcoded b.d.f instead of
dynamic search for its vendor id & device id pair.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/qemu/pci.c
arch/x86/include/asm/arch-qemu/device.h