blob: c329e7cc98a87c8932c95bdfd73ede7c23227be5 [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>
Simon Glass1d91ba72019-11-14 12:57:37 -07007#include <cpu_func.h>
developerf4a079c2018-11-15 10:07:52 +08008#include <dm.h>
Simon Glass97589732020-05-10 11:40:02 -06009#include <init.h>
developerf4a079c2018-11-15 10:07:52 +080010#include <wdt.h>
11#include <dm/uclass-internal.h>
12
developerf4a079c2018-11-15 10:07:52 +080013int arch_cpu_init(void)
14{
15 icache_enable();
16
17 return 0;
18}
19
20void enable_caches(void)
21{
22 /* Enable D-cache. I-cache is already enabled in start.S */
23 dcache_enable();
24}