mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-31 03:58:17 +00:00 
			
		
		
		
	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
 |