drivers: dai: Use dt_compat_enabled for Intel SSP driver default

Enables the Intel SSP driver by default when the DAI driver class is
enabled (CONFIG_DAI=y) and a compatible devicetree node
("intel,ssp-dai") is enabled.

Signed-off-by: Maureen Helm <maureen.helm@intel.com>
This commit is contained in:
Maureen Helm 2022-04-25 11:29:28 -05:00 committed by Carles Cufí
commit f4a0854481
2 changed files with 3 additions and 1 deletions

View file

@ -3,8 +3,11 @@
# Copyright (c) 2022 Intel Corporation # Copyright (c) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
DT_COMPAT_DAI_INTEL_SSP := intel,ssp-dai
config DAI_INTEL_SSP config DAI_INTEL_SSP
bool "Intel I2S (SSP) Bus Driver for Dai interface" bool "Intel I2S (SSP) Bus Driver for Dai interface"
default $(dt_compat_enabled,$(DT_COMPAT_DAI_INTEL_SSP))
select DMA select DMA
help help
Enable Inter Sound (I2S) bus driver based on Enable Inter Sound (I2S) bus driver based on

View file

@ -1,6 +1,5 @@
CONFIG_ZTEST=y CONFIG_ZTEST=y
CONFIG_DAI=y CONFIG_DAI=y
CONFIG_DAI_INTEL_SSP=y
CONFIG_INTEL_MN=y CONFIG_INTEL_MN=y
CONFIG_DMA_DW_HOST_MASK=1 CONFIG_DMA_DW_HOST_MASK=1
CONFIG_HEAP_MEM_POOL_SIZE=512 CONFIG_HEAP_MEM_POOL_SIZE=512