summaryrefslogtreecommitdiff
path: root/include/config.h
diff options
context:
space:
mode:
authorAlexandru M Stan <amstan@chromium.org>2019-07-09 15:26:59 -0700
committerCommit Bot <commit-bot@chromium.org>2019-11-19 07:22:35 +0000
commit460cc37c5be4cc2d986a89fd7237fc31fc30bf7a (patch)
tree2760bda3e868c706b3ae6841d3a536826d9e12a1 /include/config.h
parent7353ca106319d64962b7a6ccf2c9e88e701e2368 (diff)
downloadchrome-ec-460cc37c5be4cc2d986a89fd7237fc31fc30bf7a.tar.gz
keyscan: decouple keyboard_raw functionality from the presence of TASK_KEYSCAN
With the addition of external i2c keyboard controllers, chips that don't necessarly have gpios going to a keyboard can now still have a TASK_KEYSCAN. Therefore it's wrong to assume we want the chip/*/keyboard_raw code included. There was no easy way to make an ways on option (eg: CONFIG_KEYBOARD_RAW) that could get #undefd in strategic places. The place that would always define it would be in include/config.h but I don't believe that executes before the build.mk rules. BUG=b:135895590 TEST=Other boards with keyboards still happy. TEST=No compile errors (regarding missing keyboard GPIOS) when declaring TASK_KEYSCAN on a fresh stm32 board. BRANCH=master Change-Id: I061812a6941a11784950280648912edd5844bd79 Signed-off-by: Alexandru M Stan <amstan@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1693862 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index aef854ff62..ebf3f09c49 100644
--- a/include/config.h
+++ b/include/config.h
@@ -2416,6 +2416,13 @@
/* Enable extra debugging output from keyboard modules */
#undef CONFIG_KEYBOARD_DEBUG
+/*
+ * Disables the directly connected keyboard pins and drivers on a particular
+ * chip. You might want this enabled if the keyboard is indirectly connected
+ * to the EC, perhaps through an I2C controller.
+ */
+#undef CONFIG_KEYBOARD_NOT_RAW
+
/* The board uses a negative edge-triggered GPIO for keyboard interrupts. */
#undef CONFIG_KEYBOARD_IRQ_GPIO
@@ -2507,6 +2514,7 @@
* Enable keypad (a palm-sized keyboard section usually placed on the far right)
*/
#undef CONFIG_KEYBOARD_KEYPAD
+
/*****************************************************************************/
/* Support common LED interface */