aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-samsung
diff options
context:
space:
mode:
authorTomasz Figa <tomasz.figa@gmail.com>2013-06-17 10:45:40 -0400
committerKukjin Kim <kgene.kim@samsung.com>2013-06-18 14:13:17 -0400
commit56bc7a1949d3c088b2eebcf03d42d299e4bc5b64 (patch)
tree4b26de37419ef64a54da0e3f58953811f67b6990 /arch/arm/plat-samsung
parent88f597383824c7a67b3120a3584afca85b91e7bb (diff)
ARM: SAMSUNG: Remove legacy watchdog reset code
Since all platforms have been moved to the new watchdog reset driver, the legacy code can be removed safely. Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com> Tested-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-samsung')
-rw-r--r--arch/arm/plat-samsung/include/plat/watchdog-reset.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/arch/arm/plat-samsung/include/plat/watchdog-reset.h b/arch/arm/plat-samsung/include/plat/watchdog-reset.h
index 31a05720a005..0386b8f76623 100644
--- a/arch/arm/plat-samsung/include/plat/watchdog-reset.h
+++ b/arch/arm/plat-samsung/include/plat/watchdog-reset.h
@@ -13,41 +13,6 @@
13#ifndef __PLAT_SAMSUNG_WATCHDOG_RESET_H 13#ifndef __PLAT_SAMSUNG_WATCHDOG_RESET_H
14#define __PLAT_SAMSUNG_WATCHDOG_RESET_H 14#define __PLAT_SAMSUNG_WATCHDOG_RESET_H
15 15
16#include <plat/clock.h>
17#include <plat/regs-watchdog.h>
18#include <mach/map.h>
19
20#include <linux/clk.h>
21#include <linux/err.h>
22#include <linux/io.h>
23#include <linux/delay.h>
24
25static inline void arch_wdt_reset(void)
26{
27 printk("arch_reset: attempting watchdog reset\n");
28
29 __raw_writel(0, S3C2410_WTCON); /* disable watchdog, to be safe */
30
31 if (!IS_ERR(s3c2410_wdtclk))
32 clk_enable(s3c2410_wdtclk);
33
34 /* put initial values into count and data */
35 __raw_writel(0x80, S3C2410_WTCNT);
36 __raw_writel(0x80, S3C2410_WTDAT);
37
38 /* set the watchdog to go and reset... */
39 __raw_writel(S3C2410_WTCON_ENABLE|S3C2410_WTCON_DIV16|S3C2410_WTCON_RSTEN |
40 S3C2410_WTCON_PRESCALE(0x20), S3C2410_WTCON);
41
42 /* wait for reset to assert... */
43 mdelay(500);
44
45 printk(KERN_ERR "Watchdog reset failed to assert reset\n");
46
47 /* delay to allow the serial port to show the message */
48 mdelay(50);
49}
50
51extern void samsung_wdt_reset(void); 16extern void samsung_wdt_reset(void);
52extern void samsung_wdt_reset_of_init(void); 17extern void samsung_wdt_reset_of_init(void);
53extern void samsung_wdt_reset_init(void __iomem *base); 18extern void samsung_wdt_reset_init(void __iomem *base);