summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.tasks
diff options
context:
space:
mode:
authorEric Yilun Lin <yllin@chromium.org>2022-03-07 11:10:32 +0800
committerCommit Bot <commit-bot@chromium.org>2022-03-16 10:22:53 +0000
commitf67ade587349ba3a3ba4f618ce9258649739e340 (patch)
tree9cdc794ae20dc6a1077ed7af104d58ad0fc801ec /zephyr/Kconfig.tasks
parentdadd1edfe514a6af7d2ca4e6b9bd94d83dfd5bef (diff)
downloadchrome-ec-f67ade587349ba3a3ba4f618ce9258649739e340.tar.gz
zephyr: port DPS to zephyr
Port config dynamic PDO selection to zephyr. BUG=b:206709593 TEST=enable DPS on herobrine and build BRANCH=none Change-Id: I2ee111c086625fe3b4972b490b64b68f122aefb4 Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3522248 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Eric Yilun Lin <yllin@google.com> Auto-Submit: Eric Yilun Lin <yllin@google.com>
Diffstat (limited to 'zephyr/Kconfig.tasks')
-rw-r--r--zephyr/Kconfig.tasks19
1 files changed, 19 insertions, 0 deletions
diff --git a/zephyr/Kconfig.tasks b/zephyr/Kconfig.tasks
index d8c456808d..470172dc4f 100644
--- a/zephyr/Kconfig.tasks
+++ b/zephyr/Kconfig.tasks
@@ -188,6 +188,25 @@ config TASK_PD_INT_STACK_SIZE
endif # PLATFORM_EC_USB_PD_PORT_MAX_COUNT > 0
+if HAS_TASK_DPS
+
+config TASK_DPS_STACK_SIZE
+ int "DPS task stack size"
+ default 1024
+ help
+ The stack size of the DPS task.
+
+endif # HAS_TASK_DPS
+
+config HAS_TASK_DPS
+ bool
+ depends on PLATFORM_EC_USB_PD_DPS
+ help
+ This turns on the DPS task which evalutes the SRCCAP from all the SNK
+ ports and issues a new power request to the port which has the most
+ efficient power data object (PDO).
+
+
config HAS_TASK_PD_C0
bool
depends on PLATFORM_EC_USB_POWER_DELIVERY