diff options
-rw-r--r-- | board/kevin/gpio.inc | 4 | ||||
-rw-r--r-- | board/kevin/usb_pd_policy.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/board/kevin/gpio.inc b/board/kevin/gpio.inc index bbd5b4f0cf..d8b8d6ab91 100644 --- a/board/kevin/gpio.inc +++ b/board/kevin/gpio.inc @@ -95,8 +95,8 @@ GPIO(LID_ACCEL_INT_L, PIN(C, 7), GPIO_INPUT) /* KSO2 is inverted */ GPIO(KBD_KSO2, PIN(1, 7), GPIO_OUT_LOW) -GPIO(USB_C0_5V_EN, PIN(D, 3), GPIO_OUT_LOW) -GPIO(USB_C1_5V_EN, PIN(D, 2), GPIO_OUT_LOW) +GPIO(USB_C0_5V_EN, PIN(D, 3), GPIO_OUT_LOW | GPIO_PULL_UP) +GPIO(USB_C1_5V_EN, PIN(D, 2), GPIO_OUT_LOW | GPIO_PULL_UP) GPIO(ENTERING_RW, PIN(7, 6), GPIO_OUT_LOW) GPIO(SYS_RST_L, PIN(6, 1), GPIO_OUT_HIGH | GPIO_OPEN_DRAIN) diff --git a/board/kevin/usb_pd_policy.c b/board/kevin/usb_pd_policy.c index 4e753d76a9..dbd8bceec3 100644 --- a/board/kevin/usb_pd_policy.c +++ b/board/kevin/usb_pd_policy.c @@ -64,7 +64,7 @@ static void board_vbus_update_source_current(int port) { enum gpio_signal gpio = port ? GPIO_USB_C1_5V_EN : GPIO_USB_C0_5V_EN; int flags = (vbus_rp[port] == TYPEC_RP_1A5 && vbus_en[port]) ? - (GPIO_INPUT | GPIO_PULL_UP) : GPIO_OUTPUT; + (GPIO_INPUT | GPIO_PULL_UP) : (GPIO_OUTPUT | GPIO_PULL_UP); /* * Driving USB_Cx_5V_EN high, actually put a 16.5k resistance |