aboutsummaryrefslogtreecommitdiff
path: root/drivers/input/keyboard/Kconfig
diff options
context:
space:
mode:
authorGravatar Simon Glass <sjg@chromium.org> 2013-02-25 14:08:41 -0800
committerGravatar Samuel Ortiz <sameo@linux.intel.com> 2013-04-05 11:20:13 +0200
commit6af6dc2d2aa654e928ed0a64c28724d1cd2c36c1 (patch)
tree323ea72f7fe7d9fb897865ee47184d84ca52c318 /drivers/input/keyboard/Kconfig
parentinput: matrix-keymap: Add function to read the new DT binding (diff)
downloadlinux-6af6dc2d2aa654e928ed0a64c28724d1cd2c36c1.tar.gz
linux-6af6dc2d2aa654e928ed0a64c28724d1cd2c36c1.tar.bz2
linux-6af6dc2d2aa654e928ed0a64c28724d1cd2c36c1.zip
input: Add ChromeOS EC keyboard driver
Use the key-matrix layer to interpret key scan information from the EC and inject input based on the FDT-supplied key map. This driver registers itself with the ChromeOS EC driver to perform communications. The matrix-keypad FDT binding is used with a small addition to control ghosting. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Luigi Semenzato <semenzato@chromium.org> Signed-off-by: Vincent Palatin <vpalatin@chromium.org> Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/input/keyboard/Kconfig')
-rw-r--r--drivers/input/keyboard/Kconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/input/keyboard/Kconfig b/drivers/input/keyboard/Kconfig
index ac0500667000..6a195d5e90ff 100644
--- a/drivers/input/keyboard/Kconfig
+++ b/drivers/input/keyboard/Kconfig
@@ -628,4 +628,16 @@ config KEYBOARD_W90P910
To compile this driver as a module, choose M here: the
module will be called w90p910_keypad.
+config KEYBOARD_CROS_EC
+ tristate "ChromeOS EC keyboard"
+ select INPUT_MATRIXKMAP
+ depends on MFD_CROS_EC
+ help
+ Say Y here to enable the matrix keyboard used by ChromeOS devices
+ and implemented on the ChromeOS EC. You must enable one bus option
+ (MFD_CROS_EC_I2C or MFD_CROS_EC_SPI) to use this.
+
+ To compile this driver as a module, choose M here: the
+ module will be called cros_ec_keyb.
+
endif