aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/plat-s5p/cpu.c5
-rw-r--r--arch/arm/plat-s5p/include/plat/system-reset.h24
2 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm/plat-s5p/cpu.c b/arch/arm/plat-s5p/cpu.c
index 75cb8c37ca2c..1ab55e82587b 100644
--- a/arch/arm/plat-s5p/cpu.c
+++ b/arch/arm/plat-s5p/cpu.c
@@ -103,6 +103,11 @@ static struct map_desc s5p_iodesc[] __initdata = {
103 .pfn = __phys_to_pfn(S5P_PA_GPIO), 103 .pfn = __phys_to_pfn(S5P_PA_GPIO),
104 .length = SZ_4K, 104 .length = SZ_4K,
105 .type = MT_DEVICE, 105 .type = MT_DEVICE,
106 }, {
107 .virtual = (unsigned long)S3C_VA_WATCHDOG,
108 .pfn = __phys_to_pfn(S3C_PA_WDT),
109 .length = SZ_4K,
110 .type = MT_DEVICE,
106 }, 111 },
107}; 112};
108 113
diff --git a/arch/arm/plat-s5p/include/plat/system-reset.h b/arch/arm/plat-s5p/include/plat/system-reset.h
new file mode 100644
index 000000000000..7f76a164c20c
--- /dev/null
+++ b/arch/arm/plat-s5p/include/plat/system-reset.h
@@ -0,0 +1,24 @@
1/* linux/arch/arm/plat-s5p/include/plat/system-reset.h
2 *
3 * Copyright (c) 2010 Samsung Electronics Co., Ltd.
4 * http://www.samsung.com
5 *
6 * Based on arch/arm/mach-s3c2410/include/mach/system-reset.h
7 *
8 * S5P - System define for arch_reset()
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
13*/
14
15#include <plat/watchdog-reset.h>
16
17static void arch_reset(char mode, const char *cmd)
18{
19 /* Perform reset using Watchdog reset.
20 * SWRESET support will be added later.
21 */
22
23 arch_wdt_reset();
24}