diff options
author | scott worley <scott.worley@microchip.corp-partner.google.com> | 2018-05-10 18:50:55 -0400 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-06-14 01:31:51 -0700 |
commit | fe921e8ea12abfaf889e8bdbf60666ce1c870f2b (patch) | |
tree | 1f1e8ff9d3bde5ce723157e76e565c7f6f35a2d5 /board/reef_mchp/ec.tasklist | |
parent | 532f93a432c06fcadf86bc0177dbb3e4c3abebb5 (diff) | |
download | chrome-ec-fe921e8ea12abfaf889e8bdbf60666ce1c870f2b.tar.gz |
board: Add reef_mchp board.
Create a new board reef_mchp based on production reef board
with original EC replaced with MEC1701 on interposer board.
BRANCH=none
BUG=none
TEST=Build and flash into board. Requires CoreBoot and
ChromiumOS rebuilt with cros_mec USE flag.
Change-Id: Ib93063586ca3b71f98d19c91d974138f880e5fd0
Signed-off-by: scott worley <scott.worley@microchip.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/1054729
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'board/reef_mchp/ec.tasklist')
-rw-r--r-- | board/reef_mchp/ec.tasklist | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/board/reef_mchp/ec.tasklist b/board/reef_mchp/ec.tasklist new file mode 100644 index 0000000000..5c591ef1ef --- /dev/null +++ b/board/reef_mchp/ec.tasklist @@ -0,0 +1,46 @@ +/* Copyright 2016 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +/* + * List of enabled tasks in the priority order + * + * The first one has the lowest priority. + * + * For each task, use the macro TASK_ALWAYS(n, r, d, s) for base tasks and + * TASK_NOTEST(n, r, d, s) for tasks that can be excluded in test binaries, + * where : + * 'n' in the name of the task + * 'r' in the main routine of the task + * 'd' in an opaque parameter passed to the routine at startup + * 's' is the stack size in bytes; must be a multiple of 8 + * + * For USB PD tasks, IDs must be in consecutive order and correspond to + * the port which they are for. See TASK_ID_TO_PD_PORT() macro. + * These 3 go after HOOKS and before MOTIONSENSE. Remember to add backslashes! + * TASK_ALWAYS(CHG_RAMP, chg_ramp_task, NULL, TASK_STACK_SIZE) + * TASK_ALWAYS(USB_CHG, usb_charger_task, NULL, TASK_STACK_SIZE) + * TASK_ALWAYS(CHARGER, charger_task, NULL, LARGER_TASK_STACK_SIZE) + * + * These 2 go at the end of the list. Remember proper backslashes + * TASK_ALWAYS(PD_C0, pd_task, NULL, LARGER_TASK_STACK_SIZE) + * TASK_ALWAYS(PD_C1, pd_task, NULL, LARGER_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, LARGER_TASK_STACK_SIZE) \ + TASK_ALWAYS(USB_CHG, usb_charger_task, NULL, TASK_STACK_SIZE) \ + TASK_ALWAYS(CHARGER, charger_task, NULL, LARGER_TASK_STACK_SIZE) \ + TASK_ALWAYS(MOTIONSENSE, motion_sense_task, NULL, VENTI_TASK_STACK_SIZE) \ + TASK_NOTEST(CHIPSET, chipset_task, NULL, LARGER_TASK_STACK_SIZE) \ + TASK_NOTEST(KEYPROTO, keyboard_protocol_task, NULL, TASK_STACK_SIZE) \ + TASK_NOTEST(PDCMD, pd_command_task, NULL, TASK_STACK_SIZE) \ + TASK_ALWAYS(HOSTCMD, host_command_task, NULL, LARGER_TASK_STACK_SIZE) \ + TASK_ALWAYS(CONSOLE, console_task, NULL, VENTI_TASK_STACK_SIZE) \ + TASK_ALWAYS(POWERBTN, power_button_task, NULL, LARGER_TASK_STACK_SIZE) \ + TASK_NOTEST(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE) \ + TASK_ALWAYS(PD_C0, pd_task, NULL, LARGER_TASK_STACK_SIZE) \ + TASK_ALWAYS(PD_C1, pd_task, NULL, LARGER_TASK_STACK_SIZE) + |