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 <kumar.gala@intel.com>
This commit is contained in:
Kumar Gala 2022-10-31 12:33:09 -05:00 committed by Maureen Helm
parent d218fd9843
commit f389f702cb
4 changed files with 16 additions and 7 deletions

View file

@ -10,12 +10,15 @@ if IPM
config IPM_MHU
bool "IPM MHU driver"
default y
depends on DT_HAS_ARM_MHU_ENABLED
help
Driver for SSE 200 MHU (Message Handling Unit)
config IPM_NRFX
bool "IPM NRF driver"
depends on HAS_HW_NRF_IPC
default y
depends on DT_HAS_NORDIC_NRF_IPC_ENABLED
select NRFX_IPC
help
Driver for Nordic nRF messaging unit, based
@ -30,7 +33,8 @@ config IPM_NRF_SINGLE_INSTANCE
config ESP32_SOFT_IPM
bool "ESP32 Software IPM driver"
depends on ESP32_NETWORK_CORE || SOC_ESP32_NET
default y
depends on DT_HAS_ESPRESSIF_ESP32_IPM_ENABLED
help
Interprocessor driver for ESP32 when using AMP.

View file

@ -3,19 +3,21 @@
config IPM_MCUX
bool "MCUX IPM driver"
depends on HAS_MCUX
default y
depends on DT_HAS_NXP_LPC_MAILBOX_ENABLED
help
Driver for MCUX mailbox
config IPM_IMX
bool "IMX IPM driver"
depends on HAS_IMX_HAL
default y
depends on DT_HAS_NXP_IMX_MU_ENABLED
help
Driver for NXP i.MX messaging unit
config IPM_IMX_REV2
bool "IMX IPM driver (rev 2)"
depends on HAS_MCUX
depends on DT_HAS_NXP_IMX_MU_ENABLED
depends on !IPM_IMX
help
Rev 2 driver for NXP i.MX messaging unit (MCUX-based)

View file

@ -3,8 +3,8 @@
config IPM_CAVS_IDC
bool "CAVS DSP Intra-DSP Communication (IDC) driver"
depends on IPM && CAVS_ICTL
default y if MP_NUM_CPUS > 1 && SMP
depends on CAVS_ICTL && DT_HAS_INTEL_ADSP_IDC_ENABLED
help
Driver for the Intra-DSP Communication (IDC) channel for
cross SoC communications.

View file

@ -3,6 +3,8 @@
config IPM_STM32_IPCC
bool "STM32 IPCC controller"
default y
depends on DT_HAS_ST_STM32_IPCC_MAILBOX_ENABLED
select USE_STM32_LL_IPCC
help
Driver for stm32 IPCC mailboxes
@ -17,7 +19,8 @@ config IPM_STM32_IPCC_PROCID
config IPM_STM32_HSEM
bool "STM32 HSEM controller"
depends on STM32H7_DUAL_CORE
default y
depends on DT_HAS_ST_STM32_HSEM_MAILBOX_ENABLED
help
Driver for stm32 HSEM mailbox