From 5769dffc01359033a52f595d4efdc83c2dfac9e0 Mon Sep 17 00:00:00 2001 From: Maureen Helm Date: Mon, 25 Apr 2022 11:56:51 -0500 Subject: [PATCH] drivers: mm: Use dt_compat_enabled for Intel ADSP TLB driver default Enables the Intel TLB driver by default when the MM driver class is enabled (CONFIG_MM_DRV=y) and a compatible devicetree node ("intel,adsp-tlb") is enabled. Signed-off-by: Maureen Helm --- drivers/mm/Kconfig | 3 +++ tests/boards/intel_adsp/mm/prj.conf | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mm/Kconfig b/drivers/mm/Kconfig index 041fefc9277..cdf9c421ade 100644 --- a/drivers/mm/Kconfig +++ b/drivers/mm/Kconfig @@ -17,8 +17,11 @@ config MM_DRV_PAGE_SIZE help Size of memory pages. +DT_COMPAT_MM_INTEL_ADSP_TLB := intel,adsp-tlb + config MM_DRV_INTEL_ADSP_TLB bool "Intel Audio DSP TLB Driver" + default $(dt_compat_enabled,$(DT_COMPAT_MM_INTEL_ADSP_TLB)) depends on SOC_FAMILY_INTEL_ADSP help Driver for the translation lookup buffer on diff --git a/tests/boards/intel_adsp/mm/prj.conf b/tests/boards/intel_adsp/mm/prj.conf index 200085e423b..06a1545dad7 100644 --- a/tests/boards/intel_adsp/mm/prj.conf +++ b/tests/boards/intel_adsp/mm/prj.conf @@ -1,3 +1,2 @@ CONFIG_ZTEST=y CONFIG_MM_DRV=y -CONFIG_MM_DRV_INTEL_ADSP_TLB=y