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 <maureen.helm@intel.com>
This commit is contained in:
Maureen Helm 2022-04-25 11:56:51 -05:00 committed by Marti Bolivar
commit 5769dffc01
2 changed files with 3 additions and 1 deletions

View file

@ -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