]> git.sur5r.net Git - u-boot/commit
x86: qemu: Adjust VGA initialization
authorBin Meng <bmeng.cn@gmail.com>
Mon, 25 May 2015 14:36:27 +0000 (22:36 +0800)
committerSimon Glass <sjg@chromium.org>
Thu, 4 Jun 2015 08:39:40 +0000 (02:39 -0600)
commit4be2f42bbc8171eae930db37f370f10779c5b02c
treeeca1cd196755740b614bdeb06e9d9df10b16dbe5
parent0fcb7acf6748d2ee0b7abfd75e074840be6b7e0e
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