diff options
-rw-r--r-- | board/garg/board.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/garg/board.c b/board/garg/board.c index 8da97ef1c8..3aa4c5cb65 100644 --- a/board/garg/board.c +++ b/board/garg/board.c @@ -301,3 +301,11 @@ void board_overcurrent_event(int port, int is_overcurrented) /* Note that the level is inverted because the pin is active low. */ gpio_set_level(GPIO_USB_C_OC, !is_overcurrented); } + +uint8_t board_get_usb_pd_port_count(void) +{ + /* HDMI SKU has one USB PD port */ + if (sku_id == 9) + return CONFIG_USB_PD_PORT_MAX_COUNT - 1; + return CONFIG_USB_PD_PORT_MAX_COUNT; +} |