Skip to content

Commit

Permalink
drivers: spi: smartbond: Add async API support
Browse files Browse the repository at this point in the history
This commit should deal with adding support
for asynchronous operations. It also adds
support for DMA acceleration via a Kconfig
variable (enaled by default as DMA should
be considered scales faster than the
interrupt-driven approach).

Signed-off-by: Ioannis Karachalios <[email protected]>
  • Loading branch information
ioannis-karachalios committed Jun 4, 2024
1 parent 1aa3c29 commit 294e3ef
Show file tree
Hide file tree
Showing 3 changed files with 901 additions and 12 deletions.
18 changes: 18 additions & 0 deletions drivers/spi/Kconfig.smartbond
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,21 @@ config SPI_SMARTBOND
depends on DT_HAS_RENESAS_SMARTBOND_SPI_ENABLED
help
Enables SPI driver for Renesas SmartBond(tm) DA1469x series MCU.

config SPI_SMARTBOND_DMA
bool "Renesas Smartbond(tm) SPI driver DMA"
default y
depends on SPI_ASYNC
depends on SPI_SMARTBOND
select DMA
help
Enables using the DMA engine for SPI operations instead
of using the interrupt-driven mode in asynchronous
requested.

if SPI_SMARTBOND_DMA

config SPI_INIT_PRIORITY
default 40

endif
Loading

0 comments on commit 294e3ef

Please sign in to comment.