summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/copano/board.c7
-rw-r--r--board/copano/board.h5
-rw-r--r--board/copano/gpio.inc2
3 files changed, 14 insertions, 0 deletions
diff --git a/board/copano/board.c b/board/copano/board.c
index 702d093218..ec85a2dad2 100644
--- a/board/copano/board.c
+++ b/board/copano/board.c
@@ -394,3 +394,10 @@ int ppc_get_alert_status(int port)
else
return gpio_get_level(GPIO_USB_C1_PPC_INT_ODL) == 0;
}
+
+/******************************************************************************/
+/* USB-A charging control */
+const int usb_port_enable[USB_PORT_COUNT] = {
+ GPIO_EN_PP5000_USBA,
+};
+
diff --git a/board/copano/board.h b/board/copano/board.h
index f894160893..857719a6d5 100644
--- a/board/copano/board.h
+++ b/board/copano/board.h
@@ -27,6 +27,9 @@
#undef CONFIG_UART_TX_BUF_SIZE
#define CONFIG_UART_TX_BUF_SIZE 4096
+/* Chipset features */
+#define CONFIG_POWER_PP5000_CONTROL
+
#undef NPCX_PWM1_SEL
#define NPCX_PWM1_SEL 0 /* GPIO C2 is not used as PWM1 */
@@ -78,6 +81,8 @@
#define USBC_PORT_C1_BB_RETIMER_I2C_ADDR 0x40
/* USB Type A Features */
+#define USB_PORT_COUNT 1
+#define CONFIG_USB_PORT_POWER_DUMB
/* USBC PPC*/
#define CONFIG_USBC_PPC_SYV682X /* USBC port C0/C1 */
diff --git a/board/copano/gpio.inc b/board/copano/gpio.inc
index 2ce5fd7a8b..a117c003e5 100644
--- a/board/copano/gpio.inc
+++ b/board/copano/gpio.inc
@@ -76,6 +76,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.