summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-11-29 13:17:58 -0700
committerSimon Glass <sjg@chromium.org>2016-01-12 10:19:09 -0700
commit8beb0bda9c59146df70b960ce69ecfbd6f744028 (patch)
treeb556a48f262417fba664be1582a618575c20113a /arch
parent3f4e1e8efc5b700473f1920e92b521cb0945a6e3 (diff)
downloadu-boot-imx-8beb0bda9c59146df70b960ce69ecfbd6f744028.zip
u-boot-imx-8beb0bda9c59146df70b960ce69ecfbd6f744028.tar.gz
u-boot-imx-8beb0bda9c59146df70b960ce69ecfbd6f744028.tar.bz2
dm: x86: pci: Adjust bios_run_on_x86() to use the DM PCI API
This function should take a struct udevice rather than pci_dev_t. Update it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/lib/bios.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/lib/bios.c b/arch/x86/lib/bios.c
index 1d75cfc..9324bdb 100644
--- a/arch/x86/lib/bios.c
+++ b/arch/x86/lib/bios.c
@@ -242,9 +242,10 @@ static void vbe_set_graphics(int vesa_mode, struct vbe_mode_info *mode_info)
vbe_set_mode(mode_info);
}
-void bios_run_on_x86(pci_dev_t pcidev, unsigned long addr, int vesa_mode,
+void bios_run_on_x86(struct udevice *dev, unsigned long addr, int vesa_mode,
struct vbe_mode_info *mode_info)
{
+ pci_dev_t pcidev = dm_pci_get_bdf(dev);
u32 num_dev;
num_dev = PCI_BUS(pcidev) << 8 | PCI_DEV(pcidev) << 3 |