2
* Copyright (C) 2012 Sughosh Ganu <urwithsughosh@gmail.com>
4
* SPDX-License-Identifier: GPL-2.0+
9
#include <asm/arch/da8xx-usb.h>
11
int usb_cpu_init(void)
13
/* enable psc for usb2.0 */
14
lpsc_on(DAVINCI_LPSC_USB20);
16
/* enable psc for usb1.0 */
17
lpsc_on(DAVINCI_LPSC_USB11);
19
/* start the on-chip usb phy and its pll */
26
int usb_cpu_stop(void)
30
/* turn off the usb clock and assert the module reset */
31
lpsc_disable(DAVINCI_LPSC_USB11);
32
lpsc_disable(DAVINCI_LPSC_USB20);
37
int usb_cpu_init_fail(void)
39
return usb_cpu_stop();