1
0
mirror of https://github.com/physwizz/a155-U-u1.git synced 2025-07-03 17:37:33 +00:00
Files
physwizz 99537be4e2 first
2024-03-11 06:53:12 +11:00

158 lines
5.7 KiB
Plaintext

# SPDX-License-Identifier: GPL-2.0
#
# Copyright (C) 2018 MediaTek Inc.
#
config MTK_PROT_MEM_SUPPORT
bool "MTK Protect Memory Support"
default y
depends on MTK_GZ_KREE
help
Enable the support of MediaTek protect memory driver.
This driver is in charge of protect memory region require/release
from SSMR and also the memory allocation/free requests from ION.
It is a proxy of MediaTek proprietary EL2 hypervisor for protect
memory management.
Say Y if you would like to enable this feature.
If unsure, say N.
config MTK_SECURE_MEM_SUPPORT
bool "MTK SVP SECURE Memory Support"
default y
depends on TRUSTONIC_TEE_SUPPORT || MTK_TEE_GP_SUPPORT || MTK_GZ_KREE && MTK_SVP_ON_MTEE_SUPPORT || TEEGRIS_TEE_SUPPORT
help
Enable the support of MediaTek SVP secure memory driver.
This driver is in charge of SVP secure memory region require/release
from SSMR and also the memory allocation/free requests from ION.
It is a proxy of TEE secure memory driver for SVP secure memory
management.
Say Y if you would like to enable this feature.
If unsure, say N.
config MTK_WFD_SMEM_SUPPORT
bool "MTK WFD SECURE Memory Support"
default y
depends on MTK_SECURE_MEM_SUPPORT
help
Enable the support of MediaTek WFD secure memory driver.
This driver is in charge of WFD secure memory region require/release
from SSMR and also the memory allocation/free requests from ION.
It is a proxy of TEE secure memory driver for WFD secure memory
management.
Say Y if you would like to enable this feature.
If unsure, say N.
config MTK_HAPP_MEM_SUPPORT
bool "MTK MTEE Hypervisor App Memory Support"
depends on MTK_GZ_KREE
help
Enable the support of MediaTek MTEE EL2 app memory driver.
This driver is in charge of EL2 app memory region require/release
from SSMR and also the memory allocation/free requests from ION.
It is a proxy of MediaTek proprietary EL2 hypervisor for isolated
memory management.
Say Y if you would like to enable this feature.
If unsure, say N.
config MTK_SDSP_MEM_SUPPORT
bool "MTK MTEE SDSP Firmware Memory Support"
depends on MTK_GZ_KREE
help
Enable the support of MediaTek MTEE SDSP firmware memory driver.
This driver is in charge of SDSP image memory region require/release
from SSMR and also the memory allocation/free requests from ION.
It is a proxy of MediaTek proprietary EL2 hypervisor for isolated
memory management.
Say Y if you would like to enable this feature.
If unsure, say N.
config MTK_SDSP_SHARED_MEM_SUPPORT
bool "MTK SDSP Shared Memory Support"
depends on MTK_GZ_KREE
help
Enable the support of MediaTek SDSP shared memory driver.
This driver is in charge of SDSP shared memory region require/release
from SSMR and also the memory allocation/free requests from ION.
It is a proxy of MediaTek proprietary EL2 hypervisor or TEE secure
memory driver for isolated memory management.
Say Y if you would like to enable this feature.
If unsure, say N.
choice
prompt "MTK VPU/MTEE/MTEE Shared Memory Support"
depends on MTK_SDSP_SHARED_MEM_SUPPORT
default MTK_SDSP_SHARED_PERM_VPU_MTEE_TEE
config MTK_SDSP_SHARED_PERM_VPU_TEE
bool "MTK SDSP Shared Memory Permssions for VPU/TEE"
help
Enable the support of SDSP shared memory buffer to be shared
between VPU hardware and TEE.
Select if you would like to enable this feature.
If unsure, say N.
config MTK_SDSP_SHARED_PERM_MTEE_TEE
bool "MTK SDSP Shared Memory Permssions for MTEE/TEE"
help
Enable the support of SDSP shared memory buffer to be shared
between MTEE and TEE.
Select if you would like to enable this feature.
If unsure, say N.
config MTK_SDSP_SHARED_PERM_VPU_MTEE_TEE
bool "MTK SDSP Shared Memory Permssions for VPU/MTEE/TEE"
help
Enable the support of SDSP shared memory buffer to be shared
between VPU hardware, MTEE and TEE.
Select if you would like to enable this feature.
If unsure, say N.
endchoice
config MTK_MTEE_MULTI_CHUNK_SUPPORT
bool "MTK MTEE Multiple Chunk Memory Support"
depends on MTK_HAPP_MEM_SUPPORT || MTK_SDSP_MEM_SUPPORT || \
MTK_SDSP_SHARED_PERM_MTEE_TEE || \
MTK_SDSP_SHARED_PERM_VPU_MTEE_TEE
help
Enable the support of MediaTek MTEE multiple chunks memory driver.
This driver is in charge of multi-chunk memory region require/release
from SSMR and also the memory allocation/free requests from ION.
It is a proxy of MTEE multi-chunk memory driver for isolated memory
management.
Say Y if you would like to enable this feature.
If unsure, say N.
config MTK_TRUSTED_MEMORY_SUBSYSTEM
tristate "MTK Trusted Memory Subsystem Support"
default m
depends on MTK_PROT_MEM_SUPPORT || MTK_SECURE_MEM_SUPPORT || \
MTK_MTEE_MULTI_CHUNK_SUPPORT || MTK_GZ_KREE
select CMA
select DMA_CMA
help
Enable the support of MediaTek trusted memory subsystem driver.
This driver provide a general subsystem layer for trusted peer memory
manager such as EL2 hypervisor or TEE. New type of trusted memory can
be registered to this subsystem easily.
Say Y if you would like to build it in kernel image.
Say M if you would like to build it as a kernel module.
If unsure, say N.
config TEST_MTK_TRUSTED_MEMORY
tristate "MTK Trusted Memory UT SUITE"
default n
depends on MTK_TRUSTED_MEMORY_SUBSYSTEM
help
This is a test module doing various nasty things like
open/close/alloc/free operation, It is useful for testing
trusted memory features.
config TMEM_MEMORY_POOL_ALLOCATOR
tristate "TMEM General Memory Pool Allocator"
depends on MTK_TRUSTED_MEMORY_SUBSYSTEM
help
Enable the support of kernel memory pool allocator in order
to replace mtee allocator of Geniezone with kernel memory
pool allocator. The goal is to support secure memory and
ARM Firmware Framework.