Lines Matching +full:phy +full:- +full:wrapper

1 // SPDX-License-Identifier: GPL-2.0+
3 * am35x.c - TI's AM35x platform specific usb wrapper functions.
24 * Enable the USB phy
31 devconf2 = readl(&am35x_scm_general_regs->devconf2); in phy_on()
39 writel(devconf2, &am35x_scm_general_regs->devconf2); in phy_on()
41 /* wait until the USB phy is turned on */ in phy_on()
43 while (timeout--) in phy_on()
44 if (readl(&am35x_scm_general_regs->devconf2) & DEVCONF2_PHYCKGD) in phy_on()
47 /* USB phy was not turned on */ in phy_on()
52 * Disable the USB phy
59 * Power down the on-chip PHY. in phy_off()
61 devconf2 = readl(&am35x_scm_general_regs->devconf2); in phy_off()
65 writel(devconf2, &am35x_scm_general_regs->devconf2); in phy_off()
77 sw_reset = readl(&am35x_scm_general_regs->ip_sw_reset); in musb_platform_init()
79 writel(sw_reset, &am35x_scm_general_regs->ip_sw_reset); in musb_platform_init()
81 writel(sw_reset, &am35x_scm_general_regs->ip_sw_reset); in musb_platform_init()
84 writel(0x1, &am35x_usb_regs->control); in musb_platform_init()
87 /* start the on-chip usb phy and its pll */ in musb_platform_init()
89 return -1; in musb_platform_init()
92 revision = readl(&am35x_usb_regs->revision); in musb_platform_init()
94 return -1; in musb_platform_init()
104 /* Turn off the phy */ in musb_platform_deinit()
112 * ep - endpoint number
113 * length - number of bytes to read from FIFO
114 * fifo_data - pointer to data buffer into which data is read
124 writeb(ep, &musbr->index); in read_fifo()
128 val = readl(&musbr->fifox[ep]); in read_fifo()
135 val = readl(&musbr->fifox[ep]); in read_fifo()