]> git.dujemihanovic.xyz Git - u-boot.git/commit
test: pci: Test PCI address conversion functions
authorAndrew Scull <ascull@google.com>
Thu, 21 Apr 2022 16:11:09 +0000 (16:11 +0000)
committerTom Rini <trini@konsulko.com>
Tue, 3 May 2022 19:50:46 +0000 (15:50 -0400)
commit55e6adbd78fcfcbd5c2e291ae1f5da3b107cb388
tree6d7f63d10c3273f40a57191c22fbabfd22346eac
parent398dc367c53dcff4f61116a3de66ba4e4e6b8586
test: pci: Test PCI address conversion functions

Add tests for the functions dm_pci_bus_to_phys() and
dm_pci_phys_to_bus() which convert between PCI bus addresses and
physical addresses based on the ranges declared for the PCI controller.

The ranges of bus#1 are used for the tests, adding a translation to one
of the ranges to cover more cases.

Signed-off-by: Andrew Scull <ascull@google.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/sandbox/dts/test.dts
test/dm/pci.c