blob: b37e299b74e81d29cac74b3046ba09dad34cfde9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2018 MediaTek Inc.
*/
#include <common.h>
#include <dm.h>
#include <wdt.h>
#include <dm/uclass-internal.h>
int arch_misc_init(void)
{
struct udevice *wdt;
int ret;
ret = uclass_first_device_err(UCLASS_WDT, &wdt);
if (!ret)
wdt_stop(wdt);
return 0;
}
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();
}
|