mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-12 06:12:58 +00:00
3a61b080ac
The device model was implemented so far using a hook that needed to be called from the board support, without DT support and only for the host. Switch to probing both in peripheral and host mode through the DT. Reviewed-by: Łukasz Majewski <lukma@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
21 lines
632 B
C
21 lines
632 B
C
/*
|
|
* Sunxi usb-phy code
|
|
*
|
|
* Copyright (C) 2015 Hans de Goede <hdegoede@redhat.com>
|
|
* Copyright (C) 2014 Roman Byshko <rbyshko@gmail.com>
|
|
*
|
|
* Based on code from
|
|
* Allwinner Technology Co., Ltd. <www.allwinnertech.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
int sunxi_usb_phy_probe(void);
|
|
int sunxi_usb_phy_remove(void);
|
|
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);
|
|
int sunxi_usb_phy_id_detect(int index);
|
|
void sunxi_usb_phy_enable_squelch_detect(int index, int enable);
|