summaryrefslogtreecommitdiff
path: root/chip/mt_scp
diff options
context:
space:
mode:
authorYunfei Dong <yunfei.dong@mediatek.com>2019-06-05 09:20:59 +0800
committerCommit Bot <commit-bot@chromium.org>2019-08-26 15:37:43 +0000
commit94528b5d7141e88dd295bde47a9caa80022256e0 (patch)
tree999b305963a8a0f42c606fbedf9f5249cee4c7bc /chip/mt_scp
parent555a4470c7e6373cb6d5397ea5e9278317bcb008 (diff)
downloadchrome-ec-94528b5d7141e88dd295bde47a9caa80022256e0.tar.gz
mtk_vcodec: Add the service for h264 decoder
Fix the service to support h264 decoder. BRANCH=none BUG=b:123551776 TEST=build kukui_scp pass. Change-Id: Iccd6389a40239a6d6791543eeb522cc3e5fc3991 Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1644186 Commit-Queue: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Yilun Lin <yllin@chromium.org>
Diffstat (limited to 'chip/mt_scp')
-rw-r--r--chip/mt_scp/ipi.c2
-rw-r--r--chip/mt_scp/ipi_chip.h7
2 files changed, 8 insertions, 1 deletions
diff --git a/chip/mt_scp/ipi.c b/chip/mt_scp/ipi.c
index 544ebb5d75..c8c0c1c74f 100644
--- a/chip/mt_scp/ipi.c
+++ b/chip/mt_scp/ipi.c
@@ -205,7 +205,7 @@ void ipi_inform_ap(void)
scp_run.signaled = 1;
strncpy(scp_run.fw_ver, system_get_version(SYSTEM_IMAGE_RW),
SCP_FW_VERSION_LEN);
- scp_run.dec_capability = 0;
+ scp_run.dec_capability = VCODEC_CAPABILITY_4K_DISABLED;
scp_run.enc_capability = 0;
ret = ipi_send(IPI_SCP_INIT, (void *)&scp_run, sizeof(scp_run), 1);
diff --git a/chip/mt_scp/ipi_chip.h b/chip/mt_scp/ipi_chip.h
index b4178ae7e0..6b9580e112 100644
--- a/chip/mt_scp/ipi_chip.h
+++ b/chip/mt_scp/ipi_chip.h
@@ -18,6 +18,13 @@
*/
#define SCP_FW_VERSION_LEN 32
+/*
+ * Video decoder supported capability:
+ * BIT(4): 0 enable 4K
+ * 1 disable 4K
+ */
+#define VCODEC_CAPABILITY_4K_DISABLED BIT(4)
+
#ifndef IPI_SCP_INIT
#error If CONFIG_IPI is enabled, IPI_SCP_INIT must be defined.
#endif