2015-01-07 14:08:43 +00:00
|
|
|
/*
|
2015-04-27 12:54:47 +00:00
|
|
|
* Sunxi usb-phy code
|
2015-01-07 14:08:43 +00:00
|
|
|
*
|
2015-04-27 12:54:47 +00:00
|
|
|
* Copyright (C) 2015 Hans de Goede <hdegoede@redhat.com>
|
|
|
|
* Copyright (C) 2014 Roman Byshko <rbyshko@gmail.com>
|
2015-01-07 14:08:43 +00:00
|
|
|
*
|
|
|
|
* Based on code from
|
|
|
|
* Allwinner Technology Co., Ltd. <www.allwinnertech.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
|
2015-04-27 14:50:04 +00:00
|
|
|
int sunxi_usb_phy_probe(void);
|
|
|
|
int sunxi_usb_phy_remove(void);
|
2015-04-27 12:54:47 +00:00
|
|
|
void sunxi_usb_phy_init(int index);
|
|
|
|
void sunxi_usb_phy_exit(int index);
|
|
|
|
void sunxi_usb_phy_power_on(int index);
|
|
|
|
void sunxi_usb_phy_power_off(int index);
|
|
|
|
int sunxi_usb_phy_vbus_detect(int index);
|
2015-06-14 15:29:53 +00:00
|
|
|
int sunxi_usb_phy_id_detect(int index);
|
2015-04-27 12:54:47 +00:00
|
|
|
void sunxi_usb_phy_enable_squelch_detect(int index, int enable);
|