3 * Markus Klotzbuecher, DENX Software Engineering <mk@denx.de>
5 * SPDX-License-Identifier: GPL-2.0+
10 #if defined(CONFIG_USB_OHCI_NEW) && defined(CONFIG_SYS_USB_OHCI_CPU_INIT)
14 int usb_cpu_init(void)
16 /* Set the USB Clock */
17 *(vu_long *)MPC5XXX_CDM_48_FDC = CONFIG_USB_CLOCK;
19 #ifdef CONFIG_PSC3_USB /* USB is using the alternate configuration */
20 /* remove all PSC3 USB bits first before ORing in ours */
21 *(vu_long *)MPC5XXX_GPS_PORT_CONFIG &= ~0x00804f00;
23 /* remove all USB bits first before ORing in ours */
24 *(vu_long *)MPC5XXX_GPS_PORT_CONFIG &= ~0x00807000;
26 /* Activate USB port */
27 *(vu_long *)MPC5XXX_GPS_PORT_CONFIG |= CONFIG_USB_CONFIG;
32 int usb_cpu_stop(void)
37 int usb_cpu_init_fail(void)
42 #endif /* defined(CONFIG_USB_OHCI) && defined(CONFIG_SYS_USB_OHCI_CPU_INIT) */