summaryrefslogtreecommitdiff
path: root/src/soc/broadcom/cygnus/bootblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/broadcom/cygnus/bootblock.c')
-rw-r--r--src/soc/broadcom/cygnus/bootblock.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/soc/broadcom/cygnus/bootblock.c b/src/soc/broadcom/cygnus/bootblock.c
index 37edf7f771..3c6d242d76 100644
--- a/src/soc/broadcom/cygnus/bootblock.c
+++ b/src/soc/broadcom/cygnus/bootblock.c
@@ -17,13 +17,20 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <arch/cache.h>
#include <bootblock_common.h>
-#include <console/console.h>
+#include <stddef.h>
+#include <symbols.h>
void bootblock_soc_init(void)
{
/*
- * typically, this is the place where mmu is initialized to enable
- * cache. it helps speed up vboot verification.
+ * not only for speed but for preventing the cpu from crashing.
+ * the cpu is not happy when cache is cleaned without mmu turned on.
*/
+ mmu_init();
+ mmu_config_range(0, 4096, DCACHE_OFF);
+ mmu_config_range_kb((uintptr_t)_sram/KiB, _sram_size/KiB,
+ DCACHE_WRITETHROUGH);
+ dcache_mmu_enable();
}