From 55f94fddd191ba046d2f8296270824c413341905 Mon Sep 17 00:00:00 2001 From: Peter Marheine Date: Wed, 23 Mar 2022 16:44:54 +1100 Subject: 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 Change-Id: I46ab952ba2e191c490a1d10303f1e15992dd4189 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3544751 Reviewed-by: Andrew McRae Commit-Queue: Andrew McRae --- zephyr/projects/nissa/src/common.c | 23 ----------------------- 1 file changed, 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); } /* -- cgit v1.2.1