diff options
Diffstat (limited to 'include/driver')
-rw-r--r-- | include/driver/charger/isl9241_public.h | 4 | ||||
-rw-r--r-- | include/driver/retimer/anx7452_public.h | 26 |
2 files changed, 30 insertions, 0 deletions
diff --git a/include/driver/charger/isl9241_public.h b/include/driver/charger/isl9241_public.h index be586f39c3..cccce15bd7 100644 --- a/include/driver/charger/isl9241_public.h +++ b/include/driver/charger/isl9241_public.h @@ -33,7 +33,11 @@ int isl9241_set_ac_prochot(int chgnum, int ma); */ int isl9241_set_dc_prochot(int chgnum, int ma); +#ifdef CONFIG_CHARGER_RAA489110 +#define ISL9241_AC_PROCHOT_CURRENT_MIN 32 /* mA */ +#else /* CONFIG_CHARGER_ISL9241 */ #define ISL9241_AC_PROCHOT_CURRENT_MIN 128 /* mA */ +#endif #define ISL9241_AC_PROCHOT_CURRENT_MAX 6400 /* mA */ #define ISL9241_DC_PROCHOT_CURRENT_MIN 256 /* mA */ #define ISL9241_DC_PROCHOT_CURRENT_MAX 12800 /* mA */ 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 */ |