spi_flash: refactoring flash encryption into new api

This commit is contained in:
Cao Sen Miao
2021-02-25 12:25:38 +08:00
parent 00a66083c7
commit 0d81edb174
20 changed files with 1174 additions and 105 deletions

View File

@@ -182,6 +182,9 @@
#define SOC_AES_SUPPORT_AES_128 (1)
#define SOC_AES_SUPPORT_AES_256 (1)
/*-------------------------- Flash Encryption CAPS----------------------------*/
#define SOC_FLASH_ENCRYPTED_XTS_AES_BLOCK_MAX (64)
// Attention: These fixed DMA channels are temporarily workaround before we have a centralized DMA controller API to help alloc the channel dynamically
// Remove them when GDMA driver API is ready
#define SOC_GDMA_SHA_DMA_CHANNEL (3)