summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/volteer/board.c9
-rw-r--r--board/volteer/board.h6
-rw-r--r--board/volteer/gpio.inc2
3 files changed, 17 insertions, 0 deletions
diff --git a/board/volteer/board.c b/board/volteer/board.c
index 68515fd95e..e2d0d9cd5e 100644
--- a/board/volteer/board.c
+++ b/board/volteer/board.c
@@ -236,3 +236,12 @@ const struct pwm_t pwm_channels[] = {
},
};
BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT);
+
+/******************************************************************************/
+/* USB-A charging control */
+
+const int usb_port_enable[USB_PORT_COUNT] = {
+ GPIO_EN_PP5000_USBA,
+};
+
+
diff --git a/board/volteer/board.h b/board/volteer/board.h
index 9b09dab9c0..f1903cad36 100644
--- a/board/volteer/board.h
+++ b/board/volteer/board.h
@@ -21,6 +21,9 @@
#undef CONFIG_UART_TX_BUF_SIZE
#define CONFIG_UART_TX_BUF_SIZE 4096
+/* Chipset features */
+#define CONFIG_POWER_PP5000_CONTROL
+
/* LED defines */
#define CONFIG_LED_PWM
/* Although there are 2 LEDs, they are both controlled by the same lines. */
@@ -72,6 +75,9 @@
#define CONFIG_USB_PD_USB4
/* USB Type A Features */
+#define USB_PORT_COUNT 1
+#define CONFIG_USB_PORT_POWER_DUMB
+
/* BC 1.2 */
diff --git a/board/volteer/gpio.inc b/board/volteer/gpio.inc
index 21484702d0..d14f1c9e59 100644
--- a/board/volteer/gpio.inc
+++ b/board/volteer/gpio.inc
@@ -94,6 +94,8 @@ GPIO(SYS_RST_ODL, PIN(C, 5), GPIO_ODR_HIGH)
GPIO(EC_PCH_INT_ODL, PIN(B, 0), GPIO_ODR_HIGH)
/* USB and USBC Signals */
+GPIO(EN_PP5000_USBA, PIN(C, 6), GPIO_OUT_LOW) /* Enable USB-A charging - all ports */
+GPIO(USB_A_LOW_PWR_OD, PIN(6, 6), GPIO_ODR_LOW) /* Don't limit USB-A charging by default - all ports */
/*
* USB_C1 moved from GPIO32 to GPIO83 on boards with board ID >=1.