commit | c7456a47ee8ee66093a19158a0351dac8595c242 | [log] [tgz] |
---|---|---|
author | Andrew Scull <ascull@google.com> | Thu Apr 21 16:11:09 2022 +0000 |
committer | Tom Rini <trini@konsulko.com> | Tue May 03 15:50:46 2022 -0400 |
tree | 6d7f63d10c3273f40a57191c22fbabfd22346eac | |
parent | 3bf6152e4a88bb16ea8ec19915d879b3826feb45 [diff] |
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>