]> git.ipfire.org Git - people/ms/u-boot.git/blob - arch/arm/cpu/s3c44b0/cpu.c
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / arch / arm / cpu / s3c44b0 / cpu.c
1 /*
2 * (C) Copyright 2004
3 * DAVE Srl
4 * http://www.dave-tech.it
5 * http://www.wawnet.biz
6 * mailto:info@wawnet.biz
7 *
8 * SPDX-License-Identifier: GPL-2.0+
9 */
10
11 /*
12 * S3C44B0 CPU specific code
13 */
14
15 #include <common.h>
16 #include <command.h>
17 #include <asm/hardware.h>
18
19 int arch_cpu_init (void)
20 {
21 icache_enable();
22
23 return 0;
24 }
25
26 int cleanup_before_linux (void)
27 {
28 /*
29 cache memory should be enabled before calling
30 Linux to make the kernel uncompression faster
31 */
32 icache_enable();
33
34 disable_interrupts ();
35
36 return 0;
37 }
38
39 void reset_cpu (ulong addr)
40 {
41 /*
42 reset the cpu using watchdog
43 */
44
45 /* Disable the watchdog.*/
46 WTCON&=~(1<<5);
47
48 /* set the timeout value to a short time... */
49 WTCNT = 0x1;
50
51 /* Enable the watchdog. */
52 WTCON|=1;
53 WTCON|=(1<<5);
54
55 while(1) {
56 /*NOP*/
57 }
58 }