From 7e2a06959af7eb7c665bc9c4a3bcddf8bc0c65f8 Mon Sep 17 00:00:00 2001 From: Eren Terzioglu Date: Mon, 6 Oct 2025 12:49:08 +0200 Subject: [PATCH] arch/xtensa/espressif: Fix efuse build warning for esp32 Fix build warning while building efuse for esp32 Signed-off-by: Eren Terzioglu --- arch/xtensa/src/common/espressif/esp_efuse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/xtensa/src/common/espressif/esp_efuse.c b/arch/xtensa/src/common/espressif/esp_efuse.c index f0d4fa2def8..da6a14f465c 100644 --- a/arch/xtensa/src/common/espressif/esp_efuse.c +++ b/arch/xtensa/src/common/espressif/esp_efuse.c @@ -40,7 +40,7 @@ #ifdef CONFIG_ARCH_CHIP_ESP32 #include "xtensa.h" -#include "soc/apb_ctrl_reg.h" +#include "soc/syscon_reg.h" #include "esp_efuse_table.h" #endif @@ -352,7 +352,7 @@ uint32_t esp_efuse_hal_chip_revision(void) &minor_chip_version, ESP_EFUSE_WAFER_VERSION_MINOR[0]->bit_count); - eco_bit2 = (getreg32(APB_CTRL_DATE_REG) & 0x80000000) >> 31; + eco_bit2 = (getreg32(SYSCON_DATE_REG) & 0x80000000) >> 31; combine_value = (eco_bit2 << 2) | (eco_bit1 << 1) | eco_bit0; switch (combine_value)