summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.tasks
diff options
context:
space:
mode:
authorHyungwoo Yang <hyungwoo.yang@intel.corp-partner.google.com>2021-01-19 21:18:36 -0800
committerCommit Bot <commit-bot@chromium.org>2021-01-22 21:43:16 +0000
commit90995b4a525442b448384e8c5e6d77f541283c4d (patch)
tree9e68cdf860d4080a258115edc447c9e488b3688c /zephyr/Kconfig.tasks
parent90dea61948cfcb668f6d893a7d8f6aef419ef942 (diff)
downloadchrome-ec-90995b4a525442b448384e8c5e6d77f541283c4d.tar.gz
zephyr: add motion sense support
Add support for motion sense in zephyr. This change adds basic functions for motion sense task to do meaningful work. sensor_map.h included by board.h will be used to get board specific sensor configuration. BUG=b:173507858 BRANCH=none TEST=make buildall -j8 build volteer on zephyr Signed-off-by: Hyungwoo Yang <hyungwoo.yang@intel.corp-partner.google.com> Change-Id: I906316d2e97428cf46b9a15071666c8e3b039b18 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2638909 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Tested-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.tasks')
-rw-r--r--zephyr/Kconfig.tasks17
1 files changed, 17 insertions, 0 deletions
diff --git a/zephyr/Kconfig.tasks b/zephyr/Kconfig.tasks
index ebdf59748b..35232eb1dd 100644
--- a/zephyr/Kconfig.tasks
+++ b/zephyr/Kconfig.tasks
@@ -125,6 +125,23 @@ config TASK_KEYSCAN_STACK_SIZE
endif # HAS_TASK_KEYSCAN
+config HAS_TASK_MOTIONSENSE
+ bool "Enable motionsense task"
+ help
+ This turns on the motion sense task which collects sensor data from the
+ sensors and reports them to AP. Using the data, it also produces other
+ meaningful reports to AP like lid angle and tablet mode.
+
+if HAS_TASK_MOTIONSENSE
+
+config TASK_MOTIONSENSE_STACK_SIZE
+ hex "motionsense task stack size"
+ default 0x1000
+ help
+ The size of the motion sense task stack.
+
+endif # HAS_TASK_MOTIONSENSE
+
config HAS_TASK_POWERBTN
bool "Power-button task (x86)"
depends on PLATFORM_EC_POWER_BUTTON