diff options
author | Yilun Lin <yllin@google.com> | 2018-12-17 15:00:48 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-12-29 05:45:29 -0800 |
commit | 860fe2962d40ee901369d1dc67f4aa7a7a42ba4d (patch) | |
tree | f78bd92e4cf48389bce28299ad97dfc9884b0823 /include | |
parent | c7804fd61b3bacf29cb4f1da9483860435ecac20 (diff) | |
download | chrome-ec-860fe2962d40ee901369d1dc67f4aa7a7a42ba4d.tar.gz |
mt_scp/ipi: Support host command.
mt_scp is the first chip which uses IPI to do host command communication.
This CL implements the host command over IPI.
TEST=Run ec.RW.bin on kukui by "echo start >
/sys/class/remoteproc/remoteproc0/state" and see that there are HC logs
from SCP uart
[0.000385 hostcmd init 0x0000000000002000]
[0.049958 HC 0x0b]
[0.050061 HC 0x400b]
[0.050108 HC 0x400b err 1]
[0.050204 HC 0x08]
[0.050240 HC 0x08 err 3]
[0.050370 HC 0x8d]
[0.050406 HC 0x8d err 1]
[0.050821 HC 0x0d]
BUG=b:117917141, b:120953723
BRANCH=None
Change-Id: I2c2b701d92504a74cc2ee90ab05912e99378acde
Signed-off-by: Yilun Lin <yllin@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1379410
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/ec_commands.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index 9f066e0988..45198db0dc 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -1338,6 +1338,8 @@ enum ec_feature_code { EC_FEATURE_REFINED_TABLET_MODE_HYSTERESIS = 37, /* EC supports audio codec. */ EC_FEATURE_AUDIO_CODEC = 38, + /* EC Supports SCP. */ + EC_FEATURE_SCP = 39, }; #define EC_FEATURE_MASK_0(event_code) (1UL << (event_code % 32)) |