refactor(mspi): move esp_mspi_align and mspi_mem_barrier to esp_mspi

This commit is contained in:
Armando (Dou Yiwen)
2026-09-09 14:17:00 +08:00
parent 90dd358dcb
commit 5e181236b7
15 changed files with 61 additions and 54 deletions
+3 -1
View File
@@ -34,7 +34,8 @@ endif()
if(NOT ${IDF_TARGET} STREQUAL "linux")
set(priv_requires soc esp_hw_support)
if(NOT BOOTLOADER_BUILD)
list(APPEND priv_requires esp_pm esp_driver_dma)
# esp_mspi provides esp_mspi_align, used by the AES and SHA DMA ports
list(APPEND priv_requires esp_pm esp_driver_dma esp_mspi)
set(requires esp_security esp_hal_security)
endif()
endif()
@@ -374,6 +375,7 @@ if((SHA_PERIPHERAL_TYPE STREQUAL "core" AND CONFIG_SOC_SHA_SUPPORT_DMA) OR AES_P
target_link_libraries(builtin PRIVATE idf::esp_hw_support)
target_link_libraries(tfpsacrypto PRIVATE idf::esp_mm)
target_link_libraries(builtin PRIVATE idf::esp_mm)
target_link_libraries(tfpsacrypto PRIVATE idf::esp_mspi)
if(CONFIG_SOC_SHA_GDMA OR CONFIG_SOC_AES_GDMA)
if(CONFIG_SOC_AXI_DMA_EXT_MEM_ENC_ALIGNMENT)
target_link_libraries(tfpsacrypto PRIVATE idf::bootloader_support)