コード例 #1
0
/*
 * Destroy the appropriate control structures corresponding
 * the the EHCI host controller.
 */
int ehci_hcd_stop(int index)
{
	volatile struct usb_ehci *ehci;
	int exit_status = 0;

	/* Reset the USB controller */
	ehci = (struct usb_ehci *)CONFIG_SYS_FSL_USB1_ADDR;
	exit_status = reset_usb_controller(ehci);

	return exit_status;
}
コード例 #2
0
/*
 * Destroy the appropriate control structures corresponding
 * the the EHCI host controller.
 */
int ehci_hcd_stop(int index)
{
	volatile struct usb_ehci *ehci;
	int exit_status = 0;

	if (hcor) {
		/* Unhook struct */
		hccr = NULL;
		hcor = NULL;

		/* Reset the USB controller */
		ehci = (struct usb_ehci *)CONFIG_SYS_FSL_USB_ADDR;
		exit_status = reset_usb_controller(ehci);
	}

	return exit_status;
}