diff options
author | Eric Herrmann <eherrmann@chromium.org> | 2020-08-03 15:46:58 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-09 22:59:52 +0000 |
commit | 036b58da6630b42470b2f07d286c821670358482 (patch) | |
tree | 01da0d67fa64003f7ca6dc8182227cdbda988932 /driver/tcpm/rt1715.h | |
parent | 0cd34573caa2b786bfe3528231c3206a00f3c9cf (diff) | |
download | chrome-ec-036b58da6630b42470b2f07d286c821670358482.tar.gz |
Volteer: Add support for RT1715
Add support for replacing the TUSB422 with the RT1715. Since they are
pin-to-pin compatible and currently only used with a rework, make the
decision of which to use at runtime. The logic is to check if the RT1715
is both on the I2C bus and the vendor ID matches. If either fail, default
to the TUSB422 address and driver.
BUG=b:162617664
TEST=make buildall
TEST=check both TUSB422 functionality and RT1715 functionality
BRANCH=none
Change-Id: I8306f086bf030ddd7238532b1f12aa259cb72422
Signed-off-by: Eric Herrmann <eherrmann@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2343734
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'driver/tcpm/rt1715.h')
-rw-r--r-- | driver/tcpm/rt1715.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/driver/tcpm/rt1715.h b/driver/tcpm/rt1715.h index aff3bc3ba6..f9d2395446 100644 --- a/driver/tcpm/rt1715.h +++ b/driver/tcpm/rt1715.h @@ -11,6 +11,8 @@ /* I2C interface */ #define RT1715_I2C_ADDR_FLAGS 0x4E +#define RT1715_VENDOR_ID 0x29CF + #define RT1715_REG_VENDOR_5 0x9B #define RT1715_REG_VENDOR_5_SHUTDOWN_OFF BIT(5) #define RT1715_REG_VENDOR_5_ENEXTMSG BIT(4) |