From 00aa78eea20645a751db45ae4a46dae15a4576cf Mon Sep 17 00:00:00 2001 From: Russell King Date: Sun, 6 Nov 2011 10:49:50 +0000 Subject: ARM: restart: iop13xx: use new restart hook Hook these platforms restart code into the new restart hook rather than using arch_reset(). Acked-by: Lennert Buytenhek Signed-off-by: Russell King --- arch/arm/mach-iop13xx/setup.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'arch/arm/mach-iop13xx/setup.c') diff --git a/arch/arm/mach-iop13xx/setup.c b/arch/arm/mach-iop13xx/setup.c index a5b9897..daabb1f 100644 --- a/arch/arm/mach-iop13xx/setup.c +++ b/arch/arm/mach-iop13xx/setup.c @@ -606,3 +606,14 @@ static int __init iop13xx_init_adma_setup(char *str) __setup("iop13xx_init_adma", iop13xx_init_adma_setup); __setup("iop13xx_init_uart", iop13xx_init_uart_setup); __setup("iop13xx_init_i2c", iop13xx_init_i2c_setup); + +void iop13xx_restart(char mode, const char *cmd) +{ + /* + * Reset the internal bus (warning both cores are reset) + */ + write_wdtcr(IOP_WDTCR_EN_ARM); + write_wdtcr(IOP_WDTCR_EN); + write_wdtsr(IOP13XX_WDTSR_WRITE_EN | IOP13XX_WDTCR_IB_RESET); + write_wdtcr(0x1000); +} -- cgit v1.1