mirror of
https://xff.cz/git/u-boot/
synced 2025-11-02 03:17:29 +01:00
pci: Add mask parameter to dm_pci_map_bar()
Add a mask parameter to control the lookup of the PCI region from which the mapping can be made. Signed-off-by: Andrew Scull <ascull@google.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
@@ -3822,7 +3822,7 @@ static int octeontx_mmc_host_probe(struct udevice *dev)
|
||||
|
||||
/* Octeon TX & TX2 use PCI based probing */
|
||||
if (device_is_compatible(dev, "cavium,thunder-8890-mmc")) {
|
||||
host->base_addr = dm_pci_map_bar(dev, PCI_BASE_ADDRESS_0, 0, 0,
|
||||
host->base_addr = dm_pci_map_bar(dev, PCI_BASE_ADDRESS_0, 0, 0, PCI_REGION_TYPE,
|
||||
PCI_REGION_MEM);
|
||||
if (!host->base_addr) {
|
||||
pr_err("%s: Error: MMC base address not found\n",
|
||||
|
||||
@@ -50,7 +50,7 @@ static int pci_mmc_probe(struct udevice *dev)
|
||||
desc = mmc_get_blk_desc(&plat->mmc);
|
||||
desc->removable = !(plat->cfg.host_caps & MMC_CAP_NONREMOVABLE);
|
||||
|
||||
host->ioaddr = (void *)dm_pci_map_bar(dev, PCI_BASE_ADDRESS_0, 0, 0,
|
||||
host->ioaddr = (void *)dm_pci_map_bar(dev, PCI_BASE_ADDRESS_0, 0, 0, PCI_REGION_TYPE,
|
||||
PCI_REGION_MEM);
|
||||
host->name = dev->name;
|
||||
host->cd_gpio = priv->cd_gpio;
|
||||
|
||||
Reference in New Issue
Block a user