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 <sahil.malhotra@nxp.com>
  • Loading branch information
sahilnxp committed Jun 6, 2018
1 parent f5d5641 commit b64d471
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 @@ -12,3 +12,11 @@ config OPTEE_BENCHMARK
help
This enables benchmarking feature in 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 @@ -33,7 +33,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 b64d471

Please sign in to comment.