summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Wang <matt_wang@compal.corp-partner.google.com>2022-08-15 09:30:40 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-08-17 14:42:02 +0000
commitd4240c889db6c6a5473ec7e5386c9ff7da6fc522 (patch)
tree5bbe0625068e2e9eb313881153234bb593905743
parenta2e7061347b91f4dbb06beb4ba882f331dbbcc00 (diff)
downloadchrome-ec-d4240c889db6c6a5473ec7e5386c9ff7da6fc522.tar.gz
kinox: modify S5 power type control method
Disable the PPC sink when the power type change from Type-C to Barrel Jack at S5. Let the MB lose the power by itself. And then the MB will power up by Barrel Jack again. It can prevent the Type-C and Barrel Jack has some abnormal to damage the MB when power switch. BUG=b:240461218 BRANCH=none TEST=The Power Team member check the power switch voltage can meet the spec. Signed-off-by: Matt Wang <matt_wang@compal.corp-partner.google.com> Change-Id: I89b120d1098b76c7be9ff523f476f27c04ead9f2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3829209 Reviewed-by: Ricky Chang <rickytlchang@chromium.org> Commit-Queue: Ricky Chang <rickytlchang@chromium.org>
-rw-r--r--board/kinox/board.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/kinox/board.c b/board/kinox/board.c
index 4524ac0fa7..d88e76de7e 100644
--- a/board/kinox/board.c
+++ b/board/kinox/board.c
@@ -19,6 +19,7 @@
#include "switch.h"
#include "throttle_ap.h"
#include "usbc_config.h"
+#include "usbc_ppc.h"
#include "fw_config.h"
#include "gpio_list.h" /* Must come after other header files. */
@@ -90,7 +91,7 @@ int board_set_active_charge_port(int port)
/* Make sure BJ adapter is sourcing power */
if (gpio_get_level(GPIO_BJ_ADP_PRESENT_ODL))
return EC_ERROR_INVAL;
- gpio_set_level(GPIO_EN_PPVAR_BJ_ADP_L, 0);
+ ppc_vbus_sink_enable(0, 0);
break;
default:
return EC_ERROR_INVAL;