diff options
author | Fabio Baltieri <fabiobaltieri@google.com> | 2022-11-16 11:33:01 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-11-16 18:22:23 +0000 |
commit | 86853653efb5acf2bb84ca220d9e309a4745d3a0 (patch) | |
tree | 480561d0138f18d80a9ec0c3905a7666249ec9d0 /zephyr/Kconfig.keyboard | |
parent | 4115c899e6705fb589c4b2e1c78e18eb9b50c11e (diff) | |
download | chrome-ec-86853653efb5acf2bb84ca220d9e309a4745d3a0.tar.gz |
zephyr: keyboard: split dt based keymap to its own config
Add a separate config for instantiating keyscan_config based on the
devicetree, decoupling it from the main PLATFORM_EC_KEYBOARD option. The
new one is selected automatically based on devicetree and the driver
does not need a #if guard anymore.
BRANCH=none
BUG=none
TEST=cq dry run
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: I8e6654c7ebca8553b1f930b87c320af50895048f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4030886
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.keyboard')
-rw-r--r-- | zephyr/Kconfig.keyboard | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/zephyr/Kconfig.keyboard b/zephyr/Kconfig.keyboard index 15ca7d20e7..400f295418 100644 --- a/zephyr/Kconfig.keyboard +++ b/zephyr/Kconfig.keyboard @@ -19,6 +19,15 @@ menuconfig PLATFORM_EC_KEYBOARD if PLATFORM_EC_KEYBOARD +config CROS_EC_KEYSCAN + bool "Devicetree based keyscan map" + default y + depends on DT_HAS_CROS_EC_KEYSCAN_ENABLED + help + Define a keyscan_config data structure based on a the keyscan + configuration found in devicetree. Requires a cros-ec,keyscan node to + be defined. + choice PLATFORM_EC_KEYBOARD_PROTOCOL_MODE prompt "Select the keyboard protocol to use" help |