diff options
author | Edward Hill <ecgh@chromium.org> | 2020-02-14 10:38:35 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-02-14 23:50:38 +0000 |
commit | b55607c5df6e4a8f1b80b5bcbb0a938b3674b464 (patch) | |
tree | 1618bfc6ee2f5539761dc0e42f2de4d347c61f93 /board/waddledoo/board.c | |
parent | 27e3b57d2f37edd49b04bfa89ca6dd9c14c6c1ea (diff) | |
download | chrome-ec-b55607c5df6e4a8f1b80b5bcbb0a938b3674b464.tar.gz |
tcpci: Rename TCPC_FLAGS_TCPCI_V2_0 to TCPC_FLAGS_TCPCI_REV2_0
Align naming of TCPC_FLAGS_TCPCI_V2_0 to match spec:
"USB Type-C Port Controller Interface Specification"
"Revision 2.0, Version 1.0"
BUG=none
BRANCH=none
TEST=none
Change-Id: I27752847581e449c3a2f6be438704d3e514c937d
Signed-off-by: Edward Hill <ecgh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2057375
Reviewed-by: Diana Z <dzigterman@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'board/waddledoo/board.c')
-rw-r--r-- | board/waddledoo/board.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/board/waddledoo/board.c b/board/waddledoo/board.c index 59b3cc0552..e0cc88d09b 100644 --- a/board/waddledoo/board.c +++ b/board/waddledoo/board.c @@ -309,7 +309,7 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { .port = I2C_PORT_USB_C0, .addr_flags = RAA489000_TCPC0_I2C_FLAGS, }, - .flags = TCPC_FLAGS_TCPCI_V2_0, + .flags = TCPC_FLAGS_TCPCI_REV2_0, .drv = &raa489000_tcpm_drv, }, @@ -319,7 +319,7 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { .port = I2C_PORT_SUB_USB_C1, .addr_flags = RAA489000_TCPC0_I2C_FLAGS, }, - .flags = TCPC_FLAGS_TCPCI_V2_0, + .flags = TCPC_FLAGS_TCPCI_REV2_0, .drv = &raa489000_tcpm_drv, }, }; @@ -358,8 +358,8 @@ uint16_t tcpc_get_alert_status(void) */ if (!gpio_get_level(GPIO_USB_C0_INT_ODL)) { if (!tcpc_read16(0, TCPC_REG_ALERT, ®val)) { - /* The TCPCI v1.0 spec says to ignore bits 14:12. */ - if (!(tcpc_config[0].flags & TCPC_FLAGS_TCPCI_V2_0)) + /* The TCPCI Rev 1.0 spec says to ignore bits 14:12. */ + if (!(tcpc_config[0].flags & TCPC_FLAGS_TCPCI_REV2_0)) regval &= ~((1 << 14) | (1 << 13) | (1 << 12)); if (regval) @@ -369,8 +369,8 @@ uint16_t tcpc_get_alert_status(void) if (!gpio_get_level(GPIO_SUB_USB_C1_INT_ODL)) { if (!tcpc_read16(1, TCPC_REG_ALERT, ®val)) { - /* TCPCI spec v1.0 says to ignore bits 14:12. */ - if (!(tcpc_config[1].flags & TCPC_FLAGS_TCPCI_V2_0)) + /* TCPCI spec Rev 1.0 says to ignore bits 14:12. */ + if (!(tcpc_config[1].flags & TCPC_FLAGS_TCPCI_REV2_0)) regval &= ~((1 << 14) | (1 << 13) | (1 << 12)); if (regval) |