summaryrefslogtreecommitdiff
path: root/arch/riscv/cpu/fu540/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/cpu/fu540/cache.c')
-rw-r--r--arch/riscv/cpu/fu540/cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/riscv/cpu/fu540/cache.c b/arch/riscv/cpu/fu540/cache.c
index 54de14238c..78f5ad9d60 100644
--- a/arch/riscv/cpu/fu540/cache.c
+++ b/arch/riscv/cpu/fu540/cache.c
@@ -35,7 +35,8 @@ int cache_enable_ways(void)
if (node < 0)
return node;
- base = fdtdec_get_addr(blob, node, "reg");
+ base = fdtdec_get_addr_size_auto_parent(blob, 0, node, "reg", 0,
+ NULL, false);
if (base == FDT_ADDR_T_NONE)
return FDT_ADDR_T_NONE;