xref: /OK3568_Linux_fs/u-boot/include/linux/usb/phy-rockchip-usb2.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  * Copyright 2017 Rockchip Electronics Co., Ltd
3  *
4  * SPDX-License-Identifier:    GPL-2.0+
5  */
6 
7 #ifndef _PHY_ROCKCHIP_USB2_H
8 #define _PHY_ROCKCHIP_USB2_H
9 
10 extern int rockchip_chg_get_type(void);
11 
12 #if defined(CONFIG_PHY_ROCKCHIP_INNO_USB2) ||\
13     defined(CONFIG_ROCKCHIP_USB2_PHY) ||\
14     defined(CONFIG_PHY_ROCKCHIP_NANENG_USB2)
15 
16 int rockchip_u2phy_vbus_detect(void);
17 #else
rockchip_u2phy_vbus_detect(void)18 static inline int rockchip_u2phy_vbus_detect(void)
19 {
20 	return -ENOSYS;
21 }
22 #endif
23 
24 #endif /* _PHY_ROCKCHIP_USB2_H */
25