summaryrefslogtreecommitdiff
path: root/common/usb_port_power_dumb.c
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2022-03-02 10:14:53 -0700
committerCommit Bot <commit-bot@chromium.org>2022-03-04 00:56:01 +0000
commitaaab95922e0057b6e90064e2c5f86aeb3b409620 (patch)
tree5b51399871ed6b75c0026c6fb05adca3985de0ed /common/usb_port_power_dumb.c
parent54e40d376a0024962ea023cfb3d6aebe9390ab40 (diff)
downloadchrome-ec-aaab95922e0057b6e90064e2c5f86aeb3b409620.tar.gz
USB: Enable port power to use IOEX pins
In the zephyr build, the API gpio_or_ioex_set_level() must be used to set something which may be a GPIO pin or may be an IOEX pin. BRANCH=None BUG=b:208515128 TEST=zmake testall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I5817abd5f7920f958021f136d260d61077c3116b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3499292 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'common/usb_port_power_dumb.c')
-rw-r--r--common/usb_port_power_dumb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/usb_port_power_dumb.c b/common/usb_port_power_dumb.c
index 09c7e29033..d298444fb7 100644
--- a/common/usb_port_power_dumb.c
+++ b/common/usb_port_power_dumb.c
@@ -22,7 +22,7 @@ static uint8_t charge_mode[USB_PORT_COUNT];
static void usb_port_set_enabled(int port_id, int en)
{
- gpio_set_level(usb_port_enable[port_id], en);
+ gpio_or_ioex_set_level(usb_port_enable[port_id], en);
charge_mode[port_id] = en;
}