summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZick Wei <zick.wei@quanta.corp-partner.google.com>2022-11-08 16:46:10 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-11-09 03:02:11 +0000
commit10d8f20b90c9462ffe24222df4dad6829eb31067 (patch)
treed3aa1e9a3498f547fcfdd90644df27148cb9c632
parent7063dd20c35b905248bd76bf84310d64625f54fd (diff)
downloadchrome-ec-10d8f20b90c9462ffe24222df4dad6829eb31067.tar.gz
nissa: update usba1 enable pin initial state
Set USBA1 enable pin to output only during initialize, which retaining current value. BUG=b:255269471 BRANCH=none TEST=Not lost USBA storage after sysjump manually. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: Ib2b6d1900de974150d5a8d677016deeb40e98a26 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4012839 Reviewed-by: Devin Lu <devin.lu@quantatw.com> Reviewed-by: Peter Marheine <pmarheine@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
-rw-r--r--zephyr/program/nissa/src/sub_board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zephyr/program/nissa/src/sub_board.c b/zephyr/program/nissa/src/sub_board.c
index 3ccbcd9325..f50c0bdca8 100644
--- a/zephyr/program/nissa/src/sub_board.c
+++ b/zephyr/program/nissa/src/sub_board.c
@@ -157,14 +157,14 @@ static void nereid_subboard_config(void)
if (sb == NISSA_SB_C_A || sb == NISSA_SB_HDMI_A ||
sb == NISSA_SB_NONE) {
/*
- * Configure VBUS enable, default off.
+ * Configure VBUS enable, retaining current value.
* SB_NONE indicates missing fw_config; it's safe to enable VBUS
* control in this case since all that will happen is we turn
* off power to LTE, and it's useful to allow USB-A to work in
* such a configuration.
*/
gpio_pin_configure_dt(GPIO_DT_FROM_ALIAS(gpio_en_usb_a1_vbus),
- GPIO_OUTPUT_LOW);
+ GPIO_OUTPUT);
} else {
/* Turn off unused pins */
gpio_pin_configure_dt(