Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279991
b: refs/heads/master
c: b56a7c6
h: refs/heads/master
i:
  279989: be73096
  279987: 6754926
  279983: 7bba096
v: v3
  • Loading branch information
Russell King committed Jan 5, 2012
1 parent 09a1141 commit 209260f
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7e3974b2f3e393abcf7934f020e26d3d22efa940
refs/heads/master: b56a7c6b36388b3eca887bd5d24f297e63e5bb5b
13 changes: 13 additions & 0 deletions trunk/arch/arm/mach-versatile/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,19 @@ static void versatile_leds_event(led_event_t ledevt)
}
#endif /* CONFIG_LEDS */

void versatile_restart(char mode, const char *cmd)
{
void __iomem *sys = __io_address(VERSATILE_SYS_BASE);
u32 val;

val = __raw_readl(sys + VERSATILE_SYS_RESETCTL_OFFSET);
val |= 0x105;

__raw_writel(0xa05f, sys + VERSATILE_SYS_LOCK_OFFSET);
__raw_writel(val, sys + VERSATILE_SYS_RESETCTL_OFFSET);
__raw_writel(0, sys + VERSATILE_SYS_LOCK_OFFSET);
}

/* Early initializations */
void __init versatile_init_early(void)
{
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-versatile/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ extern void __init versatile_init_early(void);
extern void __init versatile_init_irq(void);
extern void __init versatile_map_io(void);
extern struct sys_timer versatile_timer;
extern void versatile_restart(char, const char *);
extern unsigned int mmc_status(struct device *dev);
#ifdef CONFIG_OF
extern struct of_dev_auxdata versatile_auxdata_lookup[];
Expand Down
12 changes: 0 additions & 12 deletions trunk/arch/arm/mach-versatile/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
#ifndef __ASM_ARCH_SYSTEM_H
#define __ASM_ARCH_SYSTEM_H

#include <linux/io.h>
#include <mach/hardware.h>
#include <mach/platform.h>

static inline void arch_idle(void)
{
/*
Expand All @@ -36,14 +32,6 @@ static inline void arch_idle(void)

static inline void arch_reset(char mode, const char *cmd)
{
u32 val;

val = __raw_readl(IO_ADDRESS(VERSATILE_SYS_RESETCTL)) & ~0x7;
val |= 0x105;

__raw_writel(0xa05f, IO_ADDRESS(VERSATILE_SYS_LOCK));
__raw_writel(val, IO_ADDRESS(VERSATILE_SYS_RESETCTL));
__raw_writel(0, IO_ADDRESS(VERSATILE_SYS_LOCK));
}

#endif
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-versatile/versatile_ab.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ MACHINE_START(VERSATILE_AB, "ARM-Versatile AB")
.init_irq = versatile_init_irq,
.timer = &versatile_timer,
.init_machine = versatile_init,
.restart = versatile_restart,
MACHINE_END
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-versatile/versatile_dt.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ DT_MACHINE_START(VERSATILE_PB, "ARM-Versatile (Device Tree Support)")
.timer = &versatile_timer,
.init_machine = versatile_dt_init,
.dt_compat = versatile_dt_match,
.restart = versatile_restart,
MACHINE_END
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-versatile/versatile_pb.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,5 @@ MACHINE_START(VERSATILE_PB, "ARM-Versatile PB")
.init_irq = versatile_init_irq,
.timer = &versatile_timer,
.init_machine = versatile_pb_init,
.restart = versatile_restart,
MACHINE_END

0 comments on commit 209260f

Please sign in to comment.