summaryrefslogtreecommitdiff
path: root/common/keyboard_8042.c
diff options
context:
space:
mode:
authorJunLin <CHLin56@nuvoton.com>2021-01-29 18:40:23 +0800
committerCommit Bot <commit-bot@chromium.org>2021-02-03 16:16:15 +0000
commit67d7d755568a3a7584022bc8a7f1ccc0655e02cf (patch)
tree7e448dbd5dfebc9fbf2be709c6ae913d8d7b7524 /common/keyboard_8042.c
parent514f95316006de1915a41f28e575ed8773687e3a (diff)
downloadchrome-ec-67d7d755568a3a7584022bc8a7f1ccc0655e02cf.tar.gz
zephyr: shim keyboard_8042 function
This CL Connects Zephyr host interface APIs for KBC to lpc_keyboard_* functions. BUG=b:178747744 BRANCH=None. TEST=pass "make buildall" TEST=pass "zmake testall" TEST=check console, see 8042 protocol hankshaking messages printed: 21-02-01 16:22:22.142 [25.885700 KB Clear Buffer] 21-02-01 16:22:22.143 [25.887600 KB enable] 21-02-01 16:22:22.143 [25.888900 KS enable] 21-02-01 16:22:22.143 [25.890800 KB Clear Buffer] 21-02-01 16:22:22.143 [25.893700 KB scancode set to 1] 21-02-01 16:22:22.151 [25.896400 KB Clear Buffer] 21-02-01 16:22:22.151 [25.899000 KB Clear Buffer] 21-02-01 16:22:23.144 [00025887] <inf> espi_shim: KB put 55 21-02-01 16:22:23.144 [00025887] <inf> espi_shim: KB put 00 21-02<inf> espi_shim: KB put fa 21-02-01 16:22:23.156 [00025898] <inf> espi_shim: KB put fa 21-02-01 16:22:23.156 [00025901] <inf> espi_shim: KB put fa Signed-off-by: JunLin <CHLin56@nuvoton.com> Change-Id: I39ee19630da8561e392de34a277c043dbeae4c6c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2659137 Tested-by: CH Lin <chlin56@nuvoton.com> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/keyboard_8042.c')
-rw-r--r--common/keyboard_8042.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/common/keyboard_8042.c b/common/keyboard_8042.c
index 9fbde467a0..a9b4c32bd8 100644
--- a/common/keyboard_8042.c
+++ b/common/keyboard_8042.c
@@ -49,15 +49,6 @@
#define CMD_KEYBOARD_LOG 0
#endif
-#ifdef CONFIG_ZEPHYR
-/* b/171815541: Implement these when LPC is ready */
-void lpc_keyboard_clear_buffer(void) {}
-void lpc_keyboard_resume_irq(void) {}
-int lpc_keyboard_has_char(void) { return 0; }
-void lpc_keyboard_put_char(uint8_t chr, int send_irq) {}
-int lpc_keyboard_input_pending(void) { return 0; }
-#endif
-
static enum {
STATE_NORMAL = 0,
STATE_SCANCODE,