Skip to content

Commit f389f70

Browse files
galakMaureenHelm
authored andcommitted
drivers: ipm: Update drivers to use devicetree Kconfig symbol
Update IPM drivers to use DT_HAS_<compat>_ENABLED Kconfig symbol to expose the driver and enable it by default based on devicetree. We remove 'depend on' Kconfig for symbols that would be implied by the devicetree node existing. Signed-off-by: Kumar Gala <[email protected]>
1 parent d218fd9 commit f389f70

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

drivers/ipm/Kconfig

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@ if IPM
1010

1111
config IPM_MHU
1212
bool "IPM MHU driver"
13+
default y
14+
depends on DT_HAS_ARM_MHU_ENABLED
1315
help
1416
Driver for SSE 200 MHU (Message Handling Unit)
1517

1618
config IPM_NRFX
1719
bool "IPM NRF driver"
18-
depends on HAS_HW_NRF_IPC
20+
default y
21+
depends on DT_HAS_NORDIC_NRF_IPC_ENABLED
1922
select NRFX_IPC
2023
help
2124
Driver for Nordic nRF messaging unit, based
@@ -30,7 +33,8 @@ config IPM_NRF_SINGLE_INSTANCE
3033

3134
config ESP32_SOFT_IPM
3235
bool "ESP32 Software IPM driver"
33-
depends on ESP32_NETWORK_CORE || SOC_ESP32_NET
36+
default y
37+
depends on DT_HAS_ESPRESSIF_ESP32_IPM_ENABLED
3438
help
3539
Interprocessor driver for ESP32 when using AMP.
3640

drivers/ipm/Kconfig.imx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,21 @@
33

44
config IPM_MCUX
55
bool "MCUX IPM driver"
6-
depends on HAS_MCUX
6+
default y
7+
depends on DT_HAS_NXP_LPC_MAILBOX_ENABLED
78
help
89
Driver for MCUX mailbox
910

1011
config IPM_IMX
1112
bool "IMX IPM driver"
12-
depends on HAS_IMX_HAL
13+
default y
14+
depends on DT_HAS_NXP_IMX_MU_ENABLED
1315
help
1416
Driver for NXP i.MX messaging unit
1517

1618
config IPM_IMX_REV2
1719
bool "IMX IPM driver (rev 2)"
18-
depends on HAS_MCUX
20+
depends on DT_HAS_NXP_IMX_MU_ENABLED
1921
depends on !IPM_IMX
2022
help
2123
Rev 2 driver for NXP i.MX messaging unit (MCUX-based)

drivers/ipm/Kconfig.intel_adsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
config IPM_CAVS_IDC
55
bool "CAVS DSP Intra-DSP Communication (IDC) driver"
6-
depends on IPM && CAVS_ICTL
76
default y if MP_NUM_CPUS > 1 && SMP
7+
depends on CAVS_ICTL && DT_HAS_INTEL_ADSP_IDC_ENABLED
88
help
99
Driver for the Intra-DSP Communication (IDC) channel for
1010
cross SoC communications.

drivers/ipm/Kconfig.stm32

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
config IPM_STM32_IPCC
55
bool "STM32 IPCC controller"
6+
default y
7+
depends on DT_HAS_ST_STM32_IPCC_MAILBOX_ENABLED
68
select USE_STM32_LL_IPCC
79
help
810
Driver for stm32 IPCC mailboxes
@@ -17,7 +19,8 @@ config IPM_STM32_IPCC_PROCID
1719

1820
config IPM_STM32_HSEM
1921
bool "STM32 HSEM controller"
20-
depends on STM32H7_DUAL_CORE
22+
default y
23+
depends on DT_HAS_ST_STM32_HSEM_MAILBOX_ENABLED
2124
help
2225
Driver for stm32 HSEM mailbox
2326

0 commit comments

Comments
 (0)