diff options
author | Tero Kristo <t-kristo@ti.com> | 2014-10-27 11:39:23 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2014-10-27 11:39:23 -0400 |
commit | a8ae5afa5cb820afa251b9acfe3f0a938b6a6c0d (patch) | |
tree | 21d80ee4768a6ea8e9810d252a0b7e5167dc0362 /arch/arm/mach-omap2/cm.h | |
parent | 021b6ff05c4a17cb20d71c05e251ea7f80b1c516 (diff) |
ARM: OMAP4+/AM33xx: CM: add common API for cm_wait_module_idle
Adds a generic CM driver API for waiting module to enter idle / standby.
The SoC specific implementations are registered through cm_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/cm.h')
-rw-r--r-- | arch/arm/mach-omap2/cm.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/cm.h b/arch/arm/mach-omap2/cm.h index 695c34dd37ca..3ecc5d73e2c5 100644 --- a/arch/arm/mach-omap2/cm.h +++ b/arch/arm/mach-omap2/cm.h | |||
@@ -45,18 +45,23 @@ extern void omap2_set_globals_cm(void __iomem *cm, void __iomem *cm2); | |||
45 | * struct cm_ll_data - fn ptrs to per-SoC CM function implementations | 45 | * struct cm_ll_data - fn ptrs to per-SoC CM function implementations |
46 | * @split_idlest_reg: ptr to the SoC CM-specific split_idlest_reg impl | 46 | * @split_idlest_reg: ptr to the SoC CM-specific split_idlest_reg impl |
47 | * @wait_module_ready: ptr to the SoC CM-specific wait_module_ready impl | 47 | * @wait_module_ready: ptr to the SoC CM-specific wait_module_ready impl |
48 | * @wait_module_idle: ptr to the SoC CM-specific wait_module_idle impl | ||
48 | */ | 49 | */ |
49 | struct cm_ll_data { | 50 | struct cm_ll_data { |
50 | int (*split_idlest_reg)(void __iomem *idlest_reg, s16 *prcm_inst, | 51 | int (*split_idlest_reg)(void __iomem *idlest_reg, s16 *prcm_inst, |
51 | u8 *idlest_reg_id); | 52 | u8 *idlest_reg_id); |
52 | int (*wait_module_ready)(u8 part, s16 prcm_mod, u16 idlest_reg, | 53 | int (*wait_module_ready)(u8 part, s16 prcm_mod, u16 idlest_reg, |
53 | u8 idlest_shift); | 54 | u8 idlest_shift); |
55 | int (*wait_module_idle)(u8 part, s16 prcm_mod, u16 idlest_reg, | ||
56 | u8 idlest_shift); | ||
54 | }; | 57 | }; |
55 | 58 | ||
56 | extern int cm_split_idlest_reg(void __iomem *idlest_reg, s16 *prcm_inst, | 59 | extern int cm_split_idlest_reg(void __iomem *idlest_reg, s16 *prcm_inst, |
57 | u8 *idlest_reg_id); | 60 | u8 *idlest_reg_id); |
58 | int omap_cm_wait_module_ready(u8 part, s16 prcm_mod, u16 idlest_reg, | 61 | int omap_cm_wait_module_ready(u8 part, s16 prcm_mod, u16 idlest_reg, |
59 | u8 idlest_shift); | 62 | u8 idlest_shift); |
63 | int omap_cm_wait_module_idle(u8 part, s16 prcm_mod, u16 idlest_reg, | ||
64 | u8 idlest_shift); | ||
60 | extern int cm_register(struct cm_ll_data *cld); | 65 | extern int cm_register(struct cm_ll_data *cld); |
61 | extern int cm_unregister(struct cm_ll_data *cld); | 66 | extern int cm_unregister(struct cm_ll_data *cld); |
62 | 67 | ||