summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSue Chen <sue.chen@quanta.corp-partner.google.com>2022-10-21 15:46:39 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-11-07 07:44:59 +0000
commit900253911e0404c5d13c3f80921d71df03833186 (patch)
tree53cbac879c890c9e0aba4fefcbeac4c725ac167c /include
parent79d48dcca63668f5a1f7ae1b495ad20d89772cd5 (diff)
downloadchrome-ec-900253911e0404c5d13c3f80921d71df03833186.tar.gz
keyboard_raw: add function keyboard_raw_config_alt
Using keyboard_raw_config_alt to set KSI/KSO alternative function. Add all the keyboard gpio pins in pinctrl for setting sleep state in cros_kb_raw. BUG=b:252950988 BRANCH=none TEST=none LOW_COVERAGE_REASON=b:256669239 cros_kb_raw_npcx.c needs tests Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I45d6de5b1f950f7e6c8d8b67ec03ba1e219c635b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3970401 Reviewed-by: Keith Short <keithshort@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'include')
-rw-r--r--include/keyboard_raw.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/keyboard_raw.h b/include/keyboard_raw.h
index dca7b3c79a..2b2254e56c 100644
--- a/include/keyboard_raw.h
+++ b/include/keyboard_raw.h
@@ -11,6 +11,8 @@
#ifndef __CROS_EC_KEYBOARD_RAW_H
#define __CROS_EC_KEYBOARD_RAW_H
+#include <stdbool.h>
+
#include "builtin/assert.h"
#include "common.h"
#include "gpio_signal.h"
@@ -62,6 +64,14 @@ int keyboard_raw_read_rows(void);
*/
void keyboard_raw_enable_interrupt(int enable);
+/**
+ * Enable or disable keyboard alternative function.
+ *
+ * @param enable 1 enable KSI/KSO alternative function,
+ * 0 set all KSI/KSO pins to normal GPIO.
+ */
+void keybaord_raw_config_alt(bool enable);
+
#ifdef HAS_TASK_KEYSCAN
/**