diff options
author | Scott Collyer <scollyer@google.com> | 2020-06-15 20:56:25 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-24 08:24:36 +0000 |
commit | 2208683df12d210cb561af4183537e235d8ba1a5 (patch) | |
tree | 74874376d9d72c1c18907adc0e3eb9eb507935a6 /driver | |
parent | 4aa42ad1f88afacf5b5d392f8ec96b03a9716c95 (diff) | |
download | chrome-ec-2208683df12d210cb561af4183537e235d8ba1a5.tar.gz |
tusb1064: Add full list of possible I2C device addresses
The TUSB1064 has 16 possible I2C device addresses. This CL adds this
full list to the tusb1064.h file. In addition, the TUSB1064 device
address was updated to match the new macro.
BUG=b:168621142
BRANCH=servo
TEST=make -j buildall
Signed-off-by: Scott Collyer <scollyer@google.com>
Change-Id: I1ee836ef0a88adab1af63901c2ec0be7cef7b232
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2267630
Commit-Queue: Scott Collyer <scollyer@chromium.org>
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Sam Hurst <shurst@google.com>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r-- | driver/usb_mux/tusb1064.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/driver/usb_mux/tusb1064.h b/driver/usb_mux/tusb1064.h index 9f5873d8ab..e860cc539a 100644 --- a/driver/usb_mux/tusb1064.h +++ b/driver/usb_mux/tusb1064.h @@ -9,7 +9,30 @@ #include <stdint.h> #include "usb_mux.h" -#define TUSB1064_ADDR_FLAGS 0x12 +/* + * TUSB1064 Has 16 possible device addresses which are selected by A1|A0 lines + * using 4 level inputs. + * 0 -> tied directly to GND + * R -> tied to GND via a 20k pulldown + * F -> floating + * 1 -> tied to VCC + */ +#define TUSB1064_I2C_ADDR0_FLAGS 0x44 +#define TUSB1064_I2C_ADDR1_FLAGS 0x45 +#define TUSB1064_I2C_ADDR2_FLAGS 0x46 +#define TUSB1064_I2C_ADDR3_FLAGS 0x47 +#define TUSB1064_I2C_ADDR4_FLAGS 0x20 +#define TUSB1064_I2C_ADDR5_FLAGS 0x21 +#define TUSB1064_I2C_ADDR6_FLAGS 0x22 +#define TUSB1064_I2C_ADDR7_FLAGS 0x23 +#define TUSB1064_I2C_ADDR8_FLAGS 0x10 +#define TUSB1064_I2C_ADDR9_FLAGS 0x11 +#define TUSB1064_I2C_ADDR10_FLAGS 0x12 +#define TUSB1064_I2C_ADDR11_FLAGS 0x13 +#define TUSB1064_I2C_ADDR12_FLAGS 0x0C +#define TUSB1064_I2C_ADDR13_FLAGS 0x0D +#define TUSB1064_I2C_ADDR14_FLAGS 0x0E +#define TUSB1064_I2C_ADDR15_FLAGS 0x0F /* TUSB1064 General Register */ #define TUSB1064_REG_GENERAL 0x0a |