summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2021-05-26 17:59:37 +0200
committerStefan Roese <sr@denx.de>2021-06-04 11:32:41 +0200
commit46b679e3ec344c4cf9e1c18409bcfe822ca7ff01 (patch)
tree2a603cdf8a87031be91400f4a13293e1362f8839
parenta544d65f1ddf0a14c49ca137aea1f2407edddb4c (diff)
downloadu-boot-46b679e3ec344c4cf9e1c18409bcfe822ca7ff01.tar.gz
u-boot-46b679e3ec344c4cf9e1c18409bcfe822ca7ff01.tar.xz
u-boot-46b679e3ec344c4cf9e1c18409bcfe822ca7ff01.zip
arm: a37xx: pci: Find PCIe controller node by compatible instead of path
Find PCIe DT node by compatible string instead of retrieving it by using hardcoded DT path. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de>
-rw-r--r--arch/arm/mach-mvebu/armada3700/cpu.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/mach-mvebu/armada3700/cpu.c b/arch/arm/mach-mvebu/armada3700/cpu.c
index 0cf60d7cdd..1abac7c9a4 100644
--- a/arch/arm/mach-mvebu/armada3700/cpu.c
+++ b/arch/arm/mach-mvebu/armada3700/cpu.c
@@ -53,8 +53,6 @@
#define A3700_PTE_BLOCK_DEVICE \
(PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | PTE_BLOCK_NON_SHARE)
-#define PCIE_PATH "/soc/pcie@d0070000"
-
DECLARE_GLOBAL_DATA_PTR;
static struct mm_region mvebu_mem_map[MAX_MEM_MAP_REGIONS] = {
@@ -288,7 +286,7 @@ int a3700_fdt_fix_pcie_regions(void *blob)
const u32 *ranges;
int node, len;
- node = fdt_path_offset(blob, PCIE_PATH);
+ node = fdt_node_offset_by_compatible(blob, -1, "marvell,armada-3700-pcie");
if (node < 0)
return node;