hw23: removed init count for watchdog reset detection
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
parent
7c087e3930
commit
8afad93b6f
|
|
@ -616,7 +616,7 @@ static void check_reset_reason(uint64_t reset_reason_shm_location)
|
||||||
char strbuf[256];
|
char strbuf[256];
|
||||||
|
|
||||||
uint32_t scu_init_cnt = da9063_get_init_count();
|
uint32_t scu_init_cnt = da9063_get_init_count();
|
||||||
printf("SCU init count = %u\n", (unsigned int)scu_init_cnt);
|
printf("SCU init count = 0x%X\n", scu_init_cnt);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check/write boot marker to PMIC register GP_ID_1
|
* Check/write boot marker to PMIC register GP_ID_1
|
||||||
|
|
@ -710,21 +710,7 @@ static void check_reset_reason(uint64_t reset_reason_shm_location)
|
||||||
start_reason |= SR_WAKEUP;
|
start_reason |= SR_WAKEUP;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* Differing between reboot and watchdog reset */
|
/* Unknown reset reason */
|
||||||
if ((eventA == 0) && (gpId1 == 0xC5))
|
|
||||||
{
|
|
||||||
uint32_t scu_init_cnt = da9063_get_init_count();
|
|
||||||
printf("SCU init count = %u\n", (unsigned int)scu_init_cnt);
|
|
||||||
if(scu_init_cnt < 20)
|
|
||||||
{
|
|
||||||
start_reason |= SR_WATCHDOG;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* Unknown reset reason */
|
|
||||||
printf("Undetected valid reset reason\n");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue