summaryrefslogtreecommitdiff
path: root/board/guybrush/ec.tasklist
diff options
context:
space:
mode:
authorBhanu Prakash Maiya <bhanumaiya@google.com>2021-07-15 17:02:18 -0700
committerCommit Bot <commit-bot@chromium.org>2021-07-16 20:36:14 +0000
commit67dd1137256af06b9645326c65b41c6099bbf4f2 (patch)
treeda96ad1ca18b754492358df30972b6cc72f1429f /board/guybrush/ec.tasklist
parent82ab6883ff1c5f0d6842330025fa0f434bcec87a (diff)
downloadchrome-ec-67dd1137256af06b9645326c65b41c6099bbf4f2.tar.gz
guybrush: Move ec task list from basebord to board level.
The order of tasks in the tasklist decides the priority of the tasks. Splitting tasks between baseboard and board level puts baseboards task at low priority and board tasks at highest priority. To put motion task at right priority, patch maintains one list at board level. BRANCH=none BUG=b:178400750 TEST=Motion task implementation tested on Guybrush Signed-off-by: Bhanu Prakash Maiya <bhanumaiya@chromium.org> Signed-off-by: Latchiamaran Senram <latchiamaran.senram@bosch.corp-partner.google.com> Change-Id: Ib21e296d7c0af13f3439335f12348eb027b63e35 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3033337 Commit-Queue: Bhanu Prakash Maiya <bhanumaiya@google.com> Tested-by: Bhanu Prakash Maiya <bhanumaiya@google.com> Auto-Submit: Bhanu Prakash Maiya <bhanumaiya@google.com> Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/guybrush/ec.tasklist')
-rw-r--r--board/guybrush/ec.tasklist21
1 files changed, 17 insertions, 4 deletions
diff --git a/board/guybrush/ec.tasklist b/board/guybrush/ec.tasklist
index cb9b34a3cf..f7cf0f7205 100644
--- a/board/guybrush/ec.tasklist
+++ b/board/guybrush/ec.tasklist
@@ -7,7 +7,20 @@
* See CONFIG_TASK_LIST in config.h for details.
*/
-#include "base_ec.tasklist"
-
-#define CONFIG_TASK_LIST BASEBOARD_CONFIG_TASK_LIST \
- TASK_ALWAYS(MOTIONSENSE, motion_sense_task, NULL, TASK_STACK_SIZE)
+#define CONFIG_TASK_LIST \
+ TASK_ALWAYS(HOOKS, hook_task, NULL, LARGER_TASK_STACK_SIZE) \
+ TASK_ALWAYS(CHG_RAMP, chg_ramp_task, NULL, TASK_STACK_SIZE) \
+ TASK_ALWAYS(USB_CHG_P0, usb_charger_task, 0, TASK_STACK_SIZE) \
+ TASK_ALWAYS(USB_CHG_P1, usb_charger_task, 1, TASK_STACK_SIZE) \
+ TASK_ALWAYS(CHARGER, charger_task, NULL, VENTI_TASK_STACK_SIZE) \
+ TASK_ALWAYS(MOTIONSENSE, motion_sense_task, NULL, VENTI_TASK_STACK_SIZE) \
+ TASK_NOTEST(CHIPSET, chipset_task, NULL, VENTI_TASK_STACK_SIZE) \
+ TASK_NOTEST(KEYPROTO, keyboard_protocol_task, NULL, TASK_STACK_SIZE) \
+ TASK_ALWAYS(HOSTCMD, host_command_task, NULL, LARGER_TASK_STACK_SIZE) \
+ TASK_ALWAYS(POWERBTN, power_button_task, NULL, VENTI_TASK_STACK_SIZE) \
+ TASK_NOTEST(KEYSCAN, keyboard_scan_task, NULL, LARGER_TASK_STACK_SIZE) \
+ TASK_ALWAYS(CONSOLE, console_task, NULL, VENTI_TASK_STACK_SIZE) \
+ TASK_ALWAYS(PD_C0, pd_task, NULL, VENTI_TASK_STACK_SIZE) \
+ TASK_ALWAYS(PD_C1, pd_task, NULL, VENTI_TASK_STACK_SIZE) \
+ TASK_ALWAYS(PD_INT_C0, pd_interrupt_handler_task, 0, VENTI_TASK_STACK_SIZE) \
+ TASK_ALWAYS(PD_INT_C1, pd_interrupt_handler_task, 1, VENTI_TASK_STACK_SIZE)