summaryrefslogtreecommitdiff
path: root/zephyr/shim/include/shimmed_tasks.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-01-07 17:28:10 -0700
committerCommit Bot <commit-bot@chromium.org>2021-01-12 18:51:10 +0000
commit1215381af4f4305d0f1aad4607e873ef3d6c4893 (patch)
tree4a21566b5aacc041b9682cb6dab0fb09b7f7a76a /zephyr/shim/include/shimmed_tasks.h
parenta3ee5e63381cedf9495fa5fb0dbfd0a8a740b50a (diff)
downloadchrome-ec-1215381af4f4305d0f1aad4607e873ef3d6c4893.tar.gz
zephyr: Enable the power-delivery task
Enable the PD_C0-3 tasks so that the power-delivery logic can run. Drop the PLATFORM_EC_USB_PD_TCPMV2 Kconfig which does not actually exist. We always use TCPMV2 with Zephyr. BUG=b:175434113 BRANCH=none TEST=make BOARD=volteer -j30 build volteer on zephyr run and see lots of charge_requests and activity, none of it very useful: [658 Battery 26% (Display 24.2 %) / ??h:?? to full] [662 charge_request(13200mV, 2584mA)] [666 charge problem: set current, 0x0 -> 0xfffffffb after %.6llds] [673 charge problem: set voltage, 0x0 -> 0xfffffffb after %.6llds] [679 charge problem: set mode, 0x0 -> 0xfffffffb after %.6llds] [707 charge problem: chg params, 0x0 -> 0x1f after %.6llds] Signed-off-by: Simon Glass <sjg@chromium.org> Cq-Depend: chromium:2623427 Change-Id: Icde0f7f4205d85e02cffded351c54047fe220c9d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2617204
Diffstat (limited to 'zephyr/shim/include/shimmed_tasks.h')
-rw-r--r--zephyr/shim/include/shimmed_tasks.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/zephyr/shim/include/shimmed_tasks.h b/zephyr/shim/include/shimmed_tasks.h
index 8f1f8b7962..cef3214ce3 100644
--- a/zephyr/shim/include/shimmed_tasks.h
+++ b/zephyr/shim/include/shimmed_tasks.h
@@ -31,6 +31,22 @@
#define HAS_TASK_KEYPROTO 1
#endif /* CONFIG_HAS_TASK_KEYPROTO */
+#ifdef CONFIG_HAS_TASK_PD_C0
+#define HAS_TASK_PD_C0 1
+#endif /* CONFIG_HAS_TASK_PD_C0 */
+
+#ifdef CONFIG_HAS_TASK_PD_C1
+#define HAS_TASK_PD_C1 1
+#endif /* CONFIG_HAS_TASK_PD_C1 */
+
+#ifdef CONFIG_HAS_TASK_PD_C2
+#define HAS_TASK_PD_C2 1
+#endif /* CONFIG_HAS_TASK_PD_C2 */
+
+#ifdef CONFIG_HAS_TASK_PD_C3
+#define HAS_TASK_PD_C3 1
+#endif /* CONFIG_HAS_TASK_PD_C3 */
+
#ifdef CONFIG_HAS_TASK_POWERBTN
#define HAS_TASK_POWERBTN 1
#endif /* CONFIG_HAS_TASK_POWERBTN */