Skip to content

Commit

Permalink
ARM: 5864/1: Implement arch_reset() in NUC900
Browse files Browse the repository at this point in the history
Implement arch_reset(), reboot from shell become possible.

Signed-off-by: lijie <eltshanli@gmail.com>
Acked-by: Wan ZongShun <mcuos.com@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Li Jie authored and Russell King committed Jan 5, 2010
1 parent 1368c51 commit 58b2e0a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion arch/arm/mach-w90x900/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,27 @@
*
*/

#include <linux/io.h>
#include <asm/proc-fns.h>
#include <mach/map.h>
#include <mach/regs-timer.h>

#define WTCR (TMR_BA + 0x1C)
#define WTCLK (1 << 10)
#define WTE (1 << 7)
#define WTRE (1 << 1)

static void arch_idle(void)
{
}

static void arch_reset(char mode, const char *cmd)
{
cpu_reset(0);
if (mode == 's') {
/* Jump into ROM at address 0 */
cpu_reset(0);
} else {
__raw_writel(WTE | WTRE | WTCLK, WTCR);
}
}

0 comments on commit 58b2e0a

Please sign in to comment.