]>
Commit | Line | Data |
---|---|---|
008a351a MK |
1 | /* |
2 | * Copyright (c) 2010 Samsung Electronics. | |
3 | * Minkyu Kang <mk7.kang@samsung.com> | |
4 | * | |
1a459660 | 5 | * SPDX-License-Identifier: GPL-2.0+ |
008a351a MK |
6 | */ |
7 | ||
8 | #include <common.h> | |
9 | #include <asm/io.h> | |
7ee68fe8 RS |
10 | #include <asm/system.h> |
11 | ||
008a351a MK |
12 | void reset_cpu(ulong addr) |
13 | { | |
36aa8937 | 14 | #ifdef CONFIG_CPU_V7 |
008a351a | 15 | writel(0x1, samsung_get_base_swreset()); |
36aa8937 | 16 | #endif |
008a351a | 17 | } |
d7957d1d ŁM |
18 | |
19 | #ifndef CONFIG_SYS_DCACHE_OFF | |
20 | void enable_caches(void) | |
21 | { | |
22 | /* Enable D-cache. I-cache is already enabled in start.S */ | |
23 | dcache_enable(); | |
24 | } | |
25 | #endif |