diff options
author | Peter Marheine <pmarheine@chromium.org> | 2022-03-23 16:44:54 +1100 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-03-23 08:16:29 +0000 |
commit | 55f94fddd191ba046d2f8296270824c413341905 (patch) | |
tree | 5993a413c2b7429eb5edcff224d4be5977199c04 | |
parent | c57ddf75cd7fe337f03d3c59c9d5e9e120ad6bc3 (diff) | |
download | chrome-ec-55f94fddd191ba046d2f8296270824c413341905.tar.gz |
nissa: remove manual USB-A VBUS enable twiddling
Commit 3fceb32f74625fca5b589410fed37740ee2d0165 enabled this with the
standard mechanism, so we can remove this temporary hack.
BUG=b:222238390
TEST=en_usb_a0_vbus GPIO automatically changes state with AP power,
according to `gpioget en_usb_a0_vbus`
BRANCH=none
Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Change-Id: I46ab952ba2e191c490a1d10303f1e15992dd4189
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3544751
Reviewed-by: Andrew McRae <amcrae@google.com>
Commit-Queue: Andrew McRae <amcrae@google.com>
-rw-r--r-- | zephyr/projects/nissa/src/common.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/zephyr/projects/nissa/src/common.c b/zephyr/projects/nissa/src/common.c index 78116f9f7a..741702a7b2 100644 --- a/zephyr/projects/nissa/src/common.c +++ b/zephyr/projects/nissa/src/common.c @@ -51,33 +51,10 @@ __override uint8_t board_get_usb_pd_port_count(void) static void board_power_change(struct ap_power_ev_callback *cb, struct ap_power_ev_data data) { - int value; - switch (data.event) { default: return; - - case AP_POWER_STARTUP: - /* - * Called on AP S4 -> S3 transitio - * - * Enable USB-A vbus - * TODO(b/222238390):remove when BC1.2 is enabled. - */ - value = 1; - break; - - case AP_POWER_SHUTDOWN: - /* - * Called on AP S4 -> S5 transition - * - * Disable USB-A vbus - * TODO(b/222238390):remove when BC1.2 is enabled. - */ - value = 0; - break; } - gpio_pin_set_dt(GPIO_DT_FROM_NODELABEL(gpio_en_usb_a0_vbus), value); } /* |