summaryrefslogtreecommitdiff
authorPengguang Zhu <pengguang.zhu@amlogic.com>2018-01-10 06:39:33 (GMT)
committer Xindong Xu <xindong.xu@amlogic.com>2018-02-01 04:50:26 (GMT)
commitda4d8c49ae405bf182fd4118f42fb18a45b144d4 (patch)
tree3d283775c4fe662e6d4c1892518464b1c0a75f5b
parent7092268068d8f6a0cae2ab8d03a974d5e740ede4 (diff)
downloadcommon-da4d8c49ae405bf182fd4118f42fb18a45b144d4.zip
common-da4d8c49ae405bf182fd4118f42fb18a45b144d4.tar.gz
common-da4d8c49ae405bf182fd4118f42fb18a45b144d4.tar.bz2
tee: firmware: add new parameter vdec type
PD#159071: add new parameter vdec type Change-Id: Ib3d49d2bbc56a36844d0c53a7c8a46d30543ebdc Signed-off-by: Pengguang Zhu <pengguang.zhu@amlogic.com>
Diffstat
-rw-r--r--drivers/amlogic/tee/tee.c8
-rw-r--r--include/linux/amlogic/tee.h2
2 files changed, 7 insertions, 3 deletions
diff --git a/drivers/amlogic/tee/tee.c b/drivers/amlogic/tee/tee.c
index 8ffd868..2773288 100644
--- a/drivers/amlogic/tee/tee.c
+++ b/drivers/amlogic/tee/tee.c
@@ -131,12 +131,16 @@ static CLASS_ATTR(os_version, 0644, tee_os_version_show,
static CLASS_ATTR(api_version, 0644, tee_api_version_show,
NULL);
-int tee_load_video_fw(uint32_t index)
+/*
+ * index: firmware index
+ * vdec: vdec type(0: compatible, 1: legency vdec, 2: HEVC vdec)
+ */
+int tee_load_video_fw(uint32_t index, uint32_t vdec)
{
struct arm_smccc_res res;
arm_smccc_smc(TEE_SMC_LOAD_VIDEO_FW,
- index, 0, 0, 0, 0, 0, 0, &res);
+ index, vdec, 0, 0, 0, 0, 0, &res);
return res.a0;
}
diff --git a/include/linux/amlogic/tee.h b/include/linux/amlogic/tee.h
index 45e80e4..46a518c 100644
--- a/include/linux/amlogic/tee.h
+++ b/include/linux/amlogic/tee.h
@@ -20,6 +20,6 @@
extern bool tee_enabled(void);
extern int is_secload_get(void);
-extern int tee_load_video_fw(uint32_t index);
+extern int tee_load_video_fw(uint32_t index, uint32_t vdec);
#endif /* __TEE_H__ */