blob: cef6c985bc8d46c74dd11cdaac712e1b45f7975f [file] [log] [blame]
Hans de Goedea1441982015-01-07 15:08:43 +01001/*
Hans de Goede86979092015-04-27 14:54:47 +02002 * Sunxi usb-phy code
Hans de Goedea1441982015-01-07 15:08:43 +01003 *
Hans de Goede86979092015-04-27 14:54:47 +02004 * Copyright (C) 2015 Hans de Goede <hdegoede@redhat.com>
5 * Copyright (C) 2014 Roman Byshko <rbyshko@gmail.com>
Hans de Goedea1441982015-01-07 15:08:43 +01006 *
7 * Based on code from
8 * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
9 *
10 * SPDX-License-Identifier: GPL-2.0+
11 */
12
Hans de Goede1168e092015-04-27 16:50:04 +020013int sunxi_usb_phy_probe(void);
14int sunxi_usb_phy_remove(void);
Hans de Goede86979092015-04-27 14:54:47 +020015void sunxi_usb_phy_init(int index);
16void sunxi_usb_phy_exit(int index);
17void sunxi_usb_phy_power_on(int index);
18void sunxi_usb_phy_power_off(int index);
19int sunxi_usb_phy_vbus_detect(int index);
Hans de Goedeaadd97f2015-06-14 17:29:53 +020020int sunxi_usb_phy_id_detect(int index);
Hans de Goede86979092015-04-27 14:54:47 +020021void sunxi_usb_phy_enable_squelch_detect(int index, int enable);
Hans de Goedeea059bf2015-06-17 15:49:26 +020022
23/* Not really phy related, but we have to declare this somewhere ... */
Paul Kocialkowskif34dfcb2015-08-04 17:04:06 +020024#if defined(CONFIG_USB_MUSB_HOST) || defined(CONFIG_USB_MUSB_GADGET)
Hans de Goedeea059bf2015-06-17 15:49:26 +020025void sunxi_musb_board_init(void);
26#else
27#define sunxi_musb_board_init()
28#endif