summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.tasks
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/Kconfig.tasks
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/Kconfig.tasks')
-rw-r--r--zephyr/Kconfig.tasks21
1 files changed, 21 insertions, 0 deletions
diff --git a/zephyr/Kconfig.tasks b/zephyr/Kconfig.tasks
index 8bc93b7a3a..acf039e786 100644
--- a/zephyr/Kconfig.tasks
+++ b/zephyr/Kconfig.tasks
@@ -27,6 +27,27 @@ config TASK_CHARGER_STACK_SIZE
endif # HAS_TASK_CHARGER
+config HAS_TASK_CHG_RAMP
+ bool "Charger-ramp task"
+ depends on PLATFORM_EC_BATTERY
+ help
+ This turns on the charger ramp task. This attempts to ramp up the
+ current from an attached charger to the maximum available current.
+ It handles the incoming VBUS voltage sagging as well as the user
+ attaching different chargers.
+
+if HAS_TASK_CHG_RAMP
+
+config TASK_CHG_RAMP_STACK_SIZE
+ hex "Stack size"
+ default 0x200 # EC uses TASK_STACK_SIZE which is 512 for npcx
+ help
+ The stack size of the charger task.
+
+ See b/176180736 for checking these stack sizes.
+
+endif # HAS_TASK_CHG_RAMP
+
config HAS_TASK_CHIPSET
bool "Chipset task"
depends on PLATFORM_EC_POWERSEQ