summaryrefslogtreecommitdiff
path: root/drivers/mfd/db8500-prcmu.c
diff options
context:
space:
mode:
authorRobert Marklund <robert.marklund@stericsson.com>2011-06-23 13:30:59 +0200
committerUlf Hansson <ulf.hansson@stericsson.com>2011-09-19 15:15:41 +0200
commitb38fd068b3b279eaf76286b4b1ba5cd327933818 (patch)
treecf7e817e6aa9a35ab4630b7e2236447639961251 /drivers/mfd/db8500-prcmu.c
parent827eea4c88708d0f822391e4828de20f416cccef (diff)
mfd: prcmu-updates: Fix for merge from 35 merge with original commits
Signed-off-by: Robert Marklund <robert.marklund@stericsson.com>
Diffstat (limited to 'drivers/mfd/db8500-prcmu.c')
-rw-r--r--drivers/mfd/db8500-prcmu.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c
index 02a15d7cb3b..57939be17ed 100644
--- a/drivers/mfd/db8500-prcmu.c
+++ b/drivers/mfd/db8500-prcmu.c
@@ -1514,7 +1514,7 @@ bool prcmu_is_ac_wake_requested(void)
/**
* prcmu_system_reset - System reset
*
- * Saves the reset reason code and then sets the APE_SOFRST register which
+ * Saves the reset reason code and then sets the APE_SOFTRST register which
* fires interrupt to fw
*/
void prcmu_system_reset(u16 reset_code)
@@ -1524,6 +1524,17 @@ void prcmu_system_reset(u16 reset_code)
}
/**
+ * prcmu_get_reset_code - Retrieve SW reset reason code
+ *
+ * Retrieves the reset reason code stored by prcmu_system_reset() before
+ * last restart.
+ */
+u16 prcmu_get_reset_code(void)
+{
+ return readw(tcdm_base + PRCM_SW_RST_REASON);
+}
+
+/**
* prcmu_reset_modem - ask the PRCMU to reset modem
*/
void prcmu_modem_reset(void)