diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-11-05 11:35:32 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-05 12:57:14 +0000 |
commit | b219415c39053dbe70e88c361b5e943acd74546c (patch) | |
tree | 9c9750361f7f556feb176f655fa24bb692d7280a /arch/arm/mach-ixp23xx/core.c | |
parent | 1139b926c4b1754276fc5e2556cc9c0f46b010c6 (diff) | |
download | op-kernel-dev-b219415c39053dbe70e88c361b5e943acd74546c.zip op-kernel-dev-b219415c39053dbe70e88c361b5e943acd74546c.tar.gz |
ARM: restart: ixp23xx: use new restart hook
Hook these platforms restart code into the new restart hook rather
than using arch_reset().
In doing so, we split out the ixdp2351 restart code into its own
platform file.
Acked-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-ixp23xx/core.c')
-rw-r--r-- | arch/arm/mach-ixp23xx/core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-ixp23xx/core.c b/arch/arm/mach-ixp23xx/core.c index a1bee33..0923bb9 100644 --- a/arch/arm/mach-ixp23xx/core.c +++ b/arch/arm/mach-ixp23xx/core.c @@ -444,3 +444,9 @@ void __init ixp23xx_sys_init(void) *IXP23XX_EXP_UNIT_FUSE |= 0xf; platform_add_devices(ixp23xx_devices, ARRAY_SIZE(ixp23xx_devices)); } + +void ixp23xx_restart(char mode, const char *cmd) +{ + /* Use on-chip reset capability */ + *IXP23XX_RESET0 |= IXP23XX_RST_ALL; +} |