summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Yilun Lin <yllin@chromium.org>2021-08-27 14:28:43 +0800
committerCommit Bot <commit-bot@chromium.org>2021-09-28 04:31:09 +0000
commit93523a0a6084efc5319a471bc7af3e5de989e510 (patch)
treef36796fb574ebc5d32b2cfc0560e190f4547468e
parentae34721d1c0eea14baceda8ccbd95f8204f2240c (diff)
downloadchrome-ec-93523a0a6084efc5319a471bc7af3e5de989e510.tar.gz
cherry: enable DPS
Enable Dynamic PDO Selection to provide a more efficient charging. BUG=b:196911733 TEST=Pass PD FAFT and FAFT-EC BRANCH=none Change-Id: Ie615d63fbca54bf70412367e8f3befabd7db5832 Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3124474 Tested-by: Eric Yilun Lin <yllin@google.com> Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Eric Yilun Lin <yllin@google.com>
-rw-r--r--baseboard/cherry/baseboard.h1
-rw-r--r--board/cherry/ec.tasklist1
2 files changed, 2 insertions, 0 deletions
diff --git a/baseboard/cherry/baseboard.h b/baseboard/cherry/baseboard.h
index 39bc9d543d..8dc1dbfb91 100644
--- a/baseboard/cherry/baseboard.h
+++ b/baseboard/cherry/baseboard.h
@@ -131,6 +131,7 @@
#define CONFIG_USB_PD_DECODE_SOP
#define CONFIG_USB_PD_DISCHARGE
#define CONFIG_USB_PD_DISCHARGE_PPC
+#define CONFIG_USB_PD_DPS
#define CONFIG_USB_PD_DP_HPD_GPIO
#define CONFIG_USB_PD_DP_HPD_GPIO_CUSTOM
#define CONFIG_USB_PD_DUAL_ROLE
diff --git a/board/cherry/ec.tasklist b/board/cherry/ec.tasklist
index fa829ffe1a..f9050fef87 100644
--- a/board/cherry/ec.tasklist
+++ b/board/cherry/ec.tasklist
@@ -16,6 +16,7 @@
TASK_ALWAYS(HOSTCMD, host_command_task, NULL, 1024) \
TASK_ALWAYS(CONSOLE, console_task, NULL, LARGER_TASK_STACK_SIZE) \
TASK_NOTEST(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE) \
+ TASK_ALWAYS(DPS, dps_task, NULL, 1280) \
TASK_ALWAYS(PD_C0, pd_task, NULL, 1280) \
TASK_ALWAYS(PD_C1, pd_task, NULL, 1280) \
TASK_ALWAYS(PD_INT_C1, pd_interrupt_handler_task, 1, 1024) \