Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279956
b: refs/heads/master
c: 0d68370
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Jan 5, 2012
1 parent 5f39c3e commit 35d190e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 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: 6fca1e17f64936de2e9c614c0d246e65ae553b68
refs/heads/master: 0d68370b246dad8c4a94c3a49d700622664ad89a
5 changes: 5 additions & 0 deletions trunk/arch/arm/mach-h720x/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,3 +242,8 @@ void __init h720x_map_io(void)
{
iotable_init(h720x_io_desc,ARRAY_SIZE(h720x_io_desc));
}

void h720x_restart(char mode, const char *cmd)
{
CPU_REG (PMU_BASE, PMU_STAT) |= PMU_WARMRESET;
}
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-h720x/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
extern unsigned long h720x_gettimeoffset(void);
extern void __init h720x_init_irq(void);
extern void __init h720x_map_io(void);
extern void h720x_restart(char, const char *);

#ifdef CONFIG_ARCH_H7202
extern struct sys_timer h7202_timer;
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-h720x/h7201-eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ MACHINE_START(H7201, "Hynix GMS30C7201")
.init_irq = h720x_init_irq,
.timer = &h7201_timer,
.dma_zone_size = SZ_256M,
.restart = h720x_restart,
MACHINE_END
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-h720x/h7202-eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,5 @@ MACHINE_START(H7202, "Hynix HMS30C7202")
.timer = &h7202_timer,
.init_machine = init_eval_h7202,
.dma_zone_size = SZ_256M,
.restart = h720x_restart,
MACHINE_END
4 changes: 1 addition & 3 deletions trunk/arch/arm/mach-h720x/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ static void arch_idle(void)
nop();
}


static __inline__ void arch_reset(char mode, const char *cmd)
static inline void arch_reset(char mode, const char *cmd)
{
CPU_REG (PMU_BASE, PMU_STAT) |= PMU_WARMRESET;
}

#endif

0 comments on commit 35d190e

Please sign in to comment.