esp32s2-saola-1: Initialize EFUSE driver

This commit is contained in:
Alan Carvalho de Assis 2023-01-17 18:45:23 -03:00 committed by Xiang Xiao
parent 2bdb7c0e8d
commit 9b187446f4

View File

@ -58,6 +58,10 @@
# include "esp32s2_rt_timer.h"
#endif
#ifdef CONFIG_ESP32S2_EFUSE
# include "esp32s2_efuse.h"
#endif
#ifdef CONFIG_WATCHDOG
# include "esp32s2_board_wdt.h"
#endif
@ -111,6 +115,14 @@ int esp32s2_bringup(void)
}
#endif
#if defined(CONFIG_ESP32S2_EFUSE)
ret = esp32s2_efuse_initialize("/dev/efuse");
if (ret < 0)
{
syslog(LOG_ERR, "ERROR: Failed to init EFUSE: %d\n", ret);
}
#endif
#ifdef CONFIG_WATCHDOG
/* Configure watchdog timer */