Skip to content

Commit 9dc7449

Browse files
committed
hal_nxp: Include LP Flexcomm driver using the right Kconfig
LPFlexcomm driver should be included when CONFIG_NXP_LP_FLEXCOMM is enabled and not be dependent on I2C, SPI or UART Signed-off-by: Mahesh Mahadevan <[email protected]>
1 parent 3fc5f81 commit 9dc7449

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mcux/hal_nxp.cmake

+1-3
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ include_driver_ifdef(CONFIG_ETH_NXP_IMX_NETC netc driver_netc)
182182
include_driver_ifdef(CONFIG_HAS_MCUX_SMC smc driver_smc)
183183
include_driver_ifdef(CONFIG_I2C_MCUX i2c driver_i2c)
184184
include_driver_ifdef(CONFIG_I2C_NXP_II2C ii2c driver_ii2c)
185+
include_driver_ifdef(CONFIG_NXP_LP_FLEXCOMM lpflexcomm driver_lpflexcomm)
185186
if (CONFIG_NXP_LP_FLEXCOMM)
186-
include_driver_ifdef(CONFIG_I2C_MCUX_LPI2C lpflexcomm driver_lpflexcomm)
187187
include_driver_ifdef(CONFIG_I2C_MCUX_LPI2C lpflexcomm/lpi2c driver_lpi2c)
188188
else()
189189
include_driver_ifdef(CONFIG_I2C_MCUX_LPI2C lpi2c driver_lpi2c)
@@ -198,7 +198,6 @@ include_driver_ifdef(CONFIG_RTC_MCUX rtc driver_rtc)
198198
include_driver_ifdef(CONFIG_SPI_MCUX_DSPI dspi driver_dspi)
199199
include_driver_ifdef(CONFIG_SPI_MCUX_ECSPI ecspi driver_ecspi)
200200
if (CONFIG_NXP_LP_FLEXCOMM)
201-
include_driver_ifdef(CONFIG_SPI_MCUX_LPSPI lpflexcomm driver_lpflexcomm)
202201
include_driver_ifdef(CONFIG_SPI_MCUX_LPSPI lpflexcomm/lpspi driver_lpspi)
203202
else()
204203
include_driver_ifdef(CONFIG_SPI_MCUX_LPSPI lpspi driver_lpspi)
@@ -209,7 +208,6 @@ include_driver_ifdef(CONFIG_MIPI_DBI_NXP_FLEXIO_LCDIF flexio/mculcd driver_flexi
209208
include_driver_ifdef(CONFIG_UART_MCUX uart driver_uart)
210209
include_driver_ifdef(CONFIG_UART_MCUX_LPSCI lpsci driver_lpsci)
211210
if (CONFIG_NXP_LP_FLEXCOMM)
212-
include_driver_ifdef(CONFIG_UART_MCUX_LPUART lpflexcomm driver_lpflexcomm)
213211
include_driver_ifdef(CONFIG_UART_MCUX_LPUART lpflexcomm/lpuart driver_lpuart)
214212
else()
215213
include_driver_ifdef(CONFIG_UART_MCUX_LPUART lpuart driver_lpuart)

0 commit comments

Comments
 (0)