mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-02 17:41:08 +00:00
03fb03842a
Migrate the ST Microelectronics STUSB160X Type-C controller code in a generic I2C driver in st/common, based on Linux one in : drivers/usb/typec/stusb160x.c This patch simplifies the stm32mp1 board code and allows to reuse this STUSB160X driver in other boards. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
10 lines
225 B
C
10 lines
225 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2020, STMicroelectronics
|
|
*/
|
|
|
|
#ifdef CONFIG_TYPEC_STUSB160X
|
|
int stusb160x_cable_connected(void);
|
|
#else
|
|
int stusb160x_cable_connected(void) { return -ENODEV; }
|
|
#endif
|