/* * 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; }
/* * 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; }