aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c24xx
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-s3c24xx')
-rw-r--r--arch/arm/mach-s3c24xx/Kconfig2
-rw-r--r--arch/arm/mach-s3c24xx/common.c4
-rw-r--r--arch/arm/mach-s3c24xx/common.h5
-rw-r--r--arch/arm/mach-s3c24xx/include/mach/regs-s3c2443-clock.h2
-rw-r--r--arch/arm/mach-s3c24xx/mach-amlm5900.c1
-rw-r--r--arch/arm/mach-s3c24xx/mach-anubis.c1
-rw-r--r--arch/arm/mach-s3c24xx/mach-at2440evb.c1
-rw-r--r--arch/arm/mach-s3c24xx/mach-bast.c1
-rw-r--r--arch/arm/mach-s3c24xx/mach-gta02.c1
-rw-r--r--arch/arm/mach-s3c24xx/mach-h1940.c1
-rw-r--r--arch/arm/mach-s3c24xx/mach-jive.c1
-rw-r--r--arch/arm/mach-s3c24xx/mach-mini2440.c1
-rw-r--r--arch/arm/mach-s3c24xx/mach-n30.c2
-rw-r--r--arch/arm/mach-s3c24xx/mach-nexcoder.c1
-rw-r--r--arch/arm/mach-s3c24xx/mach-osiris.c1
-rw-r--r--arch/arm/mach-s3c24xx/mach-otom.c1
-rw-r--r--arch/arm/mach-s3c24xx/mach-qt2410.c1
-rw-r--r--arch/arm/mach-s3c24xx/mach-rx1950.c1
-rw-r--r--arch/arm/mach-s3c24xx/mach-rx3715.c1
-rw-r--r--arch/arm/mach-s3c24xx/mach-s3c2416-dt.c1
-rw-r--r--arch/arm/mach-s3c24xx/mach-smdk2410.c1
-rw-r--r--arch/arm/mach-s3c24xx/mach-smdk2413.c3
-rw-r--r--arch/arm/mach-s3c24xx/mach-smdk2416.c1
-rw-r--r--arch/arm/mach-s3c24xx/mach-smdk2440.c1
-rw-r--r--arch/arm/mach-s3c24xx/mach-smdk2443.c1
-rw-r--r--arch/arm/mach-s3c24xx/mach-tct_hammer.c1
-rw-r--r--arch/arm/mach-s3c24xx/mach-vr1000.c1
-rw-r--r--arch/arm/mach-s3c24xx/mach-vstms.c1
-rw-r--r--arch/arm/mach-s3c24xx/s3c2410.c13
-rw-r--r--arch/arm/mach-s3c24xx/s3c2412.c23
-rw-r--r--arch/arm/mach-s3c24xx/s3c2416.c8
-rw-r--r--arch/arm/mach-s3c24xx/s3c2443.c8
-rw-r--r--arch/arm/mach-s3c24xx/s3c244x.c12
33 files changed, 0 insertions, 104 deletions
diff --git a/arch/arm/mach-s3c24xx/Kconfig b/arch/arm/mach-s3c24xx/Kconfig
index ad5316ae524e..9eb22297cbe1 100644
--- a/arch/arm/mach-s3c24xx/Kconfig
+++ b/arch/arm/mach-s3c24xx/Kconfig
@@ -32,7 +32,6 @@ config CPU_S3C2410
32 select S3C2410_DMA if S3C24XX_DMA 32 select S3C2410_DMA if S3C24XX_DMA
33 select ARM_S3C2410_CPUFREQ if ARM_S3C24XX_CPUFREQ 33 select ARM_S3C2410_CPUFREQ if ARM_S3C24XX_CPUFREQ
34 select S3C2410_PM if PM 34 select S3C2410_PM if PM
35 select SAMSUNG_WDT_RESET
36 help 35 help
37 Support for S3C2410 and S3C2410A family from the S3C24XX line 36 Support for S3C2410 and S3C2410A family from the S3C24XX line
38 of Samsung Mobile CPUs. 37 of Samsung Mobile CPUs.
@@ -76,7 +75,6 @@ config CPU_S3C2442
76config CPU_S3C244X 75config CPU_S3C244X
77 def_bool y 76 def_bool y
78 depends on CPU_S3C2440 || CPU_S3C2442 77 depends on CPU_S3C2440 || CPU_S3C2442
79 select SAMSUNG_WDT_RESET
80 78
81config CPU_S3C2443 79config CPU_S3C2443
82 bool "SAMSUNG S3C2443" 80 bool "SAMSUNG S3C2443"
diff --git a/arch/arm/mach-s3c24xx/common.c b/arch/arm/mach-s3c24xx/common.c
index 44fa95df9262..bf50328107bd 100644
--- a/arch/arm/mach-s3c24xx/common.c
+++ b/arch/arm/mach-s3c24xx/common.c
@@ -51,7 +51,6 @@
51#include <plat/devs.h> 51#include <plat/devs.h>
52#include <plat/cpu-freq.h> 52#include <plat/cpu-freq.h>
53#include <plat/pwm-core.h> 53#include <plat/pwm-core.h>
54#include <plat/watchdog-reset.h>
55 54
56#include "common.h" 55#include "common.h"
57 56
@@ -513,7 +512,6 @@ struct platform_device s3c2443_device_dma = {
513void __init s3c2410_init_clocks(int xtal) 512void __init s3c2410_init_clocks(int xtal)
514{ 513{
515 s3c2410_common_clk_init(NULL, xtal, 0, S3C24XX_VA_CLKPWR); 514 s3c2410_common_clk_init(NULL, xtal, 0, S3C24XX_VA_CLKPWR);
516 samsung_wdt_reset_init(S3C24XX_VA_WATCHDOG);
517} 515}
518#endif 516#endif
519 517
@@ -535,7 +533,6 @@ void __init s3c2416_init_clocks(int xtal)
535void __init s3c2440_init_clocks(int xtal) 533void __init s3c2440_init_clocks(int xtal)
536{ 534{
537 s3c2410_common_clk_init(NULL, xtal, 1, S3C24XX_VA_CLKPWR); 535 s3c2410_common_clk_init(NULL, xtal, 1, S3C24XX_VA_CLKPWR);
538 samsung_wdt_reset_init(S3C24XX_VA_WATCHDOG);
539} 536}
540#endif 537#endif
541 538
@@ -543,7 +540,6 @@ void __init s3c2440_init_clocks(int xtal)
543void __init s3c2442_init_clocks(int xtal) 540void __init s3c2442_init_clocks(int xtal)
544{ 541{
545 s3c2410_common_clk_init(NULL, xtal, 2, S3C24XX_VA_CLKPWR); 542 s3c2410_common_clk_init(NULL, xtal, 2, S3C24XX_VA_CLKPWR);
546 samsung_wdt_reset_init(S3C24XX_VA_WATCHDOG);
547} 543}
548#endif 544#endif
549 545
diff --git a/arch/arm/mach-s3c24xx/common.h b/arch/arm/mach-s3c24xx/common.h
index ac3ff12a0601..c7ac7e61a22e 100644
--- a/arch/arm/mach-s3c24xx/common.h
+++ b/arch/arm/mach-s3c24xx/common.h
@@ -22,7 +22,6 @@ extern int s3c2410a_init(void);
22extern void s3c2410_map_io(void); 22extern void s3c2410_map_io(void);
23extern void s3c2410_init_uarts(struct s3c2410_uartcfg *cfg, int no); 23extern void s3c2410_init_uarts(struct s3c2410_uartcfg *cfg, int no);
24extern void s3c2410_init_clocks(int xtal); 24extern void s3c2410_init_clocks(int xtal);
25extern void s3c2410_restart(enum reboot_mode mode, const char *cmd);
26extern void s3c2410_init_irq(void); 25extern void s3c2410_init_irq(void);
27#else 26#else
28#define s3c2410_init_clocks NULL 27#define s3c2410_init_clocks NULL
@@ -38,7 +37,6 @@ extern void s3c2412_map_io(void);
38extern void s3c2412_init_uarts(struct s3c2410_uartcfg *cfg, int no); 37extern void s3c2412_init_uarts(struct s3c2410_uartcfg *cfg, int no);
39extern void s3c2412_init_clocks(int xtal); 38extern void s3c2412_init_clocks(int xtal);
40extern int s3c2412_baseclk_add(void); 39extern int s3c2412_baseclk_add(void);
41extern void s3c2412_restart(enum reboot_mode mode, const char *cmd);
42extern void s3c2412_init_irq(void); 40extern void s3c2412_init_irq(void);
43#else 41#else
44#define s3c2412_init_clocks NULL 42#define s3c2412_init_clocks NULL
@@ -53,7 +51,6 @@ extern void s3c2416_map_io(void);
53extern void s3c2416_init_uarts(struct s3c2410_uartcfg *cfg, int no); 51extern void s3c2416_init_uarts(struct s3c2410_uartcfg *cfg, int no);
54extern void s3c2416_init_clocks(int xtal); 52extern void s3c2416_init_clocks(int xtal);
55extern int s3c2416_baseclk_add(void); 53extern int s3c2416_baseclk_add(void);
56extern void s3c2416_restart(enum reboot_mode mode, const char *cmd);
57extern void s3c2416_init_irq(void); 54extern void s3c2416_init_irq(void);
58 55
59extern struct syscore_ops s3c2416_irq_syscore_ops; 56extern struct syscore_ops s3c2416_irq_syscore_ops;
@@ -67,7 +64,6 @@ extern struct syscore_ops s3c2416_irq_syscore_ops;
67#if defined(CONFIG_CPU_S3C2440) || defined(CONFIG_CPU_S3C2442) 64#if defined(CONFIG_CPU_S3C2440) || defined(CONFIG_CPU_S3C2442)
68extern void s3c244x_map_io(void); 65extern void s3c244x_map_io(void);
69extern void s3c244x_init_uarts(struct s3c2410_uartcfg *cfg, int no); 66extern void s3c244x_init_uarts(struct s3c2410_uartcfg *cfg, int no);
70extern void s3c244x_restart(enum reboot_mode mode, const char *cmd);
71#else 67#else
72#define s3c244x_init_uarts NULL 68#define s3c244x_init_uarts NULL
73#endif 69#endif
@@ -98,7 +94,6 @@ extern void s3c2443_map_io(void);
98extern void s3c2443_init_uarts(struct s3c2410_uartcfg *cfg, int no); 94extern void s3c2443_init_uarts(struct s3c2410_uartcfg *cfg, int no);
99extern void s3c2443_init_clocks(int xtal); 95extern void s3c2443_init_clocks(int xtal);
100extern int s3c2443_baseclk_add(void); 96extern int s3c2443_baseclk_add(void);
101extern void s3c2443_restart(enum reboot_mode mode, const char *cmd);
102extern void s3c2443_init_irq(void); 97extern void s3c2443_init_irq(void);
103#else 98#else
104#define s3c2443_init_clocks NULL 99#define s3c2443_init_clocks NULL
diff --git a/arch/arm/mach-s3c24xx/include/mach/regs-s3c2443-clock.h b/arch/arm/mach-s3c24xx/include/mach/regs-s3c2443-clock.h
index c3feff3c0488..ffe37bdb9f59 100644
--- a/arch/arm/mach-s3c24xx/include/mach/regs-s3c2443-clock.h
+++ b/arch/arm/mach-s3c24xx/include/mach/regs-s3c2443-clock.h
@@ -42,8 +42,6 @@
42#define S3C2443_URSTCON S3C2443_CLKREG(0x88) 42#define S3C2443_URSTCON S3C2443_CLKREG(0x88)
43#define S3C2443_UCLKCON S3C2443_CLKREG(0x8C) 43#define S3C2443_UCLKCON S3C2443_CLKREG(0x8C)
44 44
45#define S3C2443_SWRST_RESET (0x533c2443)
46
47#define S3C2443_PLLCON_OFF (1<<24) 45#define S3C2443_PLLCON_OFF (1<<24)
48 46
49#define S3C2443_CLKSRC_EPLLREF_XTAL (2<<7) 47#define S3C2443_CLKSRC_EPLLREF_XTAL (2<<7)
diff --git a/arch/arm/mach-s3c24xx/mach-amlm5900.c b/arch/arm/mach-s3c24xx/mach-amlm5900.c
index 5157e250dd13..3e63777a109f 100644
--- a/arch/arm/mach-s3c24xx/mach-amlm5900.c
+++ b/arch/arm/mach-s3c24xx/mach-amlm5900.c
@@ -247,5 +247,4 @@ MACHINE_START(AML_M5900, "AML_M5900")
247 .init_irq = s3c2410_init_irq, 247 .init_irq = s3c2410_init_irq,
248 .init_machine = amlm5900_init, 248 .init_machine = amlm5900_init,
249 .init_time = amlm5900_init_time, 249 .init_time = amlm5900_init_time,
250 .restart = s3c2410_restart,
251MACHINE_END 250MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/mach-anubis.c b/arch/arm/mach-s3c24xx/mach-anubis.c
index e053581cab0b..d03df0df01fa 100644
--- a/arch/arm/mach-s3c24xx/mach-anubis.c
+++ b/arch/arm/mach-s3c24xx/mach-anubis.c
@@ -430,5 +430,4 @@ MACHINE_START(ANUBIS, "Simtec-Anubis")
430 .init_machine = anubis_init, 430 .init_machine = anubis_init,
431 .init_irq = s3c2440_init_irq, 431 .init_irq = s3c2440_init_irq,
432 .init_time = anubis_init_time, 432 .init_time = anubis_init_time,
433 .restart = s3c244x_restart,
434MACHINE_END 433MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/mach-at2440evb.c b/arch/arm/mach-s3c24xx/mach-at2440evb.c
index 9db768f448a5..9ae170fef2a7 100644
--- a/arch/arm/mach-s3c24xx/mach-at2440evb.c
+++ b/arch/arm/mach-s3c24xx/mach-at2440evb.c
@@ -218,5 +218,4 @@ MACHINE_START(AT2440EVB, "AT2440EVB")
218 .init_machine = at2440evb_init, 218 .init_machine = at2440evb_init,
219 .init_irq = s3c2440_init_irq, 219 .init_irq = s3c2440_init_irq,
220 .init_time = at2440evb_init_time, 220 .init_time = at2440evb_init_time,
221 .restart = s3c244x_restart,
222MACHINE_END 221MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/mach-bast.c b/arch/arm/mach-s3c24xx/mach-bast.c
index f9112b801a33..ed07cf392d4b 100644
--- a/arch/arm/mach-s3c24xx/mach-bast.c
+++ b/arch/arm/mach-s3c24xx/mach-bast.c
@@ -591,5 +591,4 @@ MACHINE_START(BAST, "Simtec-BAST")
591 .init_irq = s3c2410_init_irq, 591 .init_irq = s3c2410_init_irq,
592 .init_machine = bast_init, 592 .init_machine = bast_init,
593 .init_time = bast_init_time, 593 .init_time = bast_init_time,
594 .restart = s3c2410_restart,
595MACHINE_END 594MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/mach-gta02.c b/arch/arm/mach-s3c24xx/mach-gta02.c
index fc3a08d0cb3f..6d1e0b9c5b27 100644
--- a/arch/arm/mach-s3c24xx/mach-gta02.c
+++ b/arch/arm/mach-s3c24xx/mach-gta02.c
@@ -597,5 +597,4 @@ MACHINE_START(NEO1973_GTA02, "GTA02")
597 .init_irq = s3c2442_init_irq, 597 .init_irq = s3c2442_init_irq,
598 .init_machine = gta02_machine_init, 598 .init_machine = gta02_machine_init,
599 .init_time = gta02_init_time, 599 .init_time = gta02_init_time,
600 .restart = s3c244x_restart,
601MACHINE_END 600MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/mach-h1940.c b/arch/arm/mach-s3c24xx/mach-h1940.c
index c9a99bbad545..d35ddc1d9991 100644
--- a/arch/arm/mach-s3c24xx/mach-h1940.c
+++ b/arch/arm/mach-s3c24xx/mach-h1940.c
@@ -747,5 +747,4 @@ MACHINE_START(H1940, "IPAQ-H1940")
747 .init_irq = s3c2410_init_irq, 747 .init_irq = s3c2410_init_irq,
748 .init_machine = h1940_init, 748 .init_machine = h1940_init,
749 .init_time = h1940_init_time, 749 .init_time = h1940_init_time,
750 .restart = s3c2410_restart,
751MACHINE_END 750MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/mach-jive.c b/arch/arm/mach-s3c24xx/mach-jive.c
index 7804d3c6991b..7d99fe8f6157 100644
--- a/arch/arm/mach-s3c24xx/mach-jive.c
+++ b/arch/arm/mach-s3c24xx/mach-jive.c
@@ -670,5 +670,4 @@ MACHINE_START(JIVE, "JIVE")
670 .map_io = jive_map_io, 670 .map_io = jive_map_io,
671 .init_machine = jive_machine_init, 671 .init_machine = jive_machine_init,
672 .init_time = jive_init_time, 672 .init_time = jive_init_time,
673 .restart = s3c2412_restart,
674MACHINE_END 673MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/mach-mini2440.c b/arch/arm/mach-s3c24xx/mach-mini2440.c
index 5cc40ec1d254..a8521684a7f5 100644
--- a/arch/arm/mach-s3c24xx/mach-mini2440.c
+++ b/arch/arm/mach-s3c24xx/mach-mini2440.c
@@ -695,5 +695,4 @@ MACHINE_START(MINI2440, "MINI2440")
695 .init_machine = mini2440_init, 695 .init_machine = mini2440_init,
696 .init_irq = s3c2440_init_irq, 696 .init_irq = s3c2440_init_irq,
697 .init_time = mini2440_init_time, 697 .init_time = mini2440_init_time,
698 .restart = s3c244x_restart,
699MACHINE_END 698MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/mach-n30.c b/arch/arm/mach-s3c24xx/mach-n30.c
index 3ac2a54348d6..171c1f11fd22 100644
--- a/arch/arm/mach-s3c24xx/mach-n30.c
+++ b/arch/arm/mach-s3c24xx/mach-n30.c
@@ -599,7 +599,6 @@ MACHINE_START(N30, "Acer-N30")
599 .init_machine = n30_init, 599 .init_machine = n30_init,
600 .init_irq = s3c2410_init_irq, 600 .init_irq = s3c2410_init_irq,
601 .map_io = n30_map_io, 601 .map_io = n30_map_io,
602 .restart = s3c2410_restart,
603MACHINE_END 602MACHINE_END
604 603
605MACHINE_START(N35, "Acer-N35") 604MACHINE_START(N35, "Acer-N35")
@@ -610,5 +609,4 @@ MACHINE_START(N35, "Acer-N35")
610 .init_machine = n30_init, 609 .init_machine = n30_init,
611 .init_irq = s3c2410_init_irq, 610 .init_irq = s3c2410_init_irq,
612 .map_io = n30_map_io, 611 .map_io = n30_map_io,
613 .restart = s3c2410_restart,
614MACHINE_END 612MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/mach-nexcoder.c b/arch/arm/mach-s3c24xx/mach-nexcoder.c
index c82c281ce351..2a61d13dcd6c 100644
--- a/arch/arm/mach-s3c24xx/mach-nexcoder.c
+++ b/arch/arm/mach-s3c24xx/mach-nexcoder.c
@@ -159,5 +159,4 @@ MACHINE_START(NEXCODER_2440, "NexVision - Nexcoder 2440")
159 .init_machine = nexcoder_init, 159 .init_machine = nexcoder_init,
160 .init_irq = s3c2440_init_irq, 160 .init_irq = s3c2440_init_irq,
161 .init_time = nexcoder_init_time, 161 .init_time = nexcoder_init_time,
162 .restart = s3c244x_restart,
163MACHINE_END 162MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/mach-osiris.c b/arch/arm/mach-s3c24xx/mach-osiris.c
index 189147b80eca..2f6fdc326835 100644
--- a/arch/arm/mach-s3c24xx/mach-osiris.c
+++ b/arch/arm/mach-s3c24xx/mach-osiris.c
@@ -412,5 +412,4 @@ MACHINE_START(OSIRIS, "Simtec-OSIRIS")
412 .init_irq = s3c2440_init_irq, 412 .init_irq = s3c2440_init_irq,
413 .init_machine = osiris_init, 413 .init_machine = osiris_init,
414 .init_time = osiris_init_time, 414 .init_time = osiris_init_time,
415 .restart = s3c244x_restart,
416MACHINE_END 415MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/mach-otom.c b/arch/arm/mach-s3c24xx/mach-otom.c
index 45833001186d..345a484b93cc 100644
--- a/arch/arm/mach-s3c24xx/mach-otom.c
+++ b/arch/arm/mach-s3c24xx/mach-otom.c
@@ -122,5 +122,4 @@ MACHINE_START(OTOM, "Nex Vision - Otom 1.1")
122 .init_machine = otom11_init, 122 .init_machine = otom11_init,
123 .init_irq = s3c2410_init_irq, 123 .init_irq = s3c2410_init_irq,
124 .init_time = otom11_init_time, 124 .init_time = otom11_init_time,
125 .restart = s3c2410_restart,
126MACHINE_END 125MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/mach-qt2410.c b/arch/arm/mach-s3c24xx/mach-qt2410.c
index 228c9094519d..984516e8307a 100644
--- a/arch/arm/mach-s3c24xx/mach-qt2410.c
+++ b/arch/arm/mach-s3c24xx/mach-qt2410.c
@@ -352,5 +352,4 @@ MACHINE_START(QT2410, "QT2410")
352 .init_irq = s3c2410_init_irq, 352 .init_irq = s3c2410_init_irq,
353 .init_machine = qt2410_machine_init, 353 .init_machine = qt2410_machine_init,
354 .init_time = qt2410_init_time, 354 .init_time = qt2410_init_time,
355 .restart = s3c2410_restart,
356MACHINE_END 355MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/mach-rx1950.c b/arch/arm/mach-s3c24xx/mach-rx1950.c
index e2c6541909c1..c3f2682d0c62 100644
--- a/arch/arm/mach-s3c24xx/mach-rx1950.c
+++ b/arch/arm/mach-s3c24xx/mach-rx1950.c
@@ -812,5 +812,4 @@ MACHINE_START(RX1950, "HP iPAQ RX1950")
812 .init_irq = s3c2442_init_irq, 812 .init_irq = s3c2442_init_irq,
813 .init_machine = rx1950_init_machine, 813 .init_machine = rx1950_init_machine,
814 .init_time = rx1950_init_time, 814 .init_time = rx1950_init_time,
815 .restart = s3c244x_restart,
816MACHINE_END 815MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/mach-rx3715.c b/arch/arm/mach-s3c24xx/mach-rx3715.c
index 6e749ec3a2ea..cf55196f89ca 100644
--- a/arch/arm/mach-s3c24xx/mach-rx3715.c
+++ b/arch/arm/mach-s3c24xx/mach-rx3715.c
@@ -215,5 +215,4 @@ MACHINE_START(RX3715, "IPAQ-RX3715")
215 .init_irq = s3c2440_init_irq, 215 .init_irq = s3c2440_init_irq,
216 .init_machine = rx3715_init_machine, 216 .init_machine = rx3715_init_machine,
217 .init_time = rx3715_init_time, 217 .init_time = rx3715_init_time,
218 .restart = s3c244x_restart,
219MACHINE_END 218MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/mach-s3c2416-dt.c b/arch/arm/mach-s3c24xx/mach-s3c2416-dt.c
index e4dcb9aa2ca2..f886478b88c5 100644
--- a/arch/arm/mach-s3c24xx/mach-s3c2416-dt.c
+++ b/arch/arm/mach-s3c24xx/mach-s3c2416-dt.c
@@ -51,5 +51,4 @@ DT_MACHINE_START(S3C2416_DT, "Samsung S3C2416 (Flattened Device Tree)")
51 .map_io = s3c2416_dt_map_io, 51 .map_io = s3c2416_dt_map_io,
52 .init_irq = irqchip_init, 52 .init_irq = irqchip_init,
53 .init_machine = s3c2416_dt_machine_init, 53 .init_machine = s3c2416_dt_machine_init,
54 .restart = s3c2416_restart,
55MACHINE_END 54MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/mach-smdk2410.c b/arch/arm/mach-s3c24xx/mach-smdk2410.c
index 419fadd6e446..27dd6605e395 100644
--- a/arch/arm/mach-s3c24xx/mach-smdk2410.c
+++ b/arch/arm/mach-s3c24xx/mach-smdk2410.c
@@ -124,5 +124,4 @@ MACHINE_START(SMDK2410, "SMDK2410") /* @TODO: request a new identifier and switc
124 .init_irq = s3c2410_init_irq, 124 .init_irq = s3c2410_init_irq,
125 .init_machine = smdk2410_init, 125 .init_machine = smdk2410_init,
126 .init_time = smdk2410_init_time, 126 .init_time = smdk2410_init_time,
127 .restart = s3c2410_restart,
128MACHINE_END 127MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/mach-smdk2413.c b/arch/arm/mach-s3c24xx/mach-smdk2413.c
index 10726bf84920..586e4a3b8d5d 100644
--- a/arch/arm/mach-s3c24xx/mach-smdk2413.c
+++ b/arch/arm/mach-s3c24xx/mach-smdk2413.c
@@ -138,7 +138,6 @@ MACHINE_START(S3C2413, "S3C2413")
138 .map_io = smdk2413_map_io, 138 .map_io = smdk2413_map_io,
139 .init_machine = smdk2413_machine_init, 139 .init_machine = smdk2413_machine_init,
140 .init_time = samsung_timer_init, 140 .init_time = samsung_timer_init,
141 .restart = s3c2412_restart,
142MACHINE_END 141MACHINE_END
143 142
144MACHINE_START(SMDK2412, "SMDK2412") 143MACHINE_START(SMDK2412, "SMDK2412")
@@ -150,7 +149,6 @@ MACHINE_START(SMDK2412, "SMDK2412")
150 .map_io = smdk2413_map_io, 149 .map_io = smdk2413_map_io,
151 .init_machine = smdk2413_machine_init, 150 .init_machine = smdk2413_machine_init,
152 .init_time = samsung_timer_init, 151 .init_time = samsung_timer_init,
153 .restart = s3c2412_restart,
154MACHINE_END 152MACHINE_END
155 153
156MACHINE_START(SMDK2413, "SMDK2413") 154MACHINE_START(SMDK2413, "SMDK2413")
@@ -162,5 +160,4 @@ MACHINE_START(SMDK2413, "SMDK2413")
162 .map_io = smdk2413_map_io, 160 .map_io = smdk2413_map_io,
163 .init_machine = smdk2413_machine_init, 161 .init_machine = smdk2413_machine_init,
164 .init_time = smdk2413_init_time, 162 .init_time = smdk2413_init_time,
165 .restart = s3c2412_restart,
166MACHINE_END 163MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/mach-smdk2416.c b/arch/arm/mach-s3c24xx/mach-smdk2416.c
index 24189e8e8560..86394f72d29e 100644
--- a/arch/arm/mach-s3c24xx/mach-smdk2416.c
+++ b/arch/arm/mach-s3c24xx/mach-smdk2416.c
@@ -262,5 +262,4 @@ MACHINE_START(SMDK2416, "SMDK2416")
262 .map_io = smdk2416_map_io, 262 .map_io = smdk2416_map_io,
263 .init_machine = smdk2416_machine_init, 263 .init_machine = smdk2416_machine_init,
264 .init_time = smdk2416_init_time, 264 .init_time = smdk2416_init_time,
265 .restart = s3c2416_restart,
266MACHINE_END 265MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/mach-smdk2440.c b/arch/arm/mach-s3c24xx/mach-smdk2440.c
index 5fb89c0ae17a..9bb96bfbb420 100644
--- a/arch/arm/mach-s3c24xx/mach-smdk2440.c
+++ b/arch/arm/mach-s3c24xx/mach-smdk2440.c
@@ -185,5 +185,4 @@ MACHINE_START(S3C2440, "SMDK2440")
185 .map_io = smdk2440_map_io, 185 .map_io = smdk2440_map_io,
186 .init_machine = smdk2440_machine_init, 186 .init_machine = smdk2440_machine_init,
187 .init_time = smdk2440_init_time, 187 .init_time = smdk2440_init_time,
188 .restart = s3c244x_restart,
189MACHINE_END 188MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/mach-smdk2443.c b/arch/arm/mach-s3c24xx/mach-smdk2443.c
index 0ed77614dcfe..87fe5c5b8073 100644
--- a/arch/arm/mach-s3c24xx/mach-smdk2443.c
+++ b/arch/arm/mach-s3c24xx/mach-smdk2443.c
@@ -150,5 +150,4 @@ MACHINE_START(SMDK2443, "SMDK2443")
150 .map_io = smdk2443_map_io, 150 .map_io = smdk2443_map_io,
151 .init_machine = smdk2443_machine_init, 151 .init_machine = smdk2443_machine_init,
152 .init_time = smdk2443_init_time, 152 .init_time = smdk2443_init_time,
153 .restart = s3c2443_restart,
154MACHINE_END 153MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/mach-tct_hammer.c b/arch/arm/mach-s3c24xx/mach-tct_hammer.c
index c616ca2d409e..2deb62f92fb2 100644
--- a/arch/arm/mach-s3c24xx/mach-tct_hammer.c
+++ b/arch/arm/mach-s3c24xx/mach-tct_hammer.c
@@ -157,5 +157,4 @@ MACHINE_START(TCT_HAMMER, "TCT_HAMMER")
157 .init_irq = s3c2410_init_irq, 157 .init_irq = s3c2410_init_irq,
158 .init_machine = tct_hammer_init, 158 .init_machine = tct_hammer_init,
159 .init_time = tct_hammer_init_time, 159 .init_time = tct_hammer_init_time,
160 .restart = s3c2410_restart,
161MACHINE_END 160MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/mach-vr1000.c b/arch/arm/mach-s3c24xx/mach-vr1000.c
index f88c584c3001..89f32bd3f01b 100644
--- a/arch/arm/mach-s3c24xx/mach-vr1000.c
+++ b/arch/arm/mach-s3c24xx/mach-vr1000.c
@@ -340,5 +340,4 @@ MACHINE_START(VR1000, "Thorcom-VR1000")
340 .init_machine = vr1000_init, 340 .init_machine = vr1000_init,
341 .init_irq = s3c2410_init_irq, 341 .init_irq = s3c2410_init_irq,
342 .init_time = vr1000_init_time, 342 .init_time = vr1000_init_time,
343 .restart = s3c2410_restart,
344MACHINE_END 343MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/mach-vstms.c b/arch/arm/mach-s3c24xx/mach-vstms.c
index 9d4f64750698..b4460d5f7011 100644
--- a/arch/arm/mach-s3c24xx/mach-vstms.c
+++ b/arch/arm/mach-s3c24xx/mach-vstms.c
@@ -165,5 +165,4 @@ MACHINE_START(VSTMS, "VSTMS")
165 .init_machine = vstms_init, 165 .init_machine = vstms_init,
166 .map_io = vstms_map_io, 166 .map_io = vstms_map_io,
167 .init_time = vstms_init_time, 167 .init_time = vstms_init_time,
168 .restart = s3c2412_restart,
169MACHINE_END 168MACHINE_END
diff --git a/arch/arm/mach-s3c24xx/s3c2410.c b/arch/arm/mach-s3c24xx/s3c2410.c
index 5ffe828cd659..2a6985a4a0ff 100644
--- a/arch/arm/mach-s3c24xx/s3c2410.c
+++ b/arch/arm/mach-s3c24xx/s3c2410.c
@@ -42,7 +42,6 @@
42#include <plat/cpu.h> 42#include <plat/cpu.h>
43#include <plat/devs.h> 43#include <plat/devs.h>
44#include <plat/pm.h> 44#include <plat/pm.h>
45#include <plat/watchdog-reset.h>
46 45
47#include <plat/gpio-core.h> 46#include <plat/gpio-core.h>
48#include <plat/gpio-cfg.h> 47#include <plat/gpio-cfg.h>
@@ -135,15 +134,3 @@ int __init s3c2410a_init(void)
135 s3c2410_dev.bus = &s3c2410a_subsys; 134 s3c2410_dev.bus = &s3c2410a_subsys;
136 return s3c2410_init(); 135 return s3c2410_init();
137} 136}
138
139void s3c2410_restart(enum reboot_mode mode, const char *cmd)
140{
141 if (mode == REBOOT_SOFT) {
142 soft_restart(0);
143 }
144
145 samsung_wdt_reset();
146
147 /* we'll take a jump through zero as a poor second */
148 soft_restart(0);
149}
diff --git a/arch/arm/mach-s3c24xx/s3c2412.c b/arch/arm/mach-s3c24xx/s3c2412.c
index 569f3f5a6c71..ecf2c77ab88b 100644
--- a/arch/arm/mach-s3c24xx/s3c2412.c
+++ b/arch/arm/mach-s3c24xx/s3c2412.c
@@ -48,9 +48,6 @@
48#include "regs-dsc.h" 48#include "regs-dsc.h"
49#include "s3c2412-power.h" 49#include "s3c2412-power.h"
50 50
51#define S3C2412_SWRST (S3C24XX_VA_CLKPWR + 0x30)
52#define S3C2412_SWRST_RESET (0x533C2412)
53
54#ifndef CONFIG_CPU_S3C2412_ONLY 51#ifndef CONFIG_CPU_S3C2412_ONLY
55void __iomem *s3c24xx_va_gpio2 = S3C24XX_VA_GPIO; 52void __iomem *s3c24xx_va_gpio2 = S3C24XX_VA_GPIO;
56 53
@@ -128,26 +125,6 @@ static void s3c2412_idle(void)
128 cpu_do_idle(); 125 cpu_do_idle();
129} 126}
130 127
131void s3c2412_restart(enum reboot_mode mode, const char *cmd)
132{
133 if (mode == REBOOT_SOFT)
134 soft_restart(0);
135
136 /* errata "Watch-dog/Software Reset Problem" specifies that
137 * this reset must be done with the SYSCLK sourced from
138 * EXTCLK instead of FOUT to avoid a glitch in the reset
139 * mechanism.
140 *
141 * See the watchdog section of the S3C2412 manual for more
142 * information on this fix.
143 */
144
145 __raw_writel(0x00, S3C2412_CLKSRC);
146 __raw_writel(S3C2412_SWRST_RESET, S3C2412_SWRST);
147
148 mdelay(1);
149}
150
151/* s3c2412_map_io 128/* s3c2412_map_io
152 * 129 *
153 * register the standard cpu IO areas, and any passed in from the 130 * register the standard cpu IO areas, and any passed in from the
diff --git a/arch/arm/mach-s3c24xx/s3c2416.c b/arch/arm/mach-s3c24xx/s3c2416.c
index 9fe260ae11e1..bfd4da86deb8 100644
--- a/arch/arm/mach-s3c24xx/s3c2416.c
+++ b/arch/arm/mach-s3c24xx/s3c2416.c
@@ -81,14 +81,6 @@ static struct device s3c2416_dev = {
81 .bus = &s3c2416_subsys, 81 .bus = &s3c2416_subsys,
82}; 82};
83 83
84void s3c2416_restart(enum reboot_mode mode, const char *cmd)
85{
86 if (mode == REBOOT_SOFT)
87 soft_restart(0);
88
89 __raw_writel(S3C2443_SWRST_RESET, S3C2443_SWRST);
90}
91
92int __init s3c2416_init(void) 84int __init s3c2416_init(void)
93{ 85{
94 printk(KERN_INFO "S3C2416: Initializing architecture\n"); 86 printk(KERN_INFO "S3C2416: Initializing architecture\n");
diff --git a/arch/arm/mach-s3c24xx/s3c2443.c b/arch/arm/mach-s3c24xx/s3c2443.c
index c7a804d0348e..87b6b89d8ee7 100644
--- a/arch/arm/mach-s3c24xx/s3c2443.c
+++ b/arch/arm/mach-s3c24xx/s3c2443.c
@@ -61,14 +61,6 @@ static struct device s3c2443_dev = {
61 .bus = &s3c2443_subsys, 61 .bus = &s3c2443_subsys,
62}; 62};
63 63
64void s3c2443_restart(enum reboot_mode mode, const char *cmd)
65{
66 if (mode == REBOOT_SOFT)
67 soft_restart(0);
68
69 __raw_writel(S3C2443_SWRST_RESET, S3C2443_SWRST);
70}
71
72int __init s3c2443_init(void) 64int __init s3c2443_init(void)
73{ 65{
74 printk("S3C2443: Initialising architecture\n"); 66 printk("S3C2443: Initialising architecture\n");
diff --git a/arch/arm/mach-s3c24xx/s3c244x.c b/arch/arm/mach-s3c24xx/s3c244x.c
index d1c3e65785a1..177f97802745 100644
--- a/arch/arm/mach-s3c24xx/s3c244x.c
+++ b/arch/arm/mach-s3c24xx/s3c244x.c
@@ -42,7 +42,6 @@
42#include <plat/cpu.h> 42#include <plat/cpu.h>
43#include <plat/pm.h> 43#include <plat/pm.h>
44#include <plat/nand-core.h> 44#include <plat/nand-core.h>
45#include <plat/watchdog-reset.h>
46 45
47#include "common.h" 46#include "common.h"
48#include "regs-dsc.h" 47#include "regs-dsc.h"
@@ -137,14 +136,3 @@ struct syscore_ops s3c244x_pm_syscore_ops = {
137 .suspend = s3c244x_suspend, 136 .suspend = s3c244x_suspend,
138 .resume = s3c244x_resume, 137 .resume = s3c244x_resume,
139}; 138};
140
141void s3c244x_restart(enum reboot_mode mode, const char *cmd)
142{
143 if (mode == REBOOT_SOFT)
144 soft_restart(0);
145
146 samsung_wdt_reset();
147
148 /* we'll take a jump through zero as a poor second */
149 soft_restart(0);
150}