Skip to content

Commit 79d951f

Browse files
committed
kc1/twl6030: fix warm reset / power button / charger plug detection
1 parent 9a281aa commit 79d951f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

board/ti/omap4_kc1/kc1_twl6030.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,10 @@ u32 twl6030_print_boot_reason(void)
129129
data4 = (0x3FF & data4);
130130
printf ("OMAP4 PRM_RSTST :0x%08x\n", data4);
131131

132-
return data4;
132+
if (data4 & (1<<1)) // warm reset
133+
data1 = 0x2;
134+
135+
return data1; // power button press start
133136
}
134137

135138
int do_powerdown(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])

0 commit comments

Comments
 (0)