Skip to content

Commit

Permalink
tee: optee: making OPTEE_SHM_NUM_PRIV_PAGES configurable via Kconfig
Browse files Browse the repository at this point in the history
This change adds KCONFIG option to set number of pages out of
whole shared memory to be used for OP-TEE driver private data
structures.

Signed-off-by: Sahil Malhotra <[email protected]>
[jw: fixing trivial merge conflict]
Signed-off-by: Jens Wiklander <[email protected]>
  • Loading branch information
sahilnxp authored and al1img committed May 5, 2021
1 parent 7f7e529 commit 4d4eb31
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions drivers/tee/optee/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@ config OPTEE
help
This implements the OP-TEE Trusted Execution Environment (TEE)
driver.

config OPTEE_SHM_NUM_PRIV_PAGES
int "Private Shared Memory Pages"
default 1
depends on OPTEE
help
This sets the number of private shared memory pages to be
used by OP-TEE TEE driver.
2 changes: 1 addition & 1 deletion drivers/tee/optee/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#define DRIVER_NAME "optee"

#define OPTEE_SHM_NUM_PRIV_PAGES 1
#define OPTEE_SHM_NUM_PRIV_PAGES CONFIG_OPTEE_SHM_NUM_PRIV_PAGES

/**
* optee_from_msg_param() - convert from OPTEE_MSG parameters to
Expand Down

0 comments on commit 4d4eb31

Please sign in to comment.