spi_flash: support esp32s2beta

This commit is contained in:
Michael (XIAO Xufeng)
2019-08-18 13:30:11 +08:00
committed by Angus Gratton
parent b76d5d74d9
commit 9f1c8f0c76
2 changed files with 4 additions and 2 deletions

View File

@@ -26,3 +26,5 @@ PROVIDE ( esp_rom_spiflash_erase_sector = SPIEraseSector );
PROVIDE ( esp_rom_spiflash_erase_block = SPIEraseBlock ); PROVIDE ( esp_rom_spiflash_erase_block = SPIEraseBlock );
PROVIDE ( esp_rom_spiflash_wait_idle = SPI_Wait_Idle ); PROVIDE ( esp_rom_spiflash_wait_idle = SPI_Wait_Idle );
PROVIDE ( esp_rom_spiflash_config_readmode = SPIReadModeCnfig ); PROVIDE ( esp_rom_spiflash_config_readmode = SPIReadModeCnfig );
PROVIDE ( esp_rom_spiflash_erase_block = SPIEraseBlock );
PROVIDE ( esp_rom_spiflash_write_encrypted = SPI_Encrypt_Write );

View File

@@ -4,7 +4,7 @@ if(BOOTLOADER_BUILD)
# but on other platforms no source files are needed for bootloader # but on other platforms no source files are needed for bootloader
set(srcs) set(srcs)
else() else()
set(srcs set(srcs
"cache_utils.c" "cache_utils.c"
"flash_mmap.c" "flash_mmap.c"
"flash_ops.c" "flash_ops.c"
@@ -27,7 +27,7 @@ else()
set(priv_requires bootloader_support app_update soc) set(priv_requires bootloader_support app_update soc)
endif() endif()
if(CONFIG_IDF_TARGET_ESP32) if(IDF_TARGET STREQUAL "esp32")
list(APPEND srcs "spi_flash_rom_patch.c") list(APPEND srcs "spi_flash_rom_patch.c")
endif() endif()