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 /include | |
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 'include')
-rw-r--r-- | include/config.h | 15 | ||||
-rw-r--r-- | include/console_channel.inc | 3 |
2 files changed, 18 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index 39f7048ca9..16326ae7c7 100644 --- a/include/config.h +++ b/include/config.h @@ -2018,6 +2018,21 @@ #undef CONFIG_I2C_MULTI_PORT_CONTROLLER /*****************************************************************************/ +/* IPI configuration. Support mt_scp only for now. */ + +/* EC support Inter-Processor Interrupt. */ +#undef CONFIG_IPI + +/* + * IPC0/IPI shared object address. This is the starting address of the send + * object and the receive object. Each object contains a buffer. + */ +#undef CONFIG_IPC_SHARED_OBJ_ADDR + +/* "buffer" size of ipc_shared_obj. */ +#undef CONFIG_IPC_SHARED_OBJ_BUF_SIZE + +/*****************************************************************************/ /* Current/Power monitor */ /* diff --git a/include/console_channel.inc b/include/console_channel.inc index a299292d89..0f931e88f7 100644 --- a/include/console_channel.inc +++ b/include/console_channel.inc @@ -49,6 +49,9 @@ CONSOLE_CHANNEL(CC_HOSTCMD, "hostcmd") #ifdef CONFIG_I2C CONSOLE_CHANNEL(CC_I2C, "i2c") #endif +#ifdef CONFIG_IPI +CONSOLE_CHANNEL(CC_IPI, "ipi") +#endif CONSOLE_CHANNEL(CC_KEYBOARD, "keyboard") #ifdef HAS_TASK_KEYSCAN CONSOLE_CHANNEL(CC_KEYSCAN, "keyscan") |