summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-11-04 14:13:22 -0700
committerCommit Bot <commit-bot@chromium.org>2021-01-15 03:54:58 +0000
commitb949b9509e2674e803307994fcaa12bb000c59cd (patch)
tree5f7eee6d09db569f7b91c5225a4a5e865483d7ef
parent92ec3b46701928f47d91688eb9271e540f85321e (diff)
downloadchrome-ec-b949b9509e2674e803307994fcaa12bb000c59cd.tar.gz
volteer: Add a keyboard task
Enable the task to scan the keyboard. At present this doesn't do anything since it doesn't get any events. It needs the LPC/eSPI piece. BUG=b:167405015 TEST=zmake configure .../zephyr-chrome/projects/experimental/volteer \ -B /tmp/z/cos zmake build /tmp/z/cos See there are no errors Change-Id: I5aa9294f3566440d38b279412bb33da6817f8885 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2521082 Commit-Queue: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630140 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r--zephyr/projects/volteer/include/shimmed_tasks.h8
-rw-r--r--zephyr/projects/volteer/prj.conf1
2 files changed, 3 insertions, 6 deletions
diff --git a/zephyr/projects/volteer/include/shimmed_tasks.h b/zephyr/projects/volteer/include/shimmed_tasks.h
index 4cdaa53879..af6ef4d20b 100644
--- a/zephyr/projects/volteer/include/shimmed_tasks.h
+++ b/zephyr/projects/volteer/include/shimmed_tasks.h
@@ -10,17 +10,13 @@
* Manually define these HAS_TASK_* defines. There is a build time assert
* to at least verify we have the minimum set defined correctly.
*/
-#define HAS_TASK_EXAMPLE 1
+#define HAS_TASK_KEYPROTO 1
/*
* Highest priority on bottom -- same as in platform/ec. List of CROS_EC_TASK
* items. See CONFIG_TASK_LIST in platform/ec's config.h for more informaiton
*/
#define CROS_EC_TASK_LIST \
- CROS_EC_TASK(EXAMPLE, example_entry, 0, 512)
-
-
-/* TODO remove once we have first shimmed volteer task */
-static inline void example_entry(void *p) {}
+ CROS_EC_TASK(KEYPROTO, keyboard_protocol_task, 0, 512)
#endif /* __CROS_EC_SHIMMED_TASKS_H */
diff --git a/zephyr/projects/volteer/prj.conf b/zephyr/projects/volteer/prj.conf
index 821fdfd600..fa97da35b6 100644
--- a/zephyr/projects/volteer/prj.conf
+++ b/zephyr/projects/volteer/prj.conf
@@ -8,3 +8,4 @@ CONFIG_AP_X86_INTEL_TGL=y
CONFIG_CROS_EC_RO=y
CONFIG_PLATFORM_EC=y
CONFIG_I2C=y
+CONFIG_PLATFORM_EC_KEYBOARD=y