ARM: restart: orion5x: use new restart hook
Hook these platforms restart code into the new restart hook rather than using arch_reset(). In addition, convert calls to arm_machine_restart() to orion5x_restart() to ensure that they continue to work as intended. Acked-by: Nicolas Pitre <nico@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include <linux/mbus.h>
|
||||
#include <linux/mv643xx_i2c.h>
|
||||
#include <linux/ata_platform.h>
|
||||
#include <linux/delay.h>
|
||||
#include <net/dsa.h>
|
||||
#include <asm/page.h>
|
||||
#include <asm/setup.h>
|
||||
@@ -304,6 +305,17 @@ void __init orion5x_init(void)
|
||||
orion5x_wdt_init();
|
||||
}
|
||||
|
||||
void orion5x_restart(char mode, const char *cmd)
|
||||
{
|
||||
/*
|
||||
* Enable and issue soft reset
|
||||
*/
|
||||
orion5x_setbits(RSTOUTn_MASK, (1 << 2));
|
||||
orion5x_setbits(CPU_SOFT_RESET, 1);
|
||||
mdelay(200);
|
||||
orion5x_clrbits(CPU_SOFT_RESET, 1);
|
||||
}
|
||||
|
||||
/*
|
||||
* Many orion-based systems have buggy bootloader implementations.
|
||||
* This is a common fixup for bogus memory tags.
|
||||
|
Reference in New Issue
Block a user