efuse: add package definitions for PICOD2/D4
This commit is contained in:
parent
fb9c106bcb
commit
a02b30ccda
2 changed files with 6 additions and 2 deletions
|
@ -397,8 +397,10 @@ static void get_chip_info_esp32(esp_chip_info_t* out_info)
|
||||||
if ((reg & EFUSE_RD_CHIP_VER_DIS_BT_M) == 0) {
|
if ((reg & EFUSE_RD_CHIP_VER_DIS_BT_M) == 0) {
|
||||||
out_info->features |= CHIP_FEATURE_BT | CHIP_FEATURE_BLE;
|
out_info->features |= CHIP_FEATURE_BT | CHIP_FEATURE_BLE;
|
||||||
}
|
}
|
||||||
if (((reg & EFUSE_RD_CHIP_VER_PKG_M) >> EFUSE_RD_CHIP_VER_PKG_S) ==
|
int package = (reg & EFUSE_RD_CHIP_VER_PKG_M) >> EFUSE_RD_CHIP_VER_PKG_S;
|
||||||
EFUSE_RD_CHIP_VER_PKG_ESP32D2WDQ5) {
|
if (package == EFUSE_RD_CHIP_VER_PKG_ESP32D2WDQ5 ||
|
||||||
|
package == EFUSE_RD_CHIP_VER_PKG_ESP32PICOD2 ||
|
||||||
|
package == EFUSE_RD_CHIP_VER_PKG_ESP32PICOD4) {
|
||||||
out_info->features |= CHIP_FEATURE_EMB_FLASH;
|
out_info->features |= CHIP_FEATURE_EMB_FLASH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -100,6 +100,8 @@
|
||||||
#define EFUSE_RD_CHIP_VER_PKG_ESP32D0WDQ6 0
|
#define EFUSE_RD_CHIP_VER_PKG_ESP32D0WDQ6 0
|
||||||
#define EFUSE_RD_CHIP_VER_PKG_ESP32D0WDQ5 1
|
#define EFUSE_RD_CHIP_VER_PKG_ESP32D0WDQ5 1
|
||||||
#define EFUSE_RD_CHIP_VER_PKG_ESP32D2WDQ5 2
|
#define EFUSE_RD_CHIP_VER_PKG_ESP32D2WDQ5 2
|
||||||
|
#define EFUSE_RD_CHIP_VER_PKG_ESP32PICOD2 4
|
||||||
|
#define EFUSE_RD_CHIP_VER_PKG_ESP32PICOD4 5
|
||||||
/* EFUSE_RD_SPI_PAD_CONFIG_HD : RO ;bitpos:[8:4] ;default: 5'b0 ; */
|
/* EFUSE_RD_SPI_PAD_CONFIG_HD : RO ;bitpos:[8:4] ;default: 5'b0 ; */
|
||||||
/*description: read for SPI_pad_config_hd*/
|
/*description: read for SPI_pad_config_hd*/
|
||||||
#define EFUSE_RD_SPI_PAD_CONFIG_HD 0x0000001F
|
#define EFUSE_RD_SPI_PAD_CONFIG_HD 0x0000001F
|
||||||
|
|
Loading…
Reference in a new issue