efuse(esp32s2): Added flash_ver, psram_ver, pkg_ver efuses

This commit is contained in:
KonstantinKondrashov
2021-05-21 22:24:31 +08:00
committed by bot
parent 7b5f731cce
commit 3cf4fbc150
5 changed files with 55 additions and 37 deletions

View File

@@ -19,5 +19,5 @@ uint8_t bootloader_common_get_chip_revision(void)
uint32_t bootloader_common_get_chip_ver_pkg(void)
{
// should return the same value as esp_efuse_get_pkg_ver()
return REG_GET_FIELD(EFUSE_RD_MAC_SPI_SYS_3_REG, EFUSE_PKG_VERSION);
return REG_GET_FIELD(EFUSE_RD_MAC_SPI_SYS_4_REG, EFUSE_PKG_VERSION);
}