Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208754
b: refs/heads/master
c: 4550ee2
h: refs/heads/master
v: v3
  • Loading branch information
Jongpill Lee authored and Kukjin Kim committed Aug 5, 2010
1 parent cbe9bb1 commit 7a8de44
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f5807269ea1fd93e9306191247fd67400ea5f66c
refs/heads/master: 4550ee20c8d1c280bd26ec3afbcf636ae2897486
9 changes: 9 additions & 0 deletions trunk/arch/arm/mach-s5pv210/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <plat/iic-core.h>
#include <plat/keypad-core.h>
#include <plat/sdhci.h>
#include <plat/reset.h>

/* Initial IO mappings */

Expand Down Expand Up @@ -71,6 +72,11 @@ static void s5pv210_idle(void)
local_irq_enable();
}

static void s5pv210_sw_reset(void)
{
__raw_writel(0x1, S5P_SWRESET);
}

/* s5pv210_map_io
*
* register the standard cpu IO areas
Expand Down Expand Up @@ -145,5 +151,8 @@ int __init s5pv210_init(void)
/* set idle function */
pm_idle = s5pv210_idle;

/* set sw_reset function */
s5p_reset_hook = s5pv210_sw_reset;

return sysdev_register(&s5pv210_sysdev);
}
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-s5pv210/include/mach/regs-clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@
#define S5P_CLKDIV0_PCLK66_SHIFT (28)
#define S5P_CLKDIV0_PCLK66_MASK (0x7 << S5P_CLKDIV0_PCLK66_SHIFT)

#define S5P_SWRESET S5P_CLKREG(0x2000)

/* Registers related to power management */
#define S5P_PWR_CFG S5P_CLKREG(0xC000)
#define S5P_EINT_WAKEUP_MASK S5P_CLKREG(0xC004)
Expand Down

0 comments on commit 7a8de44

Please sign in to comment.