more debug
This commit is contained in:
parent
d631425b69
commit
28b82e1ecb
|
|
@ -576,9 +576,11 @@ static void check_reset_reason(uint64_t reset_reason_shm_location)
|
|||
printf("check_reset_reason, ret: %d state: %d\n", ret, state);
|
||||
if ((ret == 0) && (state != 0xC5)) {
|
||||
printf("no boot marker in PMIC");
|
||||
(void)da9063_set_reg(PMIC_GP_ID_1, 0xC5);
|
||||
ret = da9063_set_reg(PMIC_GP_ID_1, 0xC5);
|
||||
printf("set boot marker ret: %d\n", ret);
|
||||
|
||||
ret = da9063_get_reg(PMIC_GP_ID_1, &state);
|
||||
printf("read back bootmarker: %d\n", state);
|
||||
printf("read back boot marker: %d, ret: %d\n", state, ret);
|
||||
start_reason |= SR_POR;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue