summaryrefslogtreecommitdiff
path: root/zephyr/shim/include/shimmed_task_id.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-01-07 14:26:13 -0700
committerCommit Bot <commit-bot@chromium.org>2021-01-09 05:11:10 +0000
commit5b7e3cc504e833054e07c70bbaa85ad11fa94a59 (patch)
tree69d8dbdbc64832556e61728ddfe434cfc4d59f10 /zephyr/shim/include/shimmed_task_id.h
parent6a5f6eb994f99fce764c5dedd834222eb82a28d1 (diff)
downloadchrome-ec-5b7e3cc504e833054e07c70bbaa85ad11fa94a59.tar.gz
zephyr: Enable the chgramp task
This task is used to ramp up charging from an external source. Add support for this along with required Kconfig options. Add one more stub in system to make it build. This is covered by the existing bug. BUG=b:175434113 BRANCH=none TEST=make BOARD=volteer -j30 build volteer on zephyr So far the output is not interesting (need more drivers): uart:~$ chgramp Chg Ramp: State: 0 Min ICL: 0 Active ICL: 0 Port 0: OC idx:0 OC 0: s-1 oc_det0 icl0 OC 1: s0 oc_det0 icl0 OC 2: s0 oc_det0 icl0 Port 1: OC idx:0 OC 0: s-1 oc_det0 icl0 OC 1: s0 oc_det0 icl0 OC 2: s0 oc_det0 icl0 Signed-off-by: Simon Glass <sjg@chromium.org> Cq-Depend: chromium:2613607 Change-Id: I603ba43d4384b62ed0c1a64b580599b42ae85e81 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2617039 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/shim/include/shimmed_task_id.h')
-rw-r--r--zephyr/shim/include/shimmed_task_id.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/zephyr/shim/include/shimmed_task_id.h b/zephyr/shim/include/shimmed_task_id.h
index 3da93e67c9..2dc4f1c50d 100644
--- a/zephyr/shim/include/shimmed_task_id.h
+++ b/zephyr/shim/include/shimmed_task_id.h
@@ -19,6 +19,9 @@ typedef uint8_t task_id_t;
*/
#ifndef CONFIG_ZTEST
#define CROS_EC_TASK_LIST \
+ COND_CODE_1(HAS_TASK_CHG_RAMP, \
+ (CROS_EC_TASK(CHG_RAMP, chg_ramp_task, 0, \
+ CONFIG_TASK_CHG_RAMP_STACK_SIZE)), ()) \
COND_CODE_1(HAS_TASK_USB_CHG_P0, \
(CROS_EC_TASK(USB_CHG_P0, usb_charger_task, 0, \
CONFIG_TASK_USB_CHG_STACK_SIZE)), ()) \