uboot/arch/arm/include/asm/arch-sunxi/usb_phy.h
<<
>>
Prefs
   1/*
   2 * Sunxi usb-phy code
   3 *
   4 * Copyright (C) 2015 Hans de Goede <hdegoede@redhat.com>
   5 * Copyright (C) 2014 Roman Byshko <rbyshko@gmail.com>
   6 *
   7 * Based on code from
   8 * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
   9 *
  10 * SPDX-License-Identifier:     GPL-2.0+
  11 */
  12
  13int sunxi_usb_phy_probe(void);
  14int sunxi_usb_phy_remove(void);
  15void 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_power_is_on(int index);
  20int sunxi_usb_phy_vbus_detect(int index);
  21int sunxi_usb_phy_id_detect(int index);
  22void sunxi_usb_phy_enable_squelch_detect(int index, int enable);
  23
  24/* Not really phy related, but we have to declare this somewhere ... */
  25#if defined(CONFIG_USB_MUSB_HOST) || defined(CONFIG_USB_MUSB_GADGET)
  26void sunxi_musb_board_init(void);
  27#else
  28#define sunxi_musb_board_init()
  29#endif
  30