Skip to content

Commit

Permalink
soc: nxp: Select the MFD Kconfig when LPFlexcomm is enabled
Browse files Browse the repository at this point in the history
LPFlexcomm is a MFD device hence select this Kconfig whenever
it is enabled.
Remove the selection from the individual driver Kconfig files.

Signed-off-by: Mahesh Mahadevan <[email protected]>
  • Loading branch information
mmahadevan108 authored and nashif committed Apr 3, 2024
1 parent 8f9c282 commit a9fea59
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion drivers/serial/Kconfig.mcux_lpuart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ config UART_MCUX_LPUART
select SERIAL_SUPPORT_ASYNC
select DMA if UART_ASYNC_API
select PINCTRL
select MFD if DT_HAS_NXP_LP_FLEXCOMM_ENABLED
help
Enable the MCUX LPUART driver.

Expand Down
1 change: 0 additions & 1 deletion drivers/spi/Kconfig.mcux_lpspi
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ config SPI_MCUX_LPSPI
depends on DT_HAS_NXP_IMX_LPSPI_ENABLED
depends on CLOCK_CONTROL
select PINCTRL
select MFD if DT_HAS_NXP_LP_FLEXCOMM_ENABLED
help
Enable support for mcux spi driver.

Expand Down
4 changes: 4 additions & 0 deletions soc/nxp/mcx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,8 @@ config FLASH_MCUX_FLEXSPI_XIP_MEM

endif # FLASH_MCUX_FLEXSPI_XIP

config MFD
default y
depends on DT_HAS_NXP_LP_FLEXCOMM_ENABLED

endif # SOC_FAMILY_NXP_MCX

0 comments on commit a9fea59

Please sign in to comment.