From b949b9509e2674e803307994fcaa12bb000c59cd Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 4 Nov 2020 14:13:22 -0700 Subject: 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 Tested-by: Simon Glass Reviewed-by: Jack Rosenthal Reviewed-by: Jett Rink Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630140 Tested-by: Jack Rosenthal Reviewed-by: Simon Glass Commit-Queue: Jack Rosenthal --- zephyr/projects/volteer/include/shimmed_tasks.h | 8 ++------ zephyr/projects/volteer/prj.conf | 1 + 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 -- cgit v1.2.1