Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279958
b: refs/heads/master
c: 6338b66
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Jan 5, 2012
1 parent 0afaf21 commit ee31eb2
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 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: 00e9967e0dfa0d4c871ac3be5bd1cb28348e68d3
refs/heads/master: 6338b66f8a8c5bc8ff8671acbfdda02756e92c0a
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-integrator/common.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
void integrator_init_early(void);
void integrator_reserve(void);
void integrator_restart(char, const char *);
8 changes: 8 additions & 0 deletions trunk/arch/arm/mach-integrator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,3 +238,11 @@ void __init integrator_reserve(void)
{
memblock_reserve(PHYS_OFFSET, __pa(swapper_pg_dir) - PHYS_OFFSET);
}

/*
* To reset, we hit the on-board reset register in the system FPGA
*/
void integrator_restart(char mode, const char *cmd)
{
cm_control(CM_CTRL_RESET, CM_CTRL_RESET);
}
7 changes: 0 additions & 7 deletions trunk/arch/arm/mach-integrator/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
#ifndef __ASM_ARCH_SYSTEM_H
#define __ASM_ARCH_SYSTEM_H

#include <mach/cm.h>

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

static inline void arch_reset(char mode, const char *cmd)
{
/*
* To reset, we hit the on-board reset register
* in the system FPGA
*/
cm_control(CM_CTRL_RESET, CM_CTRL_RESET);
}

#endif
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-integrator/integrator_ap.c
Original file line number Diff line number Diff line change
Expand Up @@ -472,4 +472,5 @@ MACHINE_START(INTEGRATOR, "ARM-Integrator")
.init_irq = ap_init_irq,
.timer = &ap_timer,
.init_machine = ap_init,
.restart = integrator_restart,
MACHINE_END
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-integrator/integrator_cp.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,4 +499,5 @@ MACHINE_START(CINTEGRATOR, "ARM-IntegratorCP")
.init_irq = intcp_init_irq,
.timer = &cp_timer,
.init_machine = intcp_init,
.restart = integrator_restart,
MACHINE_END

0 comments on commit ee31eb2

Please sign in to comment.