diff options
author | Diana Z <dzigterman@chromium.org> | 2020-10-16 12:58:20 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-10-28 19:14:28 +0000 |
commit | 3c79b8fbb955f18fc02d1c33449056f0b154d6b5 (patch) | |
tree | 4af9f950788d5c7636747ebcb91a5049ac8285fc /include/usb_pd_tcpc.h | |
parent | c9826aad176be771412d453f37bbc55714afc2b1 (diff) | |
download | chrome-ec-3c79b8fbb955f18fc02d1c33449056f0b154d6b5.tar.gz |
COIL: Re-name to TCPCI_I2C_PERIPHERAL
Boards which don't use a TCPM will define TCPCI_I2C_PERIPHERAL.
BRANCH=None
BUG=None
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: If93e533e059888e8ad5166b29c37bc2243f46947
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2481940
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'include/usb_pd_tcpc.h')
-rw-r--r-- | include/usb_pd_tcpc.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/usb_pd_tcpc.h b/include/usb_pd_tcpc.h index 4ac22d4d86..e1e185d4d0 100644 --- a/include/usb_pd_tcpc.h +++ b/include/usb_pd_tcpc.h @@ -11,12 +11,12 @@ #include <stdint.h> #include "usb_pd_tcpm.h" -/* If we are a TCPC but do not a TCPM, then we implement the slave TCPCI */ +/* If we are a TCPC but not a TCPM, then we implement the peripheral TCPCI */ #if defined(CONFIG_USB_PD_TCPC) && !defined(CONFIG_USB_PD_TCPM_STUB) -#define TCPCI_I2C_SLAVE +#define TCPCI_I2C_PERIPHERAL #endif -#ifdef TCPCI_I2C_SLAVE +#ifdef TCPCI_I2C_PERIPHERAL /* Convert TCPC address to type-C port number */ #define TCPC_ADDR_TO_PORT(addr) ((addr) \ - I2C_GET_ADDR(CONFIG_TCPC_I2C_BASE_ADDR_FLAGS)) @@ -44,7 +44,10 @@ void tcpc_i2c_process(int read, int port, int len, uint8_t *payload, void pd_vbus_evt_p0(enum gpio_signal signal); void pd_vbus_evt_p1(enum gpio_signal signal); -/* Methods for TCPCI slaves (e.g. zinger) to get/set their internal state */ +/* + * Methods for TCPCI peripherals (e.g. zinger) to get/set their internal + * state + */ int tcpc_alert_status(int port, int *alert); int tcpc_alert_status_clear(int port, uint16_t mask); int tcpc_alert_mask_set(int port, uint16_t mask); |