zephyr/drivers/mm/Kconfig
Ederson de Souza 9c55195235 drivers/mm: Only remap unused RAM on Kconfig on Intel ADSP MTL
Remapping by default can confuse things that dynamically manage RAM,
such as newlib heap - since unused memory will be powered off by
default. So this patch shields this behaviour behind a non-default
Kconfig.

Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
2022-11-29 18:03:09 -05:00

48 lines
1.2 KiB
Plaintext

# Copyright (c) 2021 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
menuconfig MM_DRV
bool "Memory Management Drivers [EXPERIMENTAL]"
select EXPERIMENTAL
select KERNEL_VM_SUPPORT
help
Include Memory Management drivers in system config
if MM_DRV
config MM_DRV_PAGE_SIZE
hex "Memory Page Size"
default 0x1000
help
Size of memory pages.
config MM_DRV_INTEL_ADSP_TLB_REMAP_UNUSED_RAM
bool "Power off unused RAM"
help
Allows TLB driver to remap unused RAM - unused
being defined as memory ranging from linker script
defined "unused_l2_sram_start_marke" to end of RAM.
Note that unused memory will be powered off by
default. Disable this option if dynamically
managing memory, such as by usinga heap allocator.
config MM_DRV_INTEL_ADSP_MTL_TLB
bool "Intel Audio DSP TLB Driver for Meteor Lake"
default y
depends on DT_HAS_INTEL_ADSP_MTL_TLB_ENABLED
imply SYS_MEM_BLOCKS
help
Driver for the translation lookup buffer on
Intel Audio DSP hardware (Meteor Lake).
config MM_DRV_INTEL_ADSP_TLB
bool "Intel Audio DSP TLB Driver"
default y
depends on DT_HAS_INTEL_ADSP_TLB_ENABLED
help
Driver for the translation lookup buffer on
Intel Audio DSP hardware.
endif # MM_DRV