diff options
author | Madhurima Paruchuri <mparuchuri@google.com> | 2023-03-15 18:53:13 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-04-12 12:23:45 +0000 |
commit | 48cde011ac52a82e5c34d8b50a17c1ae63deaa45 (patch) | |
tree | d6fdeefc8bfc2888ac36232abd6a9553d1943bdc /include | |
parent | 41f8e65766df34f701417e4b234bc863c3e1f072 (diff) | |
download | chrome-ec-48cde011ac52a82e5c34d8b50a17c1ae63deaa45.tar.gz |
retimer: Add driver for ANX7452 retimer
BUG=b:267589042
BRANCH=None
TEST=./twister -s drivers/drivers.anx7452 -c --coverage
Change-Id: I99be488d82a58a5d38a2afcef0966b9c3236074d
Signed-off-by: Madhurima Paruchuri <mparuchuri@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4226575
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 1 | ||||
-rw-r--r-- | include/driver/retimer/anx7452_public.h | 26 |
2 files changed, 27 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index cc95bed7f6..96c79a2d93 100644 --- a/include/config.h +++ b/include/config.h @@ -4981,6 +4981,7 @@ * Type-C retimer drivers to be used. */ #undef CONFIG_USBC_RETIMER_ANX7483 +#undef CONFIG_USBC_RETIMER_ANX7452 #undef CONFIG_USBC_RETIMER_INTEL_BB #undef CONFIG_USBC_RETIMER_KB800X #undef CONFIG_USBC_RETIMER_NB7V904M diff --git a/include/driver/retimer/anx7452_public.h b/include/driver/retimer/anx7452_public.h new file mode 100644 index 0000000000..ffd8497836 --- /dev/null +++ b/include/driver/retimer/anx7452_public.h @@ -0,0 +1,26 @@ +/* Copyright 2023 The ChromiumOS Authors + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + * + * ANX7452: Active redriver + * + * Public functions, definitions, and structures. + */ + +#ifndef __CROS_EC_USB_RETIMER_ANX7452_PUBLIC_H +#define __CROS_EC_USB_RETIMER_ANX7452_PUBLIC_H + +#include "usb_mux.h" + +extern const struct usb_mux_driver anx7452_usb_retimer_driver; + +/* Retimer driver hardware specific controls */ +struct anx7452_control { + /* USB enable */ + const enum gpio_signal usb_enable_gpio; + /* DP enable */ + const enum gpio_signal dp_enable_gpio; +}; +extern const struct anx7452_control anx7452_controls[]; + +#endif /* __CROS_EC_USB_RETIMER_ANX7452_PUBLIC_H */ |