Skip to content

Commit e679ef4

Browse files
VitekSTcfriedt
authored andcommitted
hal_nxp: Factorise inclusion of fsl_inputmux
Create Kconfig variable NXP_INPUTMUX, which selects the fsl_inputmux driver. Imply the MCUX component symbol from it. Imply that variable from the NXP PINT, SmartDMA and LPC DMA drivers and from the mimxrt685s SoC. This needed to be done for the mimxrt700_evk/mimxrt798s/hifi4 domain, as the INPUTMUX peripheral handles IRQ assginments and its driver (fsl_inputmux) is used directly by the domain's soc.c. Instantiating the currently dependent drivers (for PINT and SmartDMA) isn's possible nor reasonable on the said target. Signed-off-by: Vit Stanicek <[email protected]>
1 parent 5274d66 commit e679ef4

File tree

7 files changed

+16
-2
lines changed

7 files changed

+16
-2
lines changed

drivers/dma/Kconfig.mcux_lpc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ config DMA_MCUX_LPC
55
bool "MCUX LPC DMAC driver"
66
default y
77
depends on DT_HAS_NXP_LPC_DMA_ENABLED
8+
select NXP_INPUTMUX
89
help
910
DMA driver for MCUX LPC MCUs.
1011

drivers/dma/Kconfig.mcux_smartdma

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ config DMA_MCUX_SMARTDMA
55
bool "MCUX SmartDMA Driver"
66
default y
77
depends on DT_HAS_NXP_SMARTDMA_ENABLED
8+
select NXP_INPUTMUX
89
help
910
MCUX SmartDMA driver.

drivers/interrupt_controller/Kconfig.nxp_pint

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ config NXP_PINT
55
bool "Pin interrupt and pattern match engine (PINT) for NXP MCUs"
66
default y
77
depends on DT_HAS_NXP_PINT_ENABLED
8+
select NXP_INPUTMUX
89
help
910
Enable PINT driver for NXP MCUs

drivers/misc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ source "drivers/misc/renesas_ra_external_interrupt/Kconfig"
2121
source "drivers/misc/renesas_rx_external_interrupt/Kconfig"
2222
source "drivers/misc/nxp_rtxxx_dsp_ctrl/Kconfig"
2323
source "drivers/misc/stm32n6_axisram/Kconfig"
24+
source "drivers/misc/nxp_inputmux/Kconfig"
2425

2526
endmenu

drivers/misc/nxp_inputmux/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright 2025 NXP
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config NXP_INPUTMUX
5+
bool "NXP INPUTMUX driver"
6+
default n
7+
depends on HAS_MCUX
8+
help
9+
Includes a HAL driver for the INPUTMUX peripheral on select NXP
10+
microcontrollers.

modules/hal_nxp/mcux/mcux-sdk-ng/drivers/drivers.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ endif()
3232
set_variable_ifdef(CONFIG_DMA_MCUX_LPC CONFIG_MCUX_COMPONENT_driver.lpc_dma)
3333
set_variable_ifdef(CONFIG_GPIO_MCUX_LPC CONFIG_MCUX_COMPONENT_driver.lpc_gpio)
3434
set_variable_ifdef(CONFIG_NXP_PINT CONFIG_MCUX_COMPONENT_driver.pint)
35-
set_variable_ifdef(CONFIG_NXP_PINT CONFIG_MCUX_COMPONENT_driver.inputmux)
36-
set_variable_ifdef(CONFIG_DMA_MCUX_SMARTDMA CONFIG_MCUX_COMPONENT_driver.inputmux)
35+
set_variable_ifdef(CONFIG_NXP_INPUTMUX CONFIG_MCUX_COMPONENT_driver.inputmux)
3736
set_variable_ifdef(CONFIG_I2C_MCUX_FLEXCOMM CONFIG_MCUX_COMPONENT_driver.flexcomm)
3837
set_variable_ifdef(CONFIG_I2C_MCUX_FLEXCOMM CONFIG_MCUX_COMPONENT_driver.flexcomm_i2c)
3938
set_variable_ifdef(CONFIG_I2S_MCUX_FLEXCOMM CONFIG_MCUX_COMPONENT_driver.flexcomm)

soc/nxp/imxrt/imxrt6xx/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ config SOC_MIMXRT685S_HIFI4
4141
select HAS_MCUX
4242
select HAS_MCUX_SYSCON
4343
select SOC_EARLY_INIT_HOOK
44+
select NXP_INPUTMUX
4445

4546
if SOC_SERIES_IMXRT6XX
4647

0 commit comments

Comments
 (0)