mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-11 23:33:26 +09:00
![Patrick Delaunay](/assets/img/avatar_default.png)
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>
11 lines
225 B
C
11 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
|