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