risc-v/esp32c3: Add support for DMA transfers on SPI driver

This commit is contained in:
Gustavo Henrique Nihei
2021-04-29 19:16:17 -03:00
committed by Abdelatif Guettouche
parent 132ffdd28d
commit 26a5cb2094
2 changed files with 405 additions and 29 deletions
+23
View File
@@ -323,6 +323,29 @@ config ESP32C3_SPI_UDCS
if ESP32C3_SPI2
config ESP32C3_SPI2_DMA
bool "SPI2 use GDMA"
default n
depends on ESP32C3_DMA
---help---
Enable support for transfers using the GDMA engine.
config ESP32C3_SPI2_DMADESC_NUM
int "SPI2 Master GDMA maximum number of descriptors"
default 2
depends on ESP32C3_SPI2_DMA
---help---
Configure the maximum number of out-link/in-link descriptors to
be chained for a GDMA transfer.
config ESP32C3_SPI2_DMATHRESHOLD
int "SPI2 GDMA threshold"
default 64
depends on ESP32C3_SPI2_DMA
---help---
When SPI GDMA is enabled, GDMA transfers whose size are below the
defined threshold will be performed by polling logic.
config ESP32C3_SPI2_CSPIN
int "SPI2 CS Pin"
default 10
File diff suppressed because it is too large Load Diff