1 /* 2 * SPDX-FileCopyrightText: 2020-2021 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <stdint.h> 8 #include "soc/efuse_reg.h" 9 bootloader_common_get_chip_revision(void)10uint8_t bootloader_common_get_chip_revision(void) 11 { 12 // should return the same value as esp_efuse_get_chip_ver() 13 return REG_GET_FIELD(EFUSE_RD_MAC_SPI_SYS_3_REG, EFUSE_WAFER_VERSION); 14 } 15 bootloader_common_get_chip_ver_pkg(void)16uint32_t bootloader_common_get_chip_ver_pkg(void) 17 { 18 // should return the same value as esp_efuse_get_pkg_ver() 19 return REG_GET_FIELD(EFUSE_RD_MAC_SPI_SYS_3_REG, EFUSE_PKG_VERSION); 20 } 21