1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2012 Sughosh Ganu <urwithsughosh@gmail.com>
8 #include <asm/arch/da8xx-usb.h>
10 int usb_cpu_init(void)
12 /* enable psc for usb2.0 */
13 lpsc_on(DAVINCI_LPSC_USB20);
15 /* enable psc for usb1.0 */
16 lpsc_on(DAVINCI_LPSC_USB11);
18 /* start the on-chip usb phy and its pll */
25 int usb_cpu_stop(void)
29 /* turn off the usb clock and assert the module reset */
30 lpsc_disable(DAVINCI_LPSC_USB11);
31 lpsc_disable(DAVINCI_LPSC_USB20);
36 int usb_cpu_init_fail(void)
38 return usb_cpu_stop();