public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Bin Meng <bmeng.cn@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/8] x86: qemu: Remove call to vgabios execution
Date: Fri,  6 Nov 2015 02:04:48 -0800	[thread overview]
Message-ID: <1446804295-6465-1-git-send-email-bmeng.cn@gmail.com> (raw)

The call to pci_run_vga_bios() is not needed as this is handled
in the vesa_fb driver.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---

Changes in v2: None

 arch/x86/cpu/qemu/pci.c | 19 +------------------
 1 file changed, 1 insertion(+), 18 deletions(-)

diff --git a/arch/x86/cpu/qemu/pci.c b/arch/x86/cpu/qemu/pci.c
index 2e94456..8515d10 100644
--- a/arch/x86/cpu/qemu/pci.c
+++ b/arch/x86/cpu/qemu/pci.c
@@ -6,7 +6,6 @@
 
 #include <common.h>
 #include <pci.h>
-#include <pci_rom.h>
 #include <asm/pci.h>
 #include <asm/arch/device.h>
 #include <asm/arch/qemu.h>
@@ -51,11 +50,8 @@ void board_pci_setup_hose(struct pci_controller *hose)
 
 int board_pci_post_scan(struct pci_controller *hose)
 {
-	int ret = 0;
 	u16 device, xbcs;
 	int pam, i;
-	pci_dev_t vga;
-	ulong start;
 
 	/*
 	 * i440FX and Q35 chipset have different PAM register offset, but with
@@ -96,20 +92,7 @@ int board_pci_post_scan(struct pci_controller *hose)
 				       CONFIG_PCIE_ECAM_BASE | BAR_EN);
 	}
 
-	/*
-	 * QEMU emulated graphic card shows in the PCI configuration space with
-	 * PCI vendor id and device id as an artificial pair 0x1234:0x1111.
-	 * It is on PCI bus 0, function 0, but device number is not consistent
-	 * for the two x86 targets it supports. For i440FX and PIIX chipset
-	 * board, it shows as device 2, while for Q35 and ICH9 chipset board,
-	 * it shows as device 1.
-	 */
-	vga = i440fx ? I440FX_VGA : Q35_VGA;
-	start = get_timer(0);
-	ret = pci_run_vga_bios(vga, NULL, PCI_ROM_USE_NATIVE);
-	debug("BIOS ran in %lums\n", get_timer(start));
-
-	return ret;
+	return 0;
 }
 
 #ifdef CONFIG_GENERATE_MP_TABLE
-- 
1.8.2.1

             reply	other threads:[~2015-11-06 10:04 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-06 10:04 Bin Meng [this message]
2015-11-06 10:04 ` [U-Boot] [PATCH v2 2/8] x86: qemu: Move chipset-specific codes from pci.c to qemu.c Bin Meng
2015-11-06 23:57   ` Simon Glass
2015-11-11  4:42     ` Bin Meng
2015-11-06 10:04 ` [U-Boot] [PATCH v2 3/8] x86: qemu: Convert to use driver model pci Bin Meng
2015-11-06 23:57   ` Simon Glass
2015-11-11  4:42     ` Bin Meng
2015-11-06 10:04 ` [U-Boot] [PATCH v2 4/8] x86: qemu: Convert to use driver model usb Bin Meng
2015-11-06 23:58   ` Simon Glass
2015-11-11  4:42     ` Bin Meng
2015-11-06 10:04 ` [U-Boot] [PATCH v2 5/8] x86: qemu: Convert to use driver model eth Bin Meng
2015-11-06 23:58   ` Simon Glass
2015-11-11  4:42     ` Bin Meng
2015-11-06 10:04 ` [U-Boot] [PATCH v2 6/8] x86: crownbay: Remove unused PCI region address macros Bin Meng
2015-11-06 23:58   ` Simon Glass
2015-11-11  4:42     ` Bin Meng
2015-11-06 10:04 ` [U-Boot] [PATCH v2 7/8] x86: Remove legacy pci codes Bin Meng
2015-11-06 23:58   ` Simon Glass
2015-11-11  4:42     ` Bin Meng
2015-11-06 10:04 ` [U-Boot] [PATCH v2 8/8] x86: Remove CONFIG_SYS_EARLY_PCI_INIT Bin Meng
2015-11-06 23:58   ` Simon Glass
2015-11-11  4:42     ` Bin Meng
2015-11-06 12:08 ` [U-Boot] [PATCH v2 1/8] x86: qemu: Remove call to vgabios execution Simon Glass
2015-11-11  4:42   ` Bin Meng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1446804295-6465-1-git-send-email-bmeng.cn@gmail.com \
    --to=bmeng.cn@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox