summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorArun Murthy <arun.murthy@stericsson.com>2011-11-14 14:24:10 +0530
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 10:59:20 +0200
commitcc6634371a05f53bac9e3d6436aa26b5338d4a84 (patch)
tree5039f2dfd145ae225711632bc78944e7ef6b5649 /include
parent895997faaaff7ab9fb3f19cf9f6c981e5b337bc6 (diff)
mfd: dbx500-prcmu: modem reset request
Add an API to initiate modem reset request. This is a blocking call and not to be called from interrupt context. ST-Ericsson Linux next: NA ST-Ericsson ID: 341807 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ib4fa17e1507b014859b68137a04430d51b797b5e Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/37614 Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/db5500-prcmu.h2
-rw-r--r--include/linux/mfd/dbx500-prcmu.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/mfd/db5500-prcmu.h b/include/linux/mfd/db5500-prcmu.h
index 8b8470cb24e..937589d46df 100644
--- a/include/linux/mfd/db5500-prcmu.h
+++ b/include/linux/mfd/db5500-prcmu.h
@@ -33,6 +33,7 @@ void prcmu_modem_rel(void);
void prcmu_ape_ack(void);
#endif
bool db5500_prcmu_is_modem_requested(void);
+void db5500_prcmu_modem_reset(void);
int db5500_prcmu_set_arm_opp(u8 opp);
int db5500_prcmu_get_arm_opp(void);
int db5500_prcmu_set_ape_opp(u8 opp);
@@ -141,6 +142,7 @@ static inline u16 db5500_prcmu_get_reset_code(void)
return 0;
}
+static inline void db5500_prcmu_modem_reset(void) {}
static inline bool db5500_prcmu_is_modem_requested(void)
{
return 0;
diff --git a/include/linux/mfd/dbx500-prcmu.h b/include/linux/mfd/dbx500-prcmu.h
index 4baf982fabf..c6d11826172 100644
--- a/include/linux/mfd/dbx500-prcmu.h
+++ b/include/linux/mfd/dbx500-prcmu.h
@@ -452,7 +452,7 @@ void prcmu_ac_sleep_req(void);
static inline void prcmu_modem_reset(void)
{
if (cpu_is_u5500())
- return;
+ return db5500_prcmu_modem_reset();
else
return db8500_prcmu_modem_reset();
}