aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/controller/ehci_imx.c
Commit message (Collapse)AuthorAgeFilesLines
* usb: Kill left-over cdefs.h includesWarner Losh2025-03-041-1/+0
| | | | | | | | | These includes were for __FBSD_RCSID() macro. They weren't formatted like the rest of the tree so weren't trimmed automatically when that script was run. Trim them now. MFC After: 1 week Sponsored by: Netflix
* Use bus_generic_detach instead of device_delete_children in detachJohn Baldwin2025-01-021-1/+1
| | | | | | | While here, check for errors from bus_generic_detach and move it to the start of detach if necessary. Differential Revision: https://reviews.freebsd.org/D47969
* newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANYWarner Losh2024-07-251-1/+1
| | | | Sponsored by: Netflix
* sys: Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* usb: Remove unused devclass arguments to DRIVER_MODULE.John Baldwin2022-05-061-6/+2
|
* ehci_imx: Remove unused variable.John Baldwin2022-04-091-2/+1
|
* arm: Fix duplicate ehci DRIVER_MODULEEmmanuel Vadot2020-04-161-2/+2
| | | | | | | | | | | | Name each ehci driver uniquely. This remove the warning printed at each arm boot : module_register: cannot register simplebus/ehci from kernel; already loaded from kernel A similar fix was done in r333074 but imx_ehci wasn't renamed and generic_ehci wasn't present at that time. Notes: svn path=/head/; revision=360013
* Detach all children before beginning to tear down the hardware, instead ofIan Lepore2018-07-051-9/+6
| | | | | | | | | doing it last. Also, remove the local tracking of whether usb's busdma memory allocation got done, because it's safe to call the free_all function even if it wasn't. Notes: svn path=/head/; revision=335989
* Do not try to deallocate memory that wasn't allocated (you'd think thatIan Lepore2018-02-171-1/+4
| | | | | | | | | | | | would be safe, but the function also tries to destroy mutexes that never got created). I guess this can only happen when imx_ehci_detach() is called on the error-exit path from imx_ehci_attach(), and that path never got exercised before today. Notes: svn path=/head/; revision=329479
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326255
* Put an #ifdef notyet wrapper around a function that's not being used yet,Ian Lepore2017-07-131-0/+2
| | | | | | | to avoid compile warnings. Notes: svn path=/head/; revision=320929
* Support the "disable-over-current" property for imx ehci controllers.Ian Lepore2017-07-131-15/+170
| | | | | | | | | | It turns out that this is more than a power optization. The OTG port won't work on boards that have this property unless this setting is honored. Also ensure that the usb phy device attaches before ehci. Notes: svn path=/head/; revision=320928
* Enable usb low and full speed devices connected to the imx6 root hubs.Ian Lepore2017-02-121-1/+2
| | | | | | | | | | This enables the PHY circuitry for UTMI+ level 2 and 3, and sets the flag to tell the ehci code that the root hub has a transaction translator in it. For imx6 we can use the standard ehci_get_port_speed_portsc() function to find out what speed device is connected to the port. Notes: svn path=/head/; revision=313674
* Use the post-reset hook to force the controller to host mode. This willIan Lepore2017-01-101-2/+19
| | | | | | | | make both usb ports work on imx6 systems (the OTG port of course will only work in host mode). Notes: svn path=/head/; revision=311850
* ehci_interrupt is MPSAFE code. Most drivers in tree calls bus_setup_intrMichal Meloun2016-04-051-2/+2
| | | | | | | | | | with MPSAFE, some are not. Fix those. Submitted by: Howard Su <howard0su@gmail.com> Differential Revision: https://reviews.freebsd.org/D5755 Notes: svn path=/head/; revision=297579
* Add 64-bit DMA support in the XHCI controller driver.Hans Petter Selasky2015-01-051-0/+2
| | | | | | | | | | - Fix some comments and whitespace while at it. MFC after: 1 month Submitted by: marius@ Notes: svn path=/head/; revision=276717
* Stop calling imx51_ccm_foo() clock functions from imx6 code. InsteadIan Lepore2014-04-261-1/+1
| | | | | | | | | define a few imx_ccm_foo() functions that are implemented by the imx51 or imx6 ccm code. Of course, the imx6 ccm code is still more a wish than reality, so for now its implementations just return hard-coded numbers. Notes: svn path=/head/; revision=264977
* Follow r261352 by updating all drivers which are children of simplebusIan Lepore2014-02-021-0/+3
| | | | | | | | | | | | | | | | to check the status property in their probe routines. Simplebus used to only instantiate its children whose status="okay" but that was improper behavior, fixed in r261352. Now that it doesn't check anymore and probes all its children; the children all have to do the check because really only the children know how to properly interpret their status property strings. Right now all existing drivers only understand "okay" versus something- that's-not-okay, so they all use the new ofw_bus_status_okay() helper. Notes: svn path=/head/; revision=261410
* Rework the imx ehci driver so that it's four separate ehci units ratherIan Lepore2013-10-301-180/+230
| | | | | | | | | | | | | | | | | than one unit with four busses attached to it. This allows us to use existing fdt data which describes separate devices with separate resources. It also allows any combination of the units to be en/disabled in the board dts files. Adjust our dts code to match what's used by linux and u-boot now that we're structured to do so. Document lots of interesting stuff learned whiling doing this with a big comment block in the driver, so I don't have to re-learn it for the next round of changes. Notes: svn path=/head/; revision=257393
* Integrate Efika MX project back to home.Aleksandr Rybalko2013-03-201-0/+282
Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=248557