Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258251
b: refs/heads/master
c: 2637ce3
h: refs/heads/master
i:
  258249: 1723746
  258247: 1fea0d0
v: v3
  • Loading branch information
Russell King committed Jun 24, 2011
1 parent 3064e3b commit 2baa5aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 857c1b81f8dd2e2a97d859d7e53dd955e2ab55af
refs/heads/master: 2637ce30e145557bf89ebcf35b2d78e729e16e5a
9 changes: 2 additions & 7 deletions trunk/arch/arm/mach-omap2/sleep34xx.S
Original file line number Diff line number Diff line change
Expand Up @@ -381,18 +381,13 @@ restore_3630:

restore:
/*
* Check what was the reason for mpu reset and store the reason in r9:
* 0 - No context lost
* 1 - Only L1 and logic lost
* 2 - Only L2 lost - In this case, we wont be here
* 3 - Both L1 and L2 lost
* Read the pwstctrl register to check the reason for mpu reset.
* This tells us what was lost.
*/
ldr r1, pm_pwstctrl_mpu
ldr r2, [r1]
and r2, r2, #0x3
cmp r2, #0x0 @ Check if target power state was OFF or RET
moveq r9, #0x3 @ MPU OFF => L1 and L2 lost
movne r9, #0x1 @ Only L1 and L2 lost => avoid L2 invalidation
bne logic_l1_restore

ldr r0, l2dis_3630
Expand Down

0 comments on commit 2baa5aa

Please sign in to comment.