pci: pci_mvebu: Remove dependency on SOC_REGS_PHY_BASE macro
authorPali Rohár <pali@kernel.org>
Tue, 21 Dec 2021 11:20:15 +0000 (12:20 +0100)
committerStefan Roese <sr@denx.de>
Fri, 14 Jan 2022 06:47:57 +0000 (07:47 +0100)
commit137db2af147979dc27d912e0567e7953a9380df3
treeb397974eb6f677458692b2837f235743147c69f2
parent6f4988f90c93758f3d4987986394dae90bb8ce24
pci: pci_mvebu: Remove dependency on SOC_REGS_PHY_BASE macro

SoC specific macro SOC_REGS_PHY_BASE is used for two things:

* calculation of base PCIe port address
* filling PCIe register with address of internal registers

For calculating base PCIe port address use function
ofnode_translate_address() which translates DT "assigned-addresses" to
final PCIe port address.

And for calculating address of internal registers use untranslated and
translated DT "assigned-addresses".

Basically this change reads SOC_REGS_PHY_BASE address indirectly from DT.

Signed-off-by: Pali Rohár <pali@kernel.org>
drivers/pci/pci_mvebu.c