hw23: removed init count for watchdog reset detection

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
Marc Mattmueller 2021-09-15 19:11:55 +02:00
parent 7c087e3930
commit 8afad93b6f
1 changed files with 2 additions and 16 deletions

View File

@ -616,7 +616,7 @@ static void check_reset_reason(uint64_t reset_reason_shm_location)
char strbuf[256];
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
@ -710,21 +710,7 @@ static void check_reset_reason(uint64_t reset_reason_shm_location)
start_reason |= SR_WAKEUP;
}
else {
/* Differing between reboot and watchdog reset */
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");
}
/* Unknown reset reason */
}
}