Skip to content

Commit eb45491

Browse files
esp-wzhespressif-bot
authored andcommitted
feat(esp_hw_support): bypass rst_reason override for esp32p4eco1
1 parent fdb0dd2 commit eb45491

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/esp_system/port/soc/esp32p4/reset_reason.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#include "esp_rom_sys.h"
99
#include "esp_private/system_internal.h"
1010
#include "soc/rtc_periph.h"
11+
#include "soc/chip_revision.h"
12+
#include "hal/efuse_hal.h"
1113
#include "esp32p4/rom/rtc.h"
1214

1315
static void esp_reset_reason_clear_hint(void);
@@ -57,7 +59,9 @@ static esp_reset_reason_t get_reset_reason(soc_reset_reason_t rtc_reset_reason,
5759

5860
case RESET_REASON_CORE_EFUSE_CRC:
5961
#if CONFIG_IDF_TARGET_ESP32P4
60-
return ESP_RST_DEEPSLEEP; // TODO: IDF-9564
62+
if (!ESP_CHIP_REV_ABOVE(efuse_hal_chip_revision(), 1)) {
63+
return ESP_RST_DEEPSLEEP;
64+
}
6165
#endif
6266
return ESP_RST_EFUSE;
6367

0 commit comments

Comments
 (0)