mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
ARM: 7251/1: restart: S5PC100: use new restart hook
Hook these platforms restart code into the new restart hook rather than using arch_reset(). Cc: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
73aed8b949
commit
5497d2e1d6
3 changed files with 12 additions and 0 deletions
|
|
@ -45,6 +45,7 @@
|
||||||
#include <plat/iic-core.h>
|
#include <plat/iic-core.h>
|
||||||
#include <plat/onenand-core.h>
|
#include <plat/onenand-core.h>
|
||||||
#include <plat/regs-serial.h>
|
#include <plat/regs-serial.h>
|
||||||
|
#include <plat/watchdog-reset.h>
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
|
|
@ -221,3 +222,11 @@ void __init s5pc100_init_uarts(struct s3c2410_uartcfg *cfg, int no)
|
||||||
{
|
{
|
||||||
s3c24xx_init_uartdevs("s3c6400-uart", s5p_uart_resources, cfg, no);
|
s3c24xx_init_uartdevs("s3c6400-uart", s5p_uart_resources, cfg, no);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void s5pc100_restart(char mode, const char *cmd)
|
||||||
|
{
|
||||||
|
if (mode != 's')
|
||||||
|
arch_wdt_reset();
|
||||||
|
|
||||||
|
soft_restart(0);
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,8 @@ void s5pc100_init_irq(void);
|
||||||
void s5pc100_register_clocks(void);
|
void s5pc100_register_clocks(void);
|
||||||
void s5pc100_setup_clocks(void);
|
void s5pc100_setup_clocks(void);
|
||||||
|
|
||||||
|
void s5pc100_restart(char mode, const char *cmd);
|
||||||
|
|
||||||
#ifdef CONFIG_CPU_S5PC100
|
#ifdef CONFIG_CPU_S5PC100
|
||||||
|
|
||||||
extern int s5pc100_init(void);
|
extern int s5pc100_init(void);
|
||||||
|
|
|
||||||
|
|
@ -254,4 +254,5 @@ MACHINE_START(SMDKC100, "SMDKC100")
|
||||||
.map_io = smdkc100_map_io,
|
.map_io = smdkc100_map_io,
|
||||||
.init_machine = smdkc100_machine_init,
|
.init_machine = smdkc100_machine_init,
|
||||||
.timer = &s3c24xx_timer,
|
.timer = &s3c24xx_timer,
|
||||||
|
.restart = s5pc100_restart,
|
||||||
MACHINE_END
|
MACHINE_END
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue