esp32s2-saola-1: Initialize EFUSE driver
# 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 */
