diff options
author | Tero Kristo <t-kristo@ti.com> | 2014-10-27 08:39:25 -0700 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2014-10-27 08:39:25 -0700 |
commit | 840b7eb8342a64ad6fc6a2140262c3fed3676bd4 (patch) | |
tree | 9444929b8739b9ad6f5f7f05ea1591f67243a94f /arch/arm/mach-omap2/am33xx-restart.c | |
parent | 88f9474f18b4f235b7e9a91d76810fd616fe611a (diff) | |
download | blackbird-op-linux-840b7eb8342a64ad6fc6a2140262c3fed3676bd4.tar.gz blackbird-op-linux-840b7eb8342a64ad6fc6a2140262c3fed3676bd4.zip |
ARM: AM33xx: PRM: move global warm reset implementation to driver
Moved the implementation from am33xx-restart.c to the prm33xx.c file to
isolate the PRM register accesses to be private for PRM driver.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
Tested-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/am33xx-restart.c')
-rw-r--r-- | arch/arm/mach-omap2/am33xx-restart.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/arm/mach-omap2/am33xx-restart.c b/arch/arm/mach-omap2/am33xx-restart.c index c88d8df753c2..728638913cd1 100644 --- a/arch/arm/mach-omap2/am33xx-restart.c +++ b/arch/arm/mach-omap2/am33xx-restart.c @@ -24,12 +24,5 @@ void am33xx_restart(enum reboot_mode mode, const char *cmd) { /* TODO: Handle mode and cmd if necessary */ - am33xx_prm_rmw_reg_bits(AM33XX_RST_GLOBAL_WARM_SW_MASK, - AM33XX_RST_GLOBAL_WARM_SW_MASK, - AM33XX_PRM_DEVICE_MOD, - AM33XX_PRM_RSTCTRL_OFFSET); - - /* OCP barrier */ - (void)am33xx_prm_read_reg(AM33XX_PRM_DEVICE_MOD, - AM33XX_PRM_RSTCTRL_OFFSET); + am33xx_prm_global_warm_sw_reset(); } |