spi_mcux_lpspi: Move to own subfolder

Move this driver to its own subfolder to organize it
since there will be new files added for this hardware.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2024-12-09 11:03:15 -06:00 committed by Benjamin Cabé
commit b8a6e0b457
5 changed files with 8 additions and 6 deletions

View file

@ -37,7 +37,6 @@ zephyr_library_sources_ifdef(CONFIG_SPI_MCUX_DSPI spi_mcux_dspi.c)
zephyr_library_sources_ifdef(CONFIG_SPI_MCUX_ECSPI spi_mcux_ecspi.c) zephyr_library_sources_ifdef(CONFIG_SPI_MCUX_ECSPI spi_mcux_ecspi.c)
zephyr_library_sources_ifdef(CONFIG_SPI_MCUX_FLEXCOMM spi_mcux_flexcomm.c) zephyr_library_sources_ifdef(CONFIG_SPI_MCUX_FLEXCOMM spi_mcux_flexcomm.c)
zephyr_library_sources_ifdef(CONFIG_SPI_MCUX_FLEXIO spi_mcux_flexio.c) zephyr_library_sources_ifdef(CONFIG_SPI_MCUX_FLEXIO spi_mcux_flexio.c)
zephyr_library_sources_ifdef(CONFIG_SPI_MCUX_LPSPI spi_mcux_lpspi.c)
zephyr_library_sources_ifdef(CONFIG_SPI_NPCX_SPIP spi_npcx_spip.c) zephyr_library_sources_ifdef(CONFIG_SPI_NPCX_SPIP spi_npcx_spip.c)
zephyr_library_sources_ifdef(CONFIG_SPI_NRFX_SPI spi_nrfx_spi.c spi_nrfx_common.c) zephyr_library_sources_ifdef(CONFIG_SPI_NRFX_SPI spi_nrfx_spi.c spi_nrfx_common.c)
zephyr_library_sources_ifdef(CONFIG_SPI_NRFX_SPIM spi_nrfx_spim.c spi_nrfx_common.c) zephyr_library_sources_ifdef(CONFIG_SPI_NRFX_SPIM spi_nrfx_spim.c spi_nrfx_common.c)
@ -65,3 +64,5 @@ zephyr_library_sources_ifdef(CONFIG_SPI_XEC_QMSPI_LDMA spi_xec_qmspi_ldma.c)
zephyr_library_sources_ifdef(CONFIG_SPI_XLNX_AXI_QUADSPI spi_xlnx_axi_quadspi.c) zephyr_library_sources_ifdef(CONFIG_SPI_XLNX_AXI_QUADSPI spi_xlnx_axi_quadspi.c)
zephyr_library_sources_ifdef(CONFIG_SPI_XMC4XXX spi_xmc4xxx.c) zephyr_library_sources_ifdef(CONFIG_SPI_XMC4XXX spi_xmc4xxx.c)
# zephyr-keep-sorted-stop # zephyr-keep-sorted-stop
add_subdirectory(spi_nxp_lpspi)

View file

@ -97,7 +97,6 @@ source "drivers/spi/Kconfig.mcux_dspi"
source "drivers/spi/Kconfig.mcux_ecspi" source "drivers/spi/Kconfig.mcux_ecspi"
source "drivers/spi/Kconfig.mcux_flexcomm" source "drivers/spi/Kconfig.mcux_flexcomm"
source "drivers/spi/Kconfig.mcux_flexio" source "drivers/spi/Kconfig.mcux_flexio"
source "drivers/spi/Kconfig.mcux_lpspi"
source "drivers/spi/Kconfig.npcx" source "drivers/spi/Kconfig.npcx"
source "drivers/spi/Kconfig.nrfx" source "drivers/spi/Kconfig.nrfx"
source "drivers/spi/Kconfig.numaker" source "drivers/spi/Kconfig.numaker"
@ -122,6 +121,7 @@ source "drivers/spi/Kconfig.test"
source "drivers/spi/Kconfig.xec_qmspi" source "drivers/spi/Kconfig.xec_qmspi"
source "drivers/spi/Kconfig.xlnx" source "drivers/spi/Kconfig.xlnx"
source "drivers/spi/Kconfig.xmc4xxx" source "drivers/spi/Kconfig.xmc4xxx"
source "drivers/spi/spi_nxp_lpspi/Kconfig"
# zephyr-keep-sorted-stop # zephyr-keep-sorted-stop
endif # SPI endif # SPI

View file

@ -0,0 +1,3 @@
# Copyright 2024 NXP
zephyr_library_sources_ifdef(CONFIG_SPI_MCUX_LPSPI spi_mcux_lpspi.c)

View file

@ -1,6 +1,4 @@
# MCUXpresso SDK SPI # Copyright 2018, 2024 NXP
# Copyright (c) 2018, NXP
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
config SPI_MCUX_LPSPI config SPI_MCUX_LPSPI

View file

@ -18,7 +18,7 @@ LOG_MODULE_REGISTER(spi_mcux_lpspi, CONFIG_SPI_LOG_LEVEL);
#include <zephyr/drivers/spi/rtio.h> #include <zephyr/drivers/spi/rtio.h>
#endif #endif
#include "spi_context.h" #include "../spi_context.h"
#if CONFIG_NXP_LP_FLEXCOMM #if CONFIG_NXP_LP_FLEXCOMM
#include <zephyr/drivers/mfd/nxp_lp_flexcomm.h> #include <zephyr/drivers/mfd/nxp_lp_flexcomm.h>