Skip to content

Commit e770c8d

Browse files
finikorgnashif
authored andcommitted
drivers: ipm: Cleanup IPM Kconfig
Make all option be hidden behind IPM menu Signed-off-by: Andrei Emeltchenko <[email protected]>
1 parent 0186ead commit e770c8d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

drivers/ipm/Kconfig

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@ menuconfig IPM
66
Include interrupt-based inter-processor mailboxes
77
drivers in system configuration
88

9+
if IPM
10+
911
config IPM_MCUX
1012
bool "MCUX IPM driver"
11-
depends on IPM && HAS_MCUX
13+
depends on HAS_MCUX
1214
help
1315
Driver for MCUX mailbox
1416

1517
config IPM_IMX
1618
bool "IMX IPM driver"
17-
depends on IPM && HAS_IMX_HAL
19+
depends on HAS_IMX_HAL
1820
help
1921
Driver for NXP i.MX messaging unit
2022

@@ -63,13 +65,12 @@ config IPM_IMX_MAX_ID_VAL
6365

6466
config IPM_MHU
6567
bool "IPM MHU driver"
66-
depends on IPM
6768
help
6869
Driver for SSE 200 MHU (Message Handling Unit)
6970

7071
config IPM_NRFX
7172
bool "IPM NRF driver"
72-
depends on IPM && HAS_HW_NRF_IPC
73+
depends on HAS_HW_NRF_IPC
7374
select NRFX_IPC
7475
help
7576
Driver for Nordic nRF messaging unit, based
@@ -86,7 +87,6 @@ source "drivers/ipm/Kconfig.nrfx"
8687

8788
config IPM_STM32_IPCC
8889
bool "STM32 IPCC controller"
89-
depends on IPM
9090
select USE_STM32_LL_IPCC
9191
help
9292
Driver for stm32 IPCC mailboxes
@@ -102,3 +102,5 @@ config IPM_STM32_IPCC_PROCID
102102
module = IPM
103103
module-str = ipm
104104
source "subsys/logging/Kconfig.template.log_config"
105+
106+
endif #IPM

0 commit comments

Comments
 (0)