mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00: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:
parent
a822d1dee4
commit
2635e3b50f
33 changed files with 61 additions and 47 deletions
|
@ -59,7 +59,8 @@ static int designware_i2c_pci_of_to_plat(struct udevice *dev)
|
|||
priv->regs = (struct i2c_regs *)dm_pci_read_bar32(dev, 0);
|
||||
} else {
|
||||
priv->regs = (struct i2c_regs *)
|
||||
dm_pci_map_bar(dev, PCI_BASE_ADDRESS_0, 0, 0, PCI_REGION_MEM);
|
||||
dm_pci_map_bar(dev, PCI_BASE_ADDRESS_0, 0, 0,
|
||||
PCI_REGION_TYPE, PCI_REGION_MEM);
|
||||
}
|
||||
if (!priv->regs)
|
||||
return -EINVAL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue