blob: 1923c9e527ded4022846494c310f60b7e5e166fa [file] [log] [blame]
developerf4a079c2018-11-15 10:07:52 +08001// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2018 MediaTek Inc.
4 */
5
6#include <common.h>
7#include <dm.h>
8#include <wdt.h>
9#include <dm/uclass-internal.h>
10
developerf4a079c2018-11-15 10:07:52 +080011int arch_cpu_init(void)
12{
13 icache_enable();
14
15 return 0;
16}
17
18void enable_caches(void)
19{
20 /* Enable D-cache. I-cache is already enabled in start.S */
21 dcache_enable();
22}