ldr r0, =S5PC110_RST_STAT
ldr r1, [r0]
- bic r1, r1, #0xfff6ffff
- cmp r1, #0x80000
+ and r1, r1, #S5PC110_RST_STAT_WAKEUP_MODE_MASK
+ cmp r1, #S5PC110_DEEPIDLE_WAKEUP
beq didle_wakeup
cmp r7, r8
skip_check_didle:
ldr r0, =S5PC110_APLL_CON
lockloop:
ldr r1, [r0]
- and r1, r1, #(1<<29)
- cmp r1, #(1<<29)
+ and r1, r1, #S5PC110_APLL_CON_LOCKED
+ cmp r1, #S5PC110_APLL_CON_LOCKED
bne lockloop
ldr r0, =S5PC110_INFORM0
#define S5PC110_RST_STAT 0xE010A000
#define S5PC110_SLEEP_WAKEUP (1 << 16)
+#define S5PC110_DEEPSTOP (1 << 18)
+#define S5PC110_DEEPIDLE_WAKEUP (1 << 19)
+#define S5PC110_RST_STAT_WAKEUP_MODE_MASK 0x000D0000
#define S5PC110_OSC_CON 0xE0108000
#define S5PC110_PWR_CFG 0xE010C000
#define S5PC110_CFG_STANDBYWFI_MASK (0x3 << 8)