summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-uniphier/cache_uniphier.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-uniphier/cache_uniphier.c')
-rw-r--r--arch/arm/mach-uniphier/cache_uniphier.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/arch/arm/mach-uniphier/cache_uniphier.c b/arch/arm/mach-uniphier/cache_uniphier.c
index 4bf01bce3e..c1e9164489 100644
--- a/arch/arm/mach-uniphier/cache_uniphier.c
+++ b/arch/arm/mach-uniphier/cache_uniphier.c
@@ -122,23 +122,6 @@ void v7_outer_cache_disable(void)
void enable_caches(void)
{
- uint32_t reg;
-
- /*
- * UniPhier SoCs must use L2 cache for init stack pointer.
- * We disable L2 and L1 in this order.
- * If CONFIG_SYS_DCACHE_OFF is not defined,
- * caches are enabled again with a new page table.
- */
-
- /* L2 disable */
- v7_outer_cache_disable();
-
- /* L1 disable */
- reg = get_cr();
- reg &= ~(CR_C | CR_M);
- set_cr(reg);
-
#ifndef CONFIG_SYS_DCACHE_OFF
dcache_enable();
#endif
OpenPOWER on IntegriCloud