|
|
@@ -136,6 +136,21 @@ static const esp_target_t esp_target[ESP_MAX_CHIP] = {
|
|
|
.chip_magic_value = { 0x6f51306f, 0 },
|
|
|
.read_spi_config = spi_config_esp32xx,
|
|
|
},
|
|
|
+ // ESP32H2
|
|
|
+ {
|
|
|
+ .regs = {
|
|
|
+ .cmd = ESP32xx_SPI_REG_BASE + 0x00,
|
|
|
+ .usr = ESP32xx_SPI_REG_BASE + 0x18,
|
|
|
+ .usr1 = ESP32xx_SPI_REG_BASE + 0x1c,
|
|
|
+ .usr2 = ESP32xx_SPI_REG_BASE + 0x20,
|
|
|
+ .w0 = ESP32xx_SPI_REG_BASE + 0x58,
|
|
|
+ .mosi_dlen = ESP32xx_SPI_REG_BASE + 0x24,
|
|
|
+ .miso_dlen = ESP32xx_SPI_REG_BASE + 0x28,
|
|
|
+ },
|
|
|
+ .efuse_base = 0x6001A000,
|
|
|
+ .chip_magic_value = { 0xca26cc22, 0 }, // ESP32H2-BETA1
|
|
|
+ .read_spi_config = spi_config_esp32xx,
|
|
|
+ },
|
|
|
};
|
|
|
|
|
|
const target_registers_t *get_esp_target_data(target_chip_t chip)
|
|
|
@@ -230,4 +245,4 @@ static esp_loader_error_t spi_config_esp32xx(uint32_t efuse_base, uint32_t *spi_
|
|
|
bool encryption_in_begin_flash_cmd(target_chip_t target)
|
|
|
{
|
|
|
return target == ESP32_CHIP || target == ESP8266_CHIP;
|
|
|
-}
|
|
|
+}
|