9 #include <soc/sysreg.h>
27 if (!(dwc3->
ctl & 0x1 << 11) ||
31 "reset_usb_drd_dwc3() first)!\n", dwc3);
121 unsigned int hostphy_ctrl0;
127 hsic_gpio ?
"with" :
"without");
static void write32(void *addr, uint32_t val)
static uint32_t read32(const void *addr)
#define printk(level,...)
#define setbits32(addr, set)
#define clrbits32(addr, clear)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
static struct exynos5_sysreg *const exynos_sysreg
#define POWER_USB_PHY_CTRL_EN
static struct exynos5_power *const exynos_power
int gpio_direction_output(unsigned int gpio, int value)
Make a GPIO an output, and set its value.
#define HOST_CTRL0_UTMISWRST
static struct exynos5_usb_host_phy *const exynos_usb_host_phy
static struct exynos5_usb_drd_dwc3 *const exynos_usb_drd_dwc3
#define EHCICTRL_ENAINCR16
#define EHCICTRL_ENAINCRXALIGN
#define HOST_CTRL0_COMMONON_N
#define HOST_CTRL0_LINKSWRST
#define HOST_CTRL0_FORCESLEEP
#define EHCICTRL_ENAINCR8
#define HOST_CTRL0_FORCESUSPEND
#define HOST_CTRL0_PHYSWRST
#define HOST_CTRL0_FSEL_MASK
#define HOST_CTRL0_PHYSWRSTALL
#define EHCICTRL_ENAINCR4
static struct exynos5_usb_drd_phy *const exynos_usb_drd_phy
void setup_usb_host_phy(int hsic_gpio)
void setup_usb_drd_dwc3(void)
static void reset_dwc3(struct exynos5_usb_drd_dwc3 *dwc3)
void reset_usb_drd_dwc3(void)
static void setup_dwc3(struct exynos5_usb_drd_dwc3 *dwc3)
void setup_usb_drd_phy(void)
static void setup_drd_phy(struct exynos5_usb_drd_phy *phy)
uint32_t usb_drd_phy_ctrl
uint32_t usb_host_phy_ctrl
unsigned int usb20_phy_cfg