summaryrefslogtreecommitdiff
path: root/board/strago
diff options
context:
space:
mode:
Diffstat (limited to 'board/strago')
-rw-r--r--board/strago/board.c6
-rw-r--r--board/strago/board.h2
-rw-r--r--board/strago/usb_pd_policy.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/board/strago/board.c b/board/strago/board.c
index f63d95da27..03c4c814be 100644
--- a/board/strago/board.c
+++ b/board/strago/board.c
@@ -105,7 +105,7 @@ const struct i2c_port_t i2c_ports[] = {
};
const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
-const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_COUNT] = {
+const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = {
{
.bus_type = EC_BUS_TYPE_I2C,
.i2c_info = {
@@ -139,7 +139,7 @@ struct pi3usb9281_config pi3usb9281_chips[] = {
BUILD_ASSERT(ARRAY_SIZE(pi3usb9281_chips) ==
CONFIG_BC12_DETECT_PI3USB9281_CHIP_COUNT);
-struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_COUNT] = {
+struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_MAX_COUNT] = {
{
.port_addr = 0x55,
.driver = &pi3usb30532_usb_mux_driver,
@@ -285,7 +285,7 @@ int board_set_active_charge_port(int charge_port)
{
/* charge port is a realy physical port */
int is_real_port = (charge_port >= 0 &&
- charge_port < CONFIG_USB_PD_PORT_COUNT);
+ charge_port < CONFIG_USB_PD_PORT_MAX_COUNT);
/* check if we are source vbus on that port */
int source = gpio_get_level(GPIO_USB_C0_5V_EN);
diff --git a/board/strago/board.h b/board/strago/board.h
index db6adcea63..1b44868e0a 100644
--- a/board/strago/board.h
+++ b/board/strago/board.h
@@ -40,7 +40,7 @@
#define CONFIG_USB_PD_ALT_MODE
#define CONFIG_USB_PD_ALT_MODE_DFP
#define CONFIG_USB_PD_DUAL_ROLE
-#define CONFIG_USB_PD_PORT_COUNT 1
+#define CONFIG_USB_PD_PORT_MAX_COUNT 1
#define CONFIG_USB_PD_TCPM_TCPCI
#define CONFIG_USB_PD_TRY_SRC
#define CONFIG_USB_PD_VBUS_DETECT_GPIO
diff --git a/board/strago/usb_pd_policy.c b/board/strago/usb_pd_policy.c
index 748e08a40e..0a12fec103 100644
--- a/board/strago/usb_pd_policy.c
+++ b/board/strago/usb_pd_policy.c
@@ -245,7 +245,7 @@ static int svdm_dp_config(int port, uint32_t *payload)
* timestamp of the next possible toggle to ensure the 2-ms spacing
* between IRQ_HPD.
*/
-static uint64_t hpd_deadline[CONFIG_USB_PD_PORT_COUNT];
+static uint64_t hpd_deadline[CONFIG_USB_PD_PORT_MAX_COUNT];
static void svdm_dp_post_config(int port)
{