summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-05-24 21:13:57 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2016-05-26 00:35:26 +0900
commit0bd20207ab2d874842161cab37c213310d785b24 (patch)
treeda95cd1c624176e51bd12a9b709e968afd89205f /arch/arm/mach-uniphier
parentfc15b9beed05dec6cc092c265042381a0eadb0e9 (diff)
downloadu-boot-imx-0bd20207ab2d874842161cab37c213310d785b24.zip
u-boot-imx-0bd20207ab2d874842161cab37c213310d785b24.tar.gz
u-boot-imx-0bd20207ab2d874842161cab37c213310d785b24.tar.bz2
ARM: uniphier: disable cache in SPL of PH1-LD20
The Boot ROM has enabled D-cache and MMU setting DDR memory area as Normal Memory in its page table. Disable D-cache and MMU before jumping to U-Boot proper. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/arm/mach-uniphier')
-rw-r--r--arch/arm/mach-uniphier/init/init-ld20.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-uniphier/init/init-ld20.c b/arch/arm/mach-uniphier/init/init-ld20.c
index 660ad45..7f66053 100644
--- a/arch/arm/mach-uniphier/init/init-ld20.c
+++ b/arch/arm/mach-uniphier/init/init-ld20.c
@@ -51,5 +51,7 @@ int uniphier_ld20_init(const struct uniphier_board_data *bd)
led_puts("L5");
+ dcache_disable();
+
return 0;
}