mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
gdma: update DMA soc data for esp32-s3
This commit is contained in:
@@ -54,7 +54,7 @@ static inline esp_err_t crypto_shared_gdma_new_channel(gdma_channel_alloc_config
|
||||
}
|
||||
|
||||
|
||||
#if SOC_GDMA_SUPPORT_EXTMEM
|
||||
#if SOC_GDMA_SUPPORT_PSRAM
|
||||
/* Initialize external memory specific DMA configs */
|
||||
static void esp_crypto_shared_dma_init_extmem(void)
|
||||
{
|
||||
@@ -64,13 +64,10 @@ static void esp_crypto_shared_dma_init_extmem(void)
|
||||
gdma_get_channel_id(tx_channel, &tx_ch_id);
|
||||
gdma_get_channel_id(rx_channel, &rx_ch_id);
|
||||
|
||||
/* An L2 FIFO bigger than 40 bytes is need when accessing external ram */
|
||||
gdma_ll_tx_extend_fifo_size_to(&GDMA, tx_ch_id, 40);
|
||||
gdma_ll_rx_extend_l2_fifo_size_to(&GDMA, rx_ch_id, 40);
|
||||
gdma_ll_tx_set_block_size_psram(&GDMA, tx_ch_id, GDMA_LL_OUT_EXT_MEM_BK_SIZE_16B);
|
||||
gdma_ll_rx_set_block_size_psram(&GDMA, rx_ch_id, GDMA_LL_OUT_EXT_MEM_BK_SIZE_16B);
|
||||
gdma_ll_tx_set_block_size_psram(&GDMA, tx_ch_id, GDMA_LL_EXT_MEM_BK_SIZE_16B);
|
||||
gdma_ll_rx_set_block_size_psram(&GDMA, rx_ch_id, GDMA_LL_EXT_MEM_BK_SIZE_16B);
|
||||
}
|
||||
#endif //SOC_GDMA_SUPPORT_EXTMEM
|
||||
#endif //SOC_GDMA_SUPPORT_PSRAM
|
||||
|
||||
/* Initialize GDMA module and channels */
|
||||
static esp_err_t crypto_shared_gdma_init(void)
|
||||
@@ -96,9 +93,9 @@ static esp_err_t crypto_shared_gdma_init(void)
|
||||
goto err;
|
||||
}
|
||||
|
||||
#if SOC_GDMA_SUPPORT_EXTMEM
|
||||
#if SOC_GDMA_SUPPORT_PSRAM
|
||||
esp_crypto_shared_dma_init_extmem();
|
||||
#endif //SOC_GDMA_SUPPORT_EXTMEM
|
||||
#endif //SOC_GDMA_SUPPORT_PSRAM
|
||||
|
||||
gdma_connect(rx_channel, GDMA_MAKE_TRIGGER(GDMA_TRIG_PERIPH_AES, 0));
|
||||
gdma_connect(tx_channel, GDMA_MAKE_TRIGGER(GDMA_TRIG_PERIPH_AES, 0));
|
||||
|
||||
Reference in New Issue
Block a user