summaryrefslogtreecommitdiff
path: root/drivers/bios_emulator
diff options
context:
space:
mode:
authorAndrew Scull <ascull@google.com>2022-04-21 16:11:12 +0000
committerTom Rini <trini@konsulko.com>2022-05-03 18:33:29 -0400
commita822d1dee4e2a6a035c464426e56d1e5c600d273 (patch)
tree1e625e5b18c13d7357029a5675fc58613ceb237f /drivers/bios_emulator
parent7739d93d8288d9b58946ff5c5e46fb9e89599886 (diff)
downloadu-boot-a822d1dee4e2a6a035c464426e56d1e5c600d273.tar.gz
u-boot-a822d1dee4e2a6a035c464426e56d1e5c600d273.tar.bz2
u-boot-a822d1dee4e2a6a035c464426e56d1e5c600d273.zip
pci: Update dm_pci_bus_to_virt() parameters
Add mask parameter and reorder length parameter to match the other PCI address conversion functions. Using PCI_REGION_TYPE as the mask gives the old behaviour. It's converted from a macro to an inline function as the length parameter is now used twice, but should only be calculated once. Signed-off-by: Andrew Scull <ascull@google.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/bios_emulator')
-rw-r--r--drivers/bios_emulator/atibios.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bios_emulator/atibios.c b/drivers/bios_emulator/atibios.c
index 9547470a2f..cdc5ba6ad9 100644
--- a/drivers/bios_emulator/atibios.c
+++ b/drivers/bios_emulator/atibios.c
@@ -368,8 +368,8 @@ void *PCI_mapBIOSImage(struct udevice *pcidev)
return NULL;
}
- BIOSImage = dm_pci_bus_to_virt(pcidev, BIOSImageBus,
- PCI_REGION_MEM, 0, MAP_NOCACHE);
+ BIOSImage = dm_pci_bus_to_virt(pcidev, BIOSImageBus, 0, PCI_REGION_TYPE,
+ PCI_REGION_MEM, MAP_NOCACHE);
/*Change the PCI BAR registers to map it onto the bus.*/
dm_pci_write_config32(pcidev, BIOSImageBAR, 0);