1# Copyright (c) 2021 Intel Corporation
2#
3# SPDX-License-Identifier: Apache-2.0
4
5menuconfig MM_DRV
6	bool "Memory Management drivers [EXPERIMENTAL]"
7	select EXPERIMENTAL
8	select KERNEL_VM_SUPPORT
9	help
10	  Include Memory Management drivers in system config
11
12if MM_DRV
13
14config MM_DRV_PAGE_SIZE
15	hex "Memory Page Size"
16	default 0x1000
17	help
18	  Size of memory pages.
19
20config MM_DRV_INTEL_ADSP_TLB_REMAP_UNUSED_RAM
21	bool "Power off unused RAM"
22	help
23	  Allows TLB driver to remap unused RAM - unused
24	  being defined as memory ranging from linker script
25	  defined "unused_l2_sram_start_marke" to end of RAM.
26	  Note that unused memory will be powered off by
27	  default. Disable this option if dynamically
28	  managing memory, such as by usinga heap allocator.
29
30config MM_DRV_INTEL_ADSP_MTL_TLB
31	bool "Intel Audio DSP TLB Driver for Meteor Lake"
32	default y
33	depends on DT_HAS_INTEL_ADSP_MTL_TLB_ENABLED
34	imply SYS_MEM_BLOCKS
35	help
36	  Driver for the translation lookup buffer on
37	  Intel Audio DSP hardware (Meteor Lake).
38
39config MM_DRV_INTEL_ADSP_TLB
40	bool "Intel Audio DSP TLB Driver"
41	default y
42	depends on DT_HAS_INTEL_ADSP_TLB_ENABLED
43	help
44	  Driver for the translation lookup buffer on
45	  Intel Audio DSP hardware.
46
47config EXTERNAL_ADDRESS_TRANSLATION
48	bool "Support for external address translation modules"
49	depends on !MMU
50	help
51	  This config is intended to support an external address
52	  translation module if required for an SoC. Uses the
53	  sys_mm_drv_page_phys_get() function from the system_mm API.
54
55if EXTERNAL_ADDRESS_TRANSLATION
56
57config MM_TI_RAT
58	bool "Texas Instruments RAT module"
59	depends on EXTERNAL_ADDRESS_TRANSLATION
60	help
61	  Enables Region based address translation support
62	  functions specific to TI SoCs.
63
64endif # EXTERNAL_ADDRESS_TRANSLATION
65
66endif # MM_DRV
67