Skip to content

Commit

Permalink
ARM: restart: netx: use new restart hook
Browse files Browse the repository at this point in the history
Hook these platforms restart code into the new restart hook rather
than using arch_reset().

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King committed Jan 5, 2012
1 parent 6f91c5a commit 8fb06b1
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
5 changes: 5 additions & 0 deletions arch/arm/mach-netx/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,8 @@ static int __init netx_init(void)

subsys_initcall(netx_init);

void netx_restart(char mode, const char *cmd)
{
writel(NETX_SYSTEM_RES_CR_FIRMW_RES_EN | NETX_SYSTEM_RES_CR_FIRMW_RES,
NETX_SYSTEM_RES_CR);
}
1 change: 1 addition & 0 deletions arch/arm/mach-netx/generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

extern void __init netx_map_io(void);
extern void __init netx_init_irq(void);
extern void netx_restart(char, const char *);

struct sys_timer;
extern struct sys_timer netx_timer;
6 changes: 0 additions & 6 deletions arch/arm/mach-netx/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,13 @@
#ifndef __ASM_ARCH_SYSTEM_H
#define __ASM_ARCH_SYSTEM_H

#include <linux/io.h>
#include <mach/hardware.h>
#include "netx-regs.h"

static inline void arch_idle(void)
{
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
writel(NETX_SYSTEM_RES_CR_FIRMW_RES_EN | NETX_SYSTEM_RES_CR_FIRMW_RES,
NETX_SYSTEM_RES_CR);
}

#endif
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-netx/nxdb500.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,4 +205,5 @@ MACHINE_START(NXDB500, "Hilscher nxdb500")
.init_irq = netx_init_irq,
.timer = &netx_timer,
.init_machine = nxdb500_init,
.restart = netx_restart,
MACHINE_END
1 change: 1 addition & 0 deletions arch/arm/mach-netx/nxdkn.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,5 @@ MACHINE_START(NXDKN, "Hilscher nxdkn")
.init_irq = netx_init_irq,
.timer = &netx_timer,
.init_machine = nxdkn_init,
.restart = netx_restart,
MACHINE_END
1 change: 1 addition & 0 deletions arch/arm/mach-netx/nxeb500hmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,5 @@ MACHINE_START(NXEB500HMI, "Hilscher nxeb500hmi")
.init_irq = netx_init_irq,
.timer = &netx_timer,
.init_machine = nxeb500hmi_init,
.restart = netx_restart,
MACHINE_END

0 comments on commit 8fb06b1

Please sign in to comment.