Commit ff4d3e18 authored by Rajeev Kulkarni's avatar Rajeev Kulkarni Committed by Paul Walmsley

OMAP4: prcm: Fix global warm reset bit position

OMAP4 platform has different register bits for Warm and Cold Resets.
Write one into appropriate bits.
Signed-off-by: default avatarRajeev Kulkarni <rajeevk@ti.com>
Cc: Leed Aguilar <leed.aguilar@ti.com>
[b-cousson@ti.com: Change the define with the proper one from omap4 headers]
Signed-off-by: default avatarBenoit Cousson <b-cousson@ti.com>
Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
Tested-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
parent 9b579114
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "cm.h" #include "cm.h"
#include "prm.h" #include "prm.h"
#include "prm-regbits-24xx.h" #include "prm-regbits-24xx.h"
#include "prm-regbits-44xx.h"
static void __iomem *prm_base; static void __iomem *prm_base;
static void __iomem *cm_base; static void __iomem *cm_base;
...@@ -161,8 +162,8 @@ void omap_prcm_arch_reset(char mode, const char *cmd) ...@@ -161,8 +162,8 @@ void omap_prcm_arch_reset(char mode, const char *cmd)
prm_set_mod_reg_bits(OMAP_RST_DPLL3_MASK, prcm_offs, prm_set_mod_reg_bits(OMAP_RST_DPLL3_MASK, prcm_offs,
OMAP2_RM_RSTCTRL); OMAP2_RM_RSTCTRL);
if (cpu_is_omap44xx()) if (cpu_is_omap44xx())
prm_set_mod_reg_bits(OMAP_RST_DPLL3_MASK, prcm_offs, prm_set_mod_reg_bits(OMAP4430_RST_GLOBAL_WARM_SW_MASK,
OMAP4_RM_RSTCTRL); prcm_offs, OMAP4_RM_RSTCTRL);
} }
static inline u32 __omap_prcm_read(void __iomem *base, s16 module, u16 reg) static inline u32 __omap_prcm_read(void __iomem *base, s16 module, u16 reg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment