Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273431
b: refs/heads/master
c: 597045d
h: refs/heads/master
i:
  273429: cef202c
  273427: 2672049
  273423: e0c8914
v: v3
  • Loading branch information
Sebastian Rasmussen authored and Samuel Ortiz committed Oct 24, 2011
1 parent bf65cbb commit de55986
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d6e3002e493e43aa40473935e1803849cf37b6bb
refs/heads/master: 597045de35caaef68a11b6defbb618710e1a1e52
11 changes: 11 additions & 0 deletions trunk/drivers/mfd/db8500-prcmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1835,6 +1835,17 @@ void db8500_prcmu_system_reset(u16 reset_code)
writel(1, PRCM_APE_SOFTRST);
}

/**
* db8500_prcmu_get_reset_code - Retrieve SW reset reason code
*
* Retrieves the reset reason code stored by prcmu_system_reset() before
* last restart.
*/
u16 db8500_prcmu_get_reset_code(void)
{
return readw(tcdm_base + PRCM_SW_RST_REASON);
}

/**
* prcmu_reset_modem - ask the PRCMU to reset modem
*/
Expand Down

0 comments on commit de55986

Please sign in to comment.