diff options
Diffstat (limited to 'src/cpu/samsung/exynos5420')
-rw-r--r-- | src/cpu/samsung/exynos5420/cpu.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/cpu/samsung/exynos5420/cpu.c b/src/cpu/samsung/exynos5420/cpu.c index 1940b88886..bda46de63d 100644 --- a/src/cpu/samsung/exynos5420/cpu.c +++ b/src/cpu/samsung/exynos5420/cpu.c @@ -198,4 +198,20 @@ void exynos5420_config_l2_cache(void) */ val = (1 << 9) | (0x2 << 6) | (1 << 5) | (0x2); write_l2ctlr(val); + + val = read_l2actlr(); + + /* L2ACTLR[3]: Disable clean/evict push to external */ + val |= (1 << 3); + + /* L2ACTLR[7]: Enable hazard detect timeout for A15 */ + val |= (1 << 7); + + /* L2ACTLR[27]: Prevents stopping the L2 logic clock */ + val |= (1 << 27); + + write_l2actlr(val); + + /* Read the l2 control register to force things to take effect? */ + val = read_l2ctlr(); } |