summaryrefslogtreecommitdiff
path: root/common/spl/spl_atf.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/spl/spl_atf.c')
-rw-r--r--common/spl/spl_atf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/spl/spl_atf.c b/common/spl/spl_atf.c
index 0b1c981a105..0397b86a33b 100644
--- a/common/spl/spl_atf.c
+++ b/common/spl/spl_atf.c
@@ -203,7 +203,8 @@ static void __noreturn bl31_entry(uintptr_t bl31_entry, uintptr_t bl32_entry,
fdt_addr);
raw_write_daif(SPSR_EXCEPTION_MASK);
- dcache_disable();
+ if (!CONFIG_IS_ENABLED(SYS_DCACHE_OFF))
+ dcache_disable();
atf_entry(bl31_params, (void *)fdt_addr);
}