diff options
Diffstat (limited to 'board')
-rw-r--r-- | board/atlas/board.c | 6 | ||||
-rw-r--r-- | board/cheza/board.c | 7 | ||||
-rw-r--r-- | board/coral/board.c | 6 | ||||
-rw-r--r-- | board/eve/board.c | 6 | ||||
-rw-r--r-- | board/fizz/board.c | 4 | ||||
-rw-r--r-- | board/glkrvp/chg_usb_pd.c | 6 | ||||
-rw-r--r-- | board/glkrvp_ite/chg_usb_pd.c | 6 | ||||
-rw-r--r-- | board/nami/board.c | 6 | ||||
-rw-r--r-- | board/nautilus/board.c | 6 | ||||
-rw-r--r-- | board/nocturne/board.c | 6 | ||||
-rw-r--r-- | board/poppy/board.c | 6 | ||||
-rw-r--r-- | board/rammus/board.c | 6 | ||||
-rw-r--r-- | board/reef/board.c | 6 | ||||
-rw-r--r-- | board/reef_mchp/board.c | 6 |
14 files changed, 54 insertions, 29 deletions
diff --git a/board/atlas/board.c b/board/atlas/board.c index 5deb1e3d64..57951e4a81 100644 --- a/board/atlas/board.c +++ b/board/atlas/board.c @@ -174,14 +174,16 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { .i2c_host_port = I2C_PORT_TCPC0, .i2c_slave_addr = I2C_ADDR_TCPC, .drv = &ps8xxx_tcpm_drv, - .pol = TCPC_ALERT_ACTIVE_LOW + /* Alert is active-low, push-pull */ + .flags = 0, }, { /* right port */ .i2c_host_port = I2C_PORT_TCPC1, .i2c_slave_addr = I2C_ADDR_TCPC, .drv = &ps8xxx_tcpm_drv, - .pol = TCPC_ALERT_ACTIVE_LOW + /* Alert is active-low, push-pull */ + .flags = 0, }, }; diff --git a/board/cheza/board.c b/board/cheza/board.c index 118d367b01..1966465533 100644 --- a/board/cheza/board.c +++ b/board/cheza/board.c @@ -254,10 +254,11 @@ unsigned int ppc_cnt = ARRAY_SIZE(ppc_chips); /* TCPC mux configuration */ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { + /* Alert is active-low, open-drain */ [USB_PD_PORT_ANX3429] = {I2C_PORT_TCPC0, 0x50, &anx74xx_tcpm_drv, - TCPC_ALERT_ACTIVE_LOW, TCPC_ALERT_OPEN_DRAIN}, - [USB_PD_PORT_PS8751] = {I2C_PORT_TCPC1, 0x16, &ps8xxx_tcpm_drv, - TCPC_ALERT_ACTIVE_LOW}, + TCPC_FLAGS_ALERT_OD}, + /* Alert is active-low, push-pull */ + [USB_PD_PORT_PS8751] = {I2C_PORT_TCPC1, 0x16, &ps8xxx_tcpm_drv, 0}, }; /* diff --git a/board/coral/board.c b/board/coral/board.c index b8a9f40f80..94e39c9382 100644 --- a/board/coral/board.c +++ b/board/coral/board.c @@ -245,13 +245,15 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { .i2c_host_port = NPCX_I2C_PORT0_0, .i2c_slave_addr = ANX74XX_I2C_ADDR1, .drv = &anx74xx_tcpm_drv, - .pol = TCPC_ALERT_ACTIVE_LOW, + /* Alert is active-low, push-pull */ + .flags = 0, }, [USB_PD_PORT_PS8751] = { .i2c_host_port = NPCX_I2C_PORT0_1, .i2c_slave_addr = PS8751_I2C_ADDR1, .drv = &ps8xxx_tcpm_drv, - .pol = TCPC_ALERT_ACTIVE_LOW, + /* Alert is active-low, push-pull */ + .flags = 0, }, }; diff --git a/board/eve/board.c b/board/eve/board.c index 5153858b4e..45780cd8b0 100644 --- a/board/eve/board.c +++ b/board/eve/board.c @@ -218,13 +218,15 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { .i2c_host_port = I2C_PORT_TCPC0, .i2c_slave_addr = ANX74XX_I2C_ADDR1, .drv = &anx74xx_tcpm_drv, - .pol = TCPC_ALERT_ACTIVE_LOW, + /* Alert is active-low, push-pull */ + .flags = 0, }, { .i2c_host_port = I2C_PORT_TCPC1, .i2c_slave_addr = ANX74XX_I2C_ADDR1, .drv = &anx74xx_tcpm_drv, - .pol = TCPC_ALERT_ACTIVE_LOW, + /* Alert is active-low, push-pull */ + .flags = 0, }, }; diff --git a/board/fizz/board.c b/board/fizz/board.c index 7321234fe4..8beb89fce8 100644 --- a/board/fizz/board.c +++ b/board/fizz/board.c @@ -191,8 +191,8 @@ const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); /* TCPC mux configuration */ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { - {NPCX_I2C_PORT0_0, I2C_ADDR_TCPC0, &ps8xxx_tcpm_drv, - TCPC_ALERT_ACTIVE_LOW}, + /* Alert is active-low, push-pull */ + {NPCX_I2C_PORT0_0, I2C_ADDR_TCPC0, &ps8xxx_tcpm_drv, 0}, }; static int ps8751_tune_mux(int port) diff --git a/board/glkrvp/chg_usb_pd.c b/board/glkrvp/chg_usb_pd.c index 6ca5006860..3e4d739d56 100644 --- a/board/glkrvp/chg_usb_pd.c +++ b/board/glkrvp/chg_usb_pd.c @@ -31,8 +31,10 @@ enum glkrvp_charge_ports { }; const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { - {NPCX_I2C_PORT7_0, 0xA0, &tcpci_tcpm_drv, TCPC_ALERT_ACTIVE_LOW}, - {NPCX_I2C_PORT7_0, 0xA4, &tcpci_tcpm_drv, TCPC_ALERT_ACTIVE_LOW}, + /* Alert is active-low, push-pull */ + {NPCX_I2C_PORT7_0, 0xA0, &tcpci_tcpm_drv, 0}, + /* Alert is active-low, push-pull */ + {NPCX_I2C_PORT7_0, 0xA4, &tcpci_tcpm_drv, 0}, }; BUILD_ASSERT(ARRAY_SIZE(tcpc_config) == CONFIG_USB_PD_PORT_MAX_COUNT); diff --git a/board/glkrvp_ite/chg_usb_pd.c b/board/glkrvp_ite/chg_usb_pd.c index 6d6111d19a..36d3acfa85 100644 --- a/board/glkrvp_ite/chg_usb_pd.c +++ b/board/glkrvp_ite/chg_usb_pd.c @@ -31,8 +31,10 @@ enum glkrvp_charge_ports { }; const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { - {IT83XX_I2C_CH_B, 0xA0, &tcpci_tcpm_drv, TCPC_ALERT_ACTIVE_LOW}, - {IT83XX_I2C_CH_B, 0xA4, &tcpci_tcpm_drv, TCPC_ALERT_ACTIVE_LOW}, + /* Alert is active-low, push-pull */ + {IT83XX_I2C_CH_B, 0xA0, &tcpci_tcpm_drv, 0}, + /* Alert is active-low, push-pull */ + {IT83XX_I2C_CH_B, 0xA4, &tcpci_tcpm_drv, 0}, }; BUILD_ASSERT(ARRAY_SIZE(tcpc_config) == CONFIG_USB_PD_PORT_MAX_COUNT); diff --git a/board/nami/board.c b/board/nami/board.c index ac413125a3..a0fdc9152d 100644 --- a/board/nami/board.c +++ b/board/nami/board.c @@ -221,13 +221,15 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { .i2c_host_port = NPCX_I2C_PORT0_0, .i2c_slave_addr = PS8751_I2C_ADDR1, .drv = &ps8xxx_tcpm_drv, - .pol = TCPC_ALERT_ACTIVE_LOW, + /* Alert is active-low, push-pull */ + .flags = 0, }, [USB_PD_PORT_ANX7447] = { .i2c_host_port = NPCX_I2C_PORT0_1, .i2c_slave_addr = AN7447_TCPC3_I2C_ADDR, /* Verified on v1.1 */ .drv = &anx7447_tcpm_drv, - .pol = TCPC_ALERT_ACTIVE_LOW, + /* Alert is active-low, push-pull */ + .flags = 0, }, }; diff --git a/board/nautilus/board.c b/board/nautilus/board.c index d95e4171ff..ca83ec2ea0 100644 --- a/board/nautilus/board.c +++ b/board/nautilus/board.c @@ -171,13 +171,15 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { .i2c_host_port = NPCX_I2C_PORT0_0, .i2c_slave_addr = PS8751_I2C_ADDR1, .drv = &ps8xxx_tcpm_drv, - .pol = TCPC_ALERT_ACTIVE_LOW, + /* Alert is active-low, push-pull */ + .flags = 0, }, { .i2c_host_port = NPCX_I2C_PORT0_1, .i2c_slave_addr = PS8751_I2C_ADDR1, .drv = &ps8xxx_tcpm_drv, - .pol = TCPC_ALERT_ACTIVE_LOW, + /* Alert is active-low, push-pull */ + .flags = 0, }, }; diff --git a/board/nocturne/board.c b/board/nocturne/board.c index 883c1c87c2..1eac2e7c57 100644 --- a/board/nocturne/board.c +++ b/board/nocturne/board.c @@ -301,14 +301,16 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { .i2c_host_port = I2C_PORT_USB_C0, .i2c_slave_addr = PS8751_I2C_ADDR1, .drv = &tcpci_tcpm_drv, - .pol = TCPC_ALERT_ACTIVE_LOW, + /* Alert is active-low, push-pull */ + .flags = 0, }, { .i2c_host_port = I2C_PORT_USB_C1, .i2c_slave_addr = PS8751_I2C_ADDR1, .drv = &tcpci_tcpm_drv, - .pol = TCPC_ALERT_ACTIVE_LOW, + /* Alert is active-low, push-pull */ + .flags = 0, }, }; diff --git a/board/poppy/board.c b/board/poppy/board.c index 08870c0efa..f49a2f0823 100644 --- a/board/poppy/board.c +++ b/board/poppy/board.c @@ -213,13 +213,15 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { .i2c_host_port = NPCX_I2C_PORT0_0, .i2c_slave_addr = ANX74XX_I2C_ADDR1, .drv = &anx74xx_tcpm_drv, - .pol = TCPC_ALERT_ACTIVE_LOW, + /* Alert is active-low, push-pull */ + .flags = 0, }, { .i2c_host_port = NPCX_I2C_PORT0_0, .i2c_slave_addr = PS8751_I2C_ADDR1, .drv = &ps8xxx_tcpm_drv, - .pol = TCPC_ALERT_ACTIVE_LOW, + /* Alert is active-low, push-pull */ + .flags = 0, }, }; diff --git a/board/rammus/board.c b/board/rammus/board.c index e5b8f7ef38..d1219e4124 100644 --- a/board/rammus/board.c +++ b/board/rammus/board.c @@ -165,13 +165,15 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { .i2c_host_port = I2C_PORT_TCPC1, .i2c_slave_addr = PS8751_I2C_ADDR1, .drv = &ps8xxx_tcpm_drv, - .pol = TCPC_ALERT_ACTIVE_LOW, + /* Alert is active-low, push-pull */ + .flags = 0, }, [USB_PD_PORT_ANX7447] = { .i2c_host_port = I2C_PORT_TCPC0, .i2c_slave_addr = AN7447_TCPC3_I2C_ADDR, /* Verified on v1.1 */ .drv = &anx7447_tcpm_drv, - .pol = TCPC_ALERT_ACTIVE_LOW, + /* Alert is active-low, push-pull */ + .flags = 0, }, }; diff --git a/board/reef/board.c b/board/reef/board.c index ba1621c430..4bfdb4c2a2 100644 --- a/board/reef/board.c +++ b/board/reef/board.c @@ -250,13 +250,15 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { .i2c_host_port = NPCX_I2C_PORT0_0, .i2c_slave_addr = ANX74XX_I2C_ADDR1, .drv = &anx74xx_tcpm_drv, - .pol = TCPC_ALERT_ACTIVE_LOW, + /* Alert is active-low, push-pull */ + .flags = 0, }, [USB_PD_PORT_PS8751] = { .i2c_host_port = NPCX_I2C_PORT0_1, .i2c_slave_addr = PS8751_I2C_ADDR1, .drv = &ps8xxx_tcpm_drv, - .pol = TCPC_ALERT_ACTIVE_LOW, + /* Alert is active-low, push-pull */ + .flags = 0, }, }; diff --git a/board/reef_mchp/board.c b/board/reef_mchp/board.c index 99b5207461..eb1db092ce 100644 --- a/board/reef_mchp/board.c +++ b/board/reef_mchp/board.c @@ -364,13 +364,15 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { .i2c_host_port = MCHP_I2C_PORT0, .i2c_slave_addr = 0x50, .drv = &anx74xx_tcpm_drv, - .pol = TCPC_ALERT_ACTIVE_LOW, + /* Alert is active-low, push-pull */ + .flags = 0, }, [USB_PD_PORT_PS8751] = { .i2c_host_port = MCHP_I2C_PORT2, .i2c_slave_addr = 0x16, .drv = &ps8xxx_tcpm_drv, - .pol = TCPC_ALERT_ACTIVE_LOW, + /* Alert is active-low, push-pull */ + .flags = 0, }, }; |