2018-11-15 11:07:52 +09:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2018 MediaTek Inc.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
2019-11-15 04:57:37 +09:00
|
|
|
#include <cpu_func.h>
|
2018-11-15 11:07:52 +09:00
|
|
|
#include <dm.h>
|
2020-05-11 02:40:02 +09:00
|
|
|
#include <init.h>
|
2018-11-15 11:07:52 +09:00
|
|
|
#include <wdt.h>
|
|
|
|
#include <dm/uclass-internal.h>
|
|
|
|
|
|
|
|
int arch_cpu_init(void)
|
|
|
|
{
|
|
|
|
icache_enable();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void enable_caches(void)
|
|
|
|
{
|
|
|
|
/* Enable D-cache. I-cache is already enabled in start.S */
|
|
|
|
dcache_enable();
|
|
|
|
}
|