[PATCH 3/5] pci: dw_mvebu: Use dev_read_addr_x APIs

Peng Fan (OSS) peng.fan at oss.nxp.com
Tue May 26 10:09:11 CEST 2026


From: Peng Fan <peng.fan at nxp.com>

Use dev_read_addr_x APIs which support both live device tree and flat DT
backends, avoiding direct dependency on devfdt_* helpers.

No functional changes.

Signed-off-by: Peng Fan <peng.fan at nxp.com>
---
 drivers/pci/pcie_dw_mvebu.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/pci/pcie_dw_mvebu.c b/drivers/pci/pcie_dw_mvebu.c
index 43b919175c9..5a177478afc 100644
--- a/drivers/pci/pcie_dw_mvebu.c
+++ b/drivers/pci/pcie_dw_mvebu.c
@@ -565,13 +565,12 @@ static int pcie_dw_mvebu_of_to_plat(struct udevice *dev)
 	struct pcie_dw_mvebu *pcie = dev_get_priv(dev);
 
 	/* Get the controller base address */
-	pcie->ctrl_base = devfdt_get_addr_index_ptr(dev, 0);
+	pcie->ctrl_base = dev_read_addr_index_ptr(dev, 0);
 	if (!pcie->ctrl_base)
 		return -EINVAL;
 
 	/* Get the config space base address and size */
-	pcie->cfg_base = devfdt_get_addr_size_index_ptr(dev, 1,
-							&pcie->cfg_size);
+	pcie->cfg_base = dev_read_addr_size_index_ptr(dev, 1, &pcie->cfg_size);
 	if (!pcie->cfg_base)
 		return -EINVAL;
 

-- 
2.51.0



More information about the U-Boot mailing list