diff options
Diffstat (limited to 'arch/arm/mach-omap2/prminst44xx.c')
-rw-r--r-- | arch/arm/mach-omap2/prminst44xx.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/prminst44xx.c b/arch/arm/mach-omap2/prminst44xx.c index 35e02aac1de9..3a7bab16edd5 100644 --- a/arch/arm/mach-omap2/prminst44xx.c +++ b/arch/arm/mach-omap2/prminst44xx.c | |||
@@ -155,3 +155,22 @@ int omap4_prminst_deassert_hardreset(u8 shift, u8 part, s16 inst, | |||
155 | 155 | ||
156 | return (c == MAX_MODULE_HARDRESET_WAIT) ? -EBUSY : 0; | 156 | return (c == MAX_MODULE_HARDRESET_WAIT) ? -EBUSY : 0; |
157 | } | 157 | } |
158 | |||
159 | |||
160 | void omap4_prminst_global_warm_sw_reset(void) | ||
161 | { | ||
162 | u32 v; | ||
163 | |||
164 | v = omap4_prminst_read_inst_reg(OMAP4430_PRM_PARTITION, | ||
165 | OMAP4430_PRM_DEVICE_INST, | ||
166 | OMAP4_PRM_RSTCTRL_OFFSET); | ||
167 | v |= OMAP4430_RST_GLOBAL_WARM_SW_MASK; | ||
168 | omap4_prminst_write_inst_reg(v, OMAP4430_PRM_PARTITION, | ||
169 | OMAP4430_PRM_DEVICE_INST, | ||
170 | OMAP4_PRM_RSTCTRL_OFFSET); | ||
171 | |||
172 | /* OCP barrier */ | ||
173 | v = omap4_prminst_read_inst_reg(OMAP4430_PRM_PARTITION, | ||
174 | OMAP4430_PRM_DEVICE_INST, | ||
175 | OMAP4_PRM_RSTCTRL_OFFSET); | ||
176 | } | ||