aboutsummaryrefslogtreecommitdiff
path: root/src/soc/ti/am335x/bootblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/ti/am335x/bootblock.c')
-rw-r--r--src/soc/ti/am335x/bootblock.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/soc/ti/am335x/bootblock.c b/src/soc/ti/am335x/bootblock.c
new file mode 100644
index 0000000000..985e1a1a0b
--- /dev/null
+++ b/src/soc/ti/am335x/bootblock.c
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <types.h>
+
+#include <arch/cache.h>
+#include <bootblock_common.h>
+
+void bootblock_soc_init(void)
+{
+ uint32_t sctlr;
+
+ /* enable dcache */
+ sctlr = read_sctlr();
+ sctlr |= SCTLR_C;
+ write_sctlr(sctlr);
+}