summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorHyungwoo Yang <hyungwoo.yang@intel.com>2018-10-23 12:28:27 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-11-21 22:49:04 -0800
commit47716574343965e815870bbcdb3d10f1234418af (patch)
tree7aee6444a7770a49ae331fd6109f637d312111a9 /chip
parent9901ce650c6121e8badcb04ebbd65be0fe8c4570 (diff)
downloadchrome-ec-47716574343965e815870bbcdb3d10f1234418af.tar.gz
ISH: IPC: send HC FW ready notification to host
send Host Command FW ready notification to host driver. BUG=b:79676054 BRANCH=none TEST=tested on Atlas board Change-Id: I5148351d91151e964561c821c02634bd32163dfd Reviewed-on: https://chromium-review.googlesource.com/1297031 Commit-Ready: Caveh Jalali <caveh@google.com> Tested-by: Hyungwoo Yang <hyungwoo.yang@intel.com> Reviewed-by: Caveh Jalali <caveh@google.com> Reviewed-by: Hyungwoo Yang <hyungwoo.yang@intel.com> Reviewed-by: caveh jalali <caveh@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r--chip/ish/ipc.c3
-rw-r--r--chip/ish/ipc.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/chip/ish/ipc.c b/chip/ish/ipc.c
index a50d84d5f2..6e90c30390 100644
--- a/chip/ish/ipc.c
+++ b/chip/ish/ipc.c
@@ -377,6 +377,9 @@ static void ipc_init(void)
memset(lpc_get_memmap_range(), 0, EC_MEMMAP_SIZE);
setup_ipc();
+
+ CPUTS("*** MNG Host Command FW ready ****\n");
+ REG32(IPC_ISH2HOST_DOORBELL) = IPC_BUILD_MNG_MSG(MNG_HC_FW_READY, 1);
}
DECLARE_HOOK(HOOK_INIT, ipc_init, HOOK_PRIO_INIT_LPC);
diff --git a/chip/ish/ipc.h b/chip/ish/ipc.h
index 72968e94c4..7781e5f55c 100644
--- a/chip/ish/ipc.h
+++ b/chip/ish/ipc.h
@@ -17,6 +17,7 @@
#define IPC_PROTOCOL_MNG 3 /* Management protocol */
#define IPC_PROTOCOL_ECP 4 /* EC protocol */
#define MNG_TIME_UPDATE 5
+#define MNG_HC_FW_READY 8 /* host command ready */
#define EVENT_FLAG_BIT_READ_IPC (1<<0)
#define EVENT_FLAG_BIT_WRITE_IPC (1<<2)