diff options
author | Yilun Lin <yllin@google.com> | 2018-11-21 14:22:42 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-12-29 05:45:28 -0800 |
commit | c7804fd61b3bacf29cb4f1da9483860435ecac20 (patch) | |
tree | 4c47beee640868f19107a057d3df1a3d21732791 /board/kukui_scp/board.h | |
parent | 02983ae05319d71bf8b29e063bf40acfd53b1e02 (diff) | |
download | chrome-ec-c7804fd61b3bacf29cb4f1da9483860435ecac20.tar.gz |
mt_scp: Support inter-process interrupt/communication (IPI).
This CL enables the IPI/IPC functions in mt_scp on MTK SOC.
TEST=Run ec.RW.bin on kukui, and see EC version string in AP console:
remoteproc remoteproc0: powering up scp
remoteproc remoteproc0: Booting fw image scp.img, size 29800
mtk-scp 10500000.scp: scp is ready. kukui_scp_v2.0.519+164255084
BRANCH=None
BUG=b:117917141, b:120172001, b:120953723
Change-Id: I2a43aee13141535bf71f839cf9e6cc0460b65844
Signed-off-by: Yilun Lin <yllin@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1351924
Commit-Ready: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Yilun Lin <yllin@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'board/kukui_scp/board.h')
-rw-r--r-- | board/kukui_scp/board.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/board/kukui_scp/board.h b/board/kukui_scp/board.h index db456f9d9b..2dc63bc2aa 100644 --- a/board/kukui_scp/board.h +++ b/board/kukui_scp/board.h @@ -12,6 +12,20 @@ #undef CONFIG_LID_SWITCH #undef CONFIG_FW_INCLUDE_RO +/* IPI configs */ +#define CONFIG_IPI + +/* IPI ID should be in sync across kernel and EC. */ +#define IPI_SCP_INIT 0 +#define IPI_HOST_COMMAND 1 +#define IPI_MDP 2 +#define IPI_VDEC_H264 3 +#define IPI_VDEC_VP8 4 +#define IPI_VDEC_VP9 5 +#define IPI_VENC_H264 6 +#define IPI_VENC_VP8 7 +#define IPI_COUNT 8 + #undef CONFIG_UART_CONSOLE /* * CONFIG_UART_CONSOLE |