Skip to content

Commit

Permalink
spi_nxp_lpspi: Fix Kconfig description
Browse files Browse the repository at this point in the history
The Kconfig description is wrong, this driver can be used with or
without RTIO. Also, rename the kconfig to be less confusing, as _NORMAL
is meaningless, this is the CPU/interrupt based driver.

Signed-off-by: Declan Snyder <[email protected]>
  • Loading branch information
decsny authored and kartben committed Feb 20, 2025
1 parent 2a35835 commit a718b84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/spi/spi_nxp_lpspi/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright 2024 NXP

zephyr_library_sources_ifdef(CONFIG_SPI_MCUX_LPSPI spi_nxp_lpspi_common.c)
zephyr_library_sources_ifdef(CONFIG_SPI_MCUX_LPSPI_NORMAL spi_nxp_lpspi.c)
zephyr_library_sources_ifdef(CONFIG_SPI_MCUX_LPSPI_CPU spi_nxp_lpspi.c)
zephyr_library_sources_ifdef(CONFIG_SPI_MCUX_LPSPI_DMA spi_nxp_lpspi_dma.c)
4 changes: 2 additions & 2 deletions drivers/spi/spi_nxp_lpspi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ config SPI_MCUX_LPSPI_DMA
Enable the SPI DMA mode for SPI instances
that enable dma channels in their device tree node.

config SPI_MCUX_LPSPI_NORMAL
config SPI_MCUX_LPSPI_CPU
bool "NXP MCUX LPSPI driver"
default y
depends on $(dt_compat_any_not_has_prop,$(DT_COMPAT_NXP_LPSPI),dmas) || !SPI_MCUX_LPSPI_DMA
help
Use the traditional (non-RTIO) SPI driver for NXP LPSPI.
Use the CPU-based LPSPI driver.

endif # SPI_MCUX_LPSPI

0 comments on commit a718b84

Please sign in to comment.