summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorDino Li <Dino.Li@ite.com.tw>2017-11-14 10:55:55 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-11-14 21:52:39 -0800
commit2bb1811f074db4d33fa22209d4be1b303d93ef04 (patch)
treec960bd3feabe48829937dd19fb057570905a69f3 /core
parent385c276e4bf50c9a9816b8cf9a8abc9b86dab329 (diff)
downloadchrome-ec-2bb1811f074db4d33fa22209d4be1b303d93ef04.tar.gz
it83xx: add espi module
Add espi control module for it83xx. Signed-off-by: Dino Li <dino.li@ite.com.tw> BRANCH=none BUG=none TEST=1. it8390+Intel SKL-Y RVP3 and boot to shell. 2. console command "kbpress 1 4" to test keyboard data. (board code for espi module test on CL:392587) Change-Id: I1b32bd16f7e01abf07b9c9a68ebef2399cc9828d Reviewed-on: https://chromium-review.googlesource.com/394471 Commit-Ready: Dino Li <Dino.Li@ite.com.tw> Tested-by: Dino Li <Dino.Li@ite.com.tw> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/nds32/init.S8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/nds32/init.S b/core/nds32/init.S
index d278d4a899..2ee7815908 100644
--- a/core/nds32/init.S
+++ b/core/nds32/init.S
@@ -84,7 +84,13 @@ vector irq_15, 15 /* HW 15 */
.balign 16
.global eflash_sig
eflash_sig:
-.byte 0xA5, 0xA5, 0xA5, 0xA5, 0xA5, 0xA5, 0xA5, 0xB4
+.byte 0xA5, 0xA5, 0xA5, 0xA5, 0xA5, 0xA5
+#ifdef CONFIG_ESPI
+.byte 0xA4 /* eSPI */
+#else
+.byte 0xA5 /* LPC */
+#endif
+.byte 0xB4 /* flag of signature */
.byte 0x85, 0x12, 0x5A, 0x5A, 0xAA, 0xAA, 0x55, 0x55
/* flags: internal oscillator + implicit location */