1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00
Files
u-boot-megous/include
Heinrich Schuchardt 58fc2b54f5 pci: definition of pci_addr_t and pci_size_t
Currently the size of pci_addr_t and pci_size_t depends on
CONFIG_SYS_PCI_64BIT. For qemu_arm64_defconfig with 4 GiB RAM this leads
to an error

    pci_hose_phys_to_bus: invalid physical address

which is due to the truncation of the bus address in _dm_pci_phys_to_bus.

Defining CONFIG_SYS_PCI_64BIT is not a solution as this results in an error

   PCI: Failed autoconfig bar 10

So let's use unsigned long for pci_addr_t and pci_size_t if
CONFIG_SYS_PCI_64BIT is not defined.

Considering that 32bit U-Boot is used to launch some 64bit x86 systems we
cannot do without CONFIG_SYS_PCI_64BIT requiring u64 as type.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
2020-02-13 10:10:50 -05:00
..
2019-12-06 16:44:20 -05:00
2019-10-16 05:42:27 +02:00
2019-11-17 17:22:53 +08:00
2019-12-15 11:44:16 +08:00
2019-11-02 18:00:51 +08:00
2020-02-05 19:33:46 -07:00
2020-01-07 14:37:50 +01:00
2020-02-05 19:33:46 -07:00
2019-10-13 23:34:43 +02:00
2020-01-24 23:06:47 +05:30
2020-01-20 15:38:16 +01:00
2019-12-17 06:58:19 +01:00
2019-10-14 09:31:41 +02:00
2020-01-20 15:38:16 +01:00
2020-01-24 23:06:49 +05:30
2019-11-07 18:39:16 -05:00
2020-01-07 16:03:01 -07:00
2019-12-02 18:23:11 -05:00
2020-01-25 12:04:36 -05:00
2020-01-24 23:06:48 +05:30
2020-02-05 19:33:46 -07:00
2019-12-15 11:44:11 +08:00
2020-02-05 19:33:46 -07:00
2019-12-06 16:44:19 -05:00
2020-02-05 19:33:46 -07:00
2020-01-24 23:06:49 +05:30
2020-01-21 15:56:15 +01:00
2020-02-07 22:46:35 +08:00
2019-12-02 18:23:09 -05:00