Skip to content

Commit 4844236

Browse files
Deepti DeshattyCommit Bot
authored andcommitted
nivviks/usbc: enable vbus voltage monitoring
RAA489000 tcpc shows TCPC_REG_VBUS_VOLTAGE register value as zero always. Set bit in tcpc_config flags to enable vbus voltage reporting by tcpc. This will help to debug issues related to USB-C VBUS voltage. BUG=b:219891340 BRANCH=none TEST=TCPC RAA489000 reports measured vbus voltage in TCPC_REG_VBUS_VOLTAGE register. Change-Id: Ifa95132a9646e318b3734ab6b012de76adf47d79 Signed-off-by: Deepti Deshatty <[email protected]> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3476655 Reviewed-by: Diana Z <[email protected]>
1 parent 82d1fd3 commit 4844236

File tree

1 file changed

+4
-2
lines changed
  • zephyr/projects/nissa/src/nivviks

1 file changed

+4
-2
lines changed

zephyr/projects/nissa/src/nivviks/usbc.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = {
2626
},
2727
.drv = &raa489000_tcpm_drv,
2828
/* RAA489000 implements TCPCI 2.0 */
29-
.flags = TCPC_FLAGS_TCPCI_REV2_0,
29+
.flags = TCPC_FLAGS_TCPCI_REV2_0 |
30+
TCPC_FLAGS_VBUS_MONITOR,
3031
},
3132
{ /* sub-board */
3233
.bus_type = EC_BUS_TYPE_I2C,
@@ -36,7 +37,8 @@ struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = {
3637
},
3738
.drv = &raa489000_tcpm_drv,
3839
/* RAA489000 implements TCPCI 2.0 */
39-
.flags = TCPC_FLAGS_TCPCI_REV2_0,
40+
.flags = TCPC_FLAGS_TCPCI_REV2_0 |
41+
TCPC_FLAGS_VBUS_MONITOR,
4042
},
4143
};
4244

0 commit comments

Comments
 (0)