Hans de Goede | a144198 | 2015-01-07 15:08:43 +0100 | [diff] [blame] | 1 | /* |
Hans de Goede | 8697909 | 2015-04-27 14:54:47 +0200 | [diff] [blame] | 2 | * Sunxi usb-phy code |
Hans de Goede | a144198 | 2015-01-07 15:08:43 +0100 | [diff] [blame] | 3 | * |
Hans de Goede | 8697909 | 2015-04-27 14:54:47 +0200 | [diff] [blame] | 4 | * Copyright (C) 2015 Hans de Goede <hdegoede@redhat.com> |
| 5 | * Copyright (C) 2014 Roman Byshko <rbyshko@gmail.com> |
Hans de Goede | a144198 | 2015-01-07 15:08:43 +0100 | [diff] [blame] | 6 | * |
| 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 Goede | 1168e09 | 2015-04-27 16:50:04 +0200 | [diff] [blame] | 13 | int sunxi_usb_phy_probe(void); |
| 14 | int sunxi_usb_phy_remove(void); |
Hans de Goede | 8697909 | 2015-04-27 14:54:47 +0200 | [diff] [blame] | 15 | void sunxi_usb_phy_init(int index); |
| 16 | void sunxi_usb_phy_exit(int index); |
| 17 | void sunxi_usb_phy_power_on(int index); |
| 18 | void sunxi_usb_phy_power_off(int index); |
Hans de Goede | 39c119d | 2015-07-08 16:44:22 +0200 | [diff] [blame] | 19 | int sunxi_usb_phy_power_is_on(int index); |
Hans de Goede | 8697909 | 2015-04-27 14:54:47 +0200 | [diff] [blame] | 20 | int sunxi_usb_phy_vbus_detect(int index); |
Hans de Goede | aadd97f | 2015-06-14 17:29:53 +0200 | [diff] [blame] | 21 | int sunxi_usb_phy_id_detect(int index); |
Hans de Goede | 8697909 | 2015-04-27 14:54:47 +0200 | [diff] [blame] | 22 | void sunxi_usb_phy_enable_squelch_detect(int index, int enable); |
Hans de Goede | ea059bf | 2015-06-17 15:49:26 +0200 | [diff] [blame] | 23 | |
| 24 | /* Not really phy related, but we have to declare this somewhere ... */ |
Paul Kocialkowski | f34dfcb | 2015-08-04 17:04:06 +0200 | [diff] [blame] | 25 | #if defined(CONFIG_USB_MUSB_HOST) || defined(CONFIG_USB_MUSB_GADGET) |
Hans de Goede | ea059bf | 2015-06-17 15:49:26 +0200 | [diff] [blame] | 26 | void sunxi_musb_board_init(void); |
| 27 | #else |
| 28 | #define sunxi_musb_board_init() |
| 29 | #endif |