diff options
author | Arun Murthy <arun.murthy@stericsson.com> | 2011-10-04 12:21:07 +0530 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-05-22 10:59:20 +0200 |
commit | 895997faaaff7ab9fb3f19cf9f6c981e5b337bc6 (patch) | |
tree | 16ecccceaa6473febfa2eae9e23ae69fd608ca2f /include | |
parent | f6a20dd13d85196d2fd4f5a00c393c164bd99a62 (diff) |
mfd: db5500-prcmu: add modem_req and modem_rel API
When APE has some messages to send to modem, APE will issue a modem_req
and then start sending the messages to modem.
Once APE is done with sending messages to modem, it will send modem_rel
to free the ape-modem communication protocol.
This protocol will be used to achieve APE-Modem power management.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 350108
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I331654967ddd4b77818f7f4a8427ea8c63fd90a8
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32722
Reviewed-by: QATOOLS
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mfd/db5500-prcmu.h | 15 | ||||
-rw-r--r-- | include/linux/mfd/dbx500-prcmu.h | 2 |
2 files changed, 14 insertions, 3 deletions
diff --git a/include/linux/mfd/db5500-prcmu.h b/include/linux/mfd/db5500-prcmu.h index ffbd415e6c7..8b8470cb24e 100644 --- a/include/linux/mfd/db5500-prcmu.h +++ b/include/linux/mfd/db5500-prcmu.h @@ -27,7 +27,12 @@ int db5500_prcmu_set_power_state(u8 state, bool keep_ulp_clk, int db5500_prcmu_config_esram0_deep_sleep(u8 state); void db5500_prcmu_system_reset(u16 reset_code); u16 db5500_prcmu_get_reset_code(void); -bool db5500_prcmu_is_ac_wake_requested(void); +#ifdef CONFIG_UX500_SOC_DB5500 +void prcmu_modem_req(void); +void prcmu_modem_rel(void); +void prcmu_ape_ack(void); +#endif +bool db5500_prcmu_is_modem_requested(void); int db5500_prcmu_set_arm_opp(u8 opp); int db5500_prcmu_get_arm_opp(void); int db5500_prcmu_set_ape_opp(u8 opp); @@ -136,11 +141,17 @@ static inline u16 db5500_prcmu_get_reset_code(void) return 0; } -static inline bool db5500_prcmu_is_ac_wake_requested(void) +static inline bool db5500_prcmu_is_modem_requested(void) { return 0; } +#ifdef CONFIG_UX500_SOC_DB5500 +static void prcmu_ape_ack(void) {} +static void prcmu_modem_req(void) {} +static void prcmu_modem_rel(void) {} +#endif + static inline int db5500_prcmu_set_arm_opp(u8 opp) { return 0; diff --git a/include/linux/mfd/dbx500-prcmu.h b/include/linux/mfd/dbx500-prcmu.h index 39062eca535..4baf982fabf 100644 --- a/include/linux/mfd/dbx500-prcmu.h +++ b/include/linux/mfd/dbx500-prcmu.h @@ -460,7 +460,7 @@ static inline void prcmu_modem_reset(void) static inline bool prcmu_is_ac_wake_requested(void) { if (cpu_is_u5500()) - return db5500_prcmu_is_ac_wake_requested(); + return db5500_prcmu_is_modem_requested(); else return db8500_prcmu_is_ac_wake_requested(); } |