mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
tee: add tee load dynamic control
PD#159071: tee load dynamic control using disable_flag using disable flag to disable tee load Change-Id: I9c138e3830412ee04dcd82812b1a00cbed1ab940 Signed-off-by: Yvonne Chen <yvonne.chen@amlogic.com>
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
#define TEE_MSG_UID_1 0xe7f811e3
|
||||
#define TEE_MSG_UID_2 0xaf630002
|
||||
#define TEE_MSG_UID_3 0xa5d5c51b
|
||||
|
||||
static int disable_flag;
|
||||
#define TEE_SMC_FUNCID_CALLS_REVISION 0xFF03
|
||||
#define TEE_SMC_CALLS_REVISION \
|
||||
ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, ARM_SMCCC_SMC_32, \
|
||||
@@ -149,7 +149,8 @@ EXPORT_SYMBOL(tee_load_video_fw);
|
||||
bool tee_enabled(void)
|
||||
{
|
||||
struct arm_smccc_res res;
|
||||
|
||||
if (disable_flag == 1)
|
||||
return false;
|
||||
/*return false;*/ /*disable tee load temporary*/
|
||||
arm_smccc_smc(TEE_SMC_CALLS_UID, 0, 0, 0, 0, 0, 0, 0, &res);
|
||||
|
||||
@@ -190,6 +191,8 @@ static void __exit aml_tee_modexit(void)
|
||||
{
|
||||
class_destroy(tee_sys_class);
|
||||
}
|
||||
module_param(disable_flag, uint, 0664);
|
||||
MODULE_PARM_DESC(disable_flag, "\n tee firmload disable_flag flag\n");
|
||||
|
||||
module_exit(aml_tee_modexit);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user