diff options
author | Rob Barnes <robbarnes@google.com> | 2021-06-07 14:53:59 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-14 21:33:03 +0000 |
commit | 592ef1dafdd59629df85b9852fbb629c0323acd6 (patch) | |
tree | c31dc2bf908939e9b7816903c3f4775f84d54aca /baseboard/guybrush | |
parent | 417c1411ed94cdbc27e99a3ca829b786b9a4ec4e (diff) | |
download | chrome-ec-592ef1dafdd59629df85b9852fbb629c0323acd6.tar.gz |
guybrush: Add PS8811 driver
Add PS8811 USB A retimer driver. Reusing USB mux structure even though
the retimer does not have a mux.
BUG=b:176987937
TEST=Build and run
BRANCH=None
Signed-off-by: Rob Barnes <robbarnes@google.com>
Change-Id: Ie11a105f344e6acc1312cda517fdfe54ecb8c8ea
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2946307
Commit-Queue: Diana Z <dzigterman@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'baseboard/guybrush')
-rw-r--r-- | baseboard/guybrush/baseboard.c | 5 | ||||
-rw-r--r-- | baseboard/guybrush/baseboard.h | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/baseboard/guybrush/baseboard.c b/baseboard/guybrush/baseboard.c index 1eb6207013..3163079698 100644 --- a/baseboard/guybrush/baseboard.c +++ b/baseboard/guybrush/baseboard.c @@ -867,9 +867,8 @@ static int baseboard_a1_ps8811_retimer_init(const struct usb_mux *me) do { int val; - rv = i2c_read8(me->i2c_port, - me->i2c_addr_flags + PS8811_REG_PAGE1, - PS8811_REG1_USB_BEQ_LEVEL, &val); + rv = ps8811_i2c_read(me, PS8811_REG_PAGE1, + PS8811_REG1_USB_BEQ_LEVEL, &val); } while (rv && --tries); if (rv) { diff --git a/baseboard/guybrush/baseboard.h b/baseboard/guybrush/baseboard.h index 56340d0002..d066a2f7da 100644 --- a/baseboard/guybrush/baseboard.h +++ b/baseboard/guybrush/baseboard.h @@ -182,6 +182,7 @@ #define CONFIG_USB_MUX_ANX7451 #define CONFIG_USB_PD_PORT_MAX_COUNT 2 #define CONFIG_USBC_PPC_NX20P3483 +#define CONFIG_USBC_RETIMER_PS8811 #define CONFIG_USBC_RETIMER_PS8818 #define CONFIG_USBC_RETIMER_ANX7451 #define CONFIG_USB_MUX_RUNTIME_CONFIG |