diff options
author | Tero Kristo <t-kristo@ti.com> | 2014-10-27 11:39:26 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2014-10-27 11:39:26 -0400 |
commit | 61c8621e2bd14faad9b89ab2284955b28000bcd5 (patch) | |
tree | b7b24d5490f68336f06dcee1dbc50d2fc2254a55 /arch/arm/mach-omap2/prm.h | |
parent | 4984eeaf71f033d1ca6b644e4fcdef4b3e6a97b4 (diff) |
ARM: OMAP2+: PRM: provide generic API for system reset
This patch combines the various prm_warm_reset calls under a common
API prm_reset_system, and adds the SoC specific implementation under
prm_ll_data.
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/prm.h')
-rw-r--r-- | arch/arm/mach-omap2/prm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/prm.h b/arch/arm/mach-omap2/prm.h index dd802eec0dec..77752e49d8d4 100644 --- a/arch/arm/mach-omap2/prm.h +++ b/arch/arm/mach-omap2/prm.h | |||
@@ -144,6 +144,7 @@ struct prm_ll_data { | |||
144 | u16 offset, u16 st_offset); | 144 | u16 offset, u16 st_offset); |
145 | int (*is_hardreset_asserted)(u8 shift, u8 part, s16 prm_mod, | 145 | int (*is_hardreset_asserted)(u8 shift, u8 part, s16 prm_mod, |
146 | u16 offset); | 146 | u16 offset); |
147 | void (*reset_system)(void); | ||
147 | }; | 148 | }; |
148 | 149 | ||
149 | extern int prm_register(struct prm_ll_data *pld); | 150 | extern int prm_register(struct prm_ll_data *pld); |
@@ -156,6 +157,7 @@ int omap_prm_is_hardreset_asserted(u8 shift, u8 part, s16 prm_mod, u16 offset); | |||
156 | extern u32 prm_read_reset_sources(void); | 157 | extern u32 prm_read_reset_sources(void); |
157 | extern bool prm_was_any_context_lost_old(u8 part, s16 inst, u16 idx); | 158 | extern bool prm_was_any_context_lost_old(u8 part, s16 inst, u16 idx); |
158 | extern void prm_clear_context_loss_flags_old(u8 part, s16 inst, u16 idx); | 159 | extern void prm_clear_context_loss_flags_old(u8 part, s16 inst, u16 idx); |
160 | void omap_prm_reset_system(void); | ||
159 | 161 | ||
160 | void omap_prm_reconfigure_io_chain(void); | 162 | void omap_prm_reconfigure_io_chain(void); |
161 | 163 | ||