blob: 5e5f3f084258cc1ad53cd401fe0d2fba3a2b0a22 [file] [log] [blame]
Ryder Leecbd2fba2018-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 Glass9edefc22019-11-14 12:57:37 -07007#include <cpu_func.h>
Ryder Leecbd2fba2018-11-15 10:07:52 +08008#include <dm.h>
9#include <wdt.h>
10#include <dm/uclass-internal.h>
11
Ryder Leecbd2fba2018-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}