summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@google.com>2022-11-02 15:53:17 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-11-09 10:19:20 +0000
commit2bf71ffe5b810888bf9dd458bc67f7c48a96fc60 (patch)
tree583fd7baac9b24af8fe8217a452df5a844c49169
parent274ddb17a7cf89ad68cc768cec887ccb8c5a8cef (diff)
downloadchrome-ec-2bf71ffe5b810888bf9dd458bc67f7c48a96fc60.tar.gz
zephyr: Kconfig: enable CONFIG_CROS_KB_RAW_ITE automatically
Enable CONFIG_CROS_KB_RAW_ITE automatically based devicetree compatible nodes. BRANCH=none BUG=none TEST=cq dry run Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: Ib58406766c74ab1839c75879ac74ed064749b21d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4000384 Reviewed-by: Keith Short <keithshort@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
-rw-r--r--zephyr/drivers/cros_kb_raw/Kconfig2
-rw-r--r--zephyr/program/it8xxx2_evb/prj.conf1
2 files changed, 1 insertions, 2 deletions
diff --git a/zephyr/drivers/cros_kb_raw/Kconfig b/zephyr/drivers/cros_kb_raw/Kconfig
index 1055c8a4b2..788684cdcb 100644
--- a/zephyr/drivers/cros_kb_raw/Kconfig
+++ b/zephyr/drivers/cros_kb_raw/Kconfig
@@ -27,8 +27,8 @@ endif # CROS_KB_RAW_NPCX
config CROS_KB_RAW_ITE
bool "ITE raw-keyboard-scan driver for the Zephyr shim"
- depends on SOC_FAMILY_RISCV_ITE
default y
+ depends on DT_HAS_ITE_IT8XXX2_CROS_KB_RAW_ENABLED
help
This option enables a driver for providing raw access to the
keyboard-scan peripheral in the chip. This is used instead of the
diff --git a/zephyr/program/it8xxx2_evb/prj.conf b/zephyr/program/it8xxx2_evb/prj.conf
index d6d422e490..5d561eb4e4 100644
--- a/zephyr/program/it8xxx2_evb/prj.conf
+++ b/zephyr/program/it8xxx2_evb/prj.conf
@@ -34,7 +34,6 @@ CONFIG_PLATFORM_EC_BACKLIGHT_LID=n
CONFIG_PLATFORM_EC_BOARD_VERSION_CBI=n
CONFIG_PLATFORM_EC_BOARD_VERSION_GPIO=n
CONFIG_PLATFORM_EC_KEYBOARD=n
-CONFIG_CROS_KB_RAW_ITE=n
CONFIG_PLATFORM_EC_SWITCH=n
CONFIG_PLATFORM_EC_VBOOT_EFS2=n
CONFIG_PLATFORM_EC_VBOOT_HASH=n