drivers: spi: Add support for Apollo3 SoCs SPI

This commit adds support for the SPI which
can be found in Apollo3 SoCs, it can work in
both DMA and non-DMA modes

Signed-off-by: Hao Luo <hluo@ambiq.com>
This commit is contained in:
Hao Luo 2024-01-12 11:30:11 +08:00 committed by Henrik Brix Andersen
commit 524ea22952
8 changed files with 429 additions and 67 deletions

View file

@ -15,6 +15,19 @@ config SPI_AMBIQ
help
Enable driver for Ambiq SPI.
config SPI_AMBIQ_DMA
bool "AMBIQ APOLLO SPI DMA Support"
depends on SPI_AMBIQ
help
Enable DMA for Ambiq SPI.
config SPI_DMA_TCB_BUFFER_SIZE
int "DMA Transfer Control Buffer size in words."
default 1024
depends on SPI_AMBIQ_DMA
help
DMA Transfer Control Buffer size in words
config MSPI_AMBIQ
bool "AMBIQ MSPI driver"
default y