]> git.ipfire.org Git - thirdparty/u-boot.git/blame - include/phy-sun4i-usb.h
phy: sun4i-usb: Add id_detect and vbus_detect ops
[thirdparty/u-boot.git] / include / phy-sun4i-usb.h
CommitLineData
129c45c7
JT
1/*
2 * Copyright (C) 2017 Jagan Teki <jagan@amarulasolutions.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#ifndef __GENERIC_PHY_SUN4I_USB_H
8#define __GENERIC_PHY_SUN4I_USB_H
9
10/**
11 * sun4i_usb_phy_id_detect - detect ID pin of USB PHY
12 *
13 * @phy: USB PHY port to detect ID pin
14 * @return 0 if OK, or a negative error code
15 */
16int sun4i_usb_phy_id_detect(struct phy *phy);
17
18/**
19 * sun4i_usb_phy_vbus_detect - detect VBUS pin of USB PHY
20 *
21 * @phy: USB PHY port to detect VBUS pin
22 * @return 0 if OK, or a negative error code
23 */
24int sun4i_usb_phy_vbus_detect(struct phy *phy);
25
26#endif /*__GENERIC_PHY_SUN4I_USB_H */