summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Peress <peress@chromium.org>2021-04-23 10:26:02 -0600
committerCommit Bot <commit-bot@chromium.org>2021-04-23 20:01:10 +0000
commit61318c06a2ad177387ab8f18ef7f8cb8e85452f3 (patch)
treeb04cf0fa51651c14024375b925ce2fc000f2ea78
parent52465b23eccfc779bd358c0495918d8c0baa884e (diff)
downloadchrome-ec-61318c06a2ad177387ab8f18ef7f8cb8e85452f3.tar.gz
zephyr: driver: kx022: Add CONFIG_ACCEL_KX022
The config value is needed by the common accel_kionix.c module. BRANCH=none BUG=b:185966444 TEST=zmake testall Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: I4c9f5c05e1801b3c26eaaaba48dbf8dd107dd386 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2848430 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
-rw-r--r--zephyr/shim/include/config_chip.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index 89a409e328..c83d9f89eb 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -1144,6 +1144,11 @@
#define CONFIG_ACCEL_BMA255
#endif
+#undef CONFIG_ACCEL_KX022
+#ifdef CONFIG_PLATFORM_EC_ACCEL_KX022
+#define CONFIG_ACCEL_KX022
+#endif
+
#undef CONFIG_ALS_TCS3400
#ifdef CONFIG_PLATFORM_EC_ALS_TCS3400
#define CONFIG_ALS_TCS3400