mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
drivers: pci: Fix dm_pci_map_bar() to support 64b BARs
This enables 64b BARs if CONFIG_SYS_PCI_64BIT is enabled. Reviewed-by: Philip Oberfichtner <pro@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Moritz Fischer <moritzf@google.com>
This commit is contained in:
parent
21a2c129ad
commit
0408347034
2 changed files with 12 additions and 0 deletions
|
@ -1354,6 +1354,7 @@ pci_addr_t dm_pci_phys_to_bus(struct udevice *dev, phys_addr_t addr, size_t len,
|
|||
* type 1 functions.
|
||||
* Can also be used on type 0 functions that support Enhanced Allocation for
|
||||
* 32b/64b BARs. Note that duplicate BEI entries are not supported.
|
||||
* Can also be used on 64b bars on type 0 functions.
|
||||
*
|
||||
* @dev: Device to check
|
||||
* @bar: Bar register offset (PCI_BASE_ADDRESS_...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue