CVSROOT: /cvs Module name: src Changes by: d...@cvs.openbsd.org 2022/05/23 05:37:22
Modified files: sys/dev/fdt : ehci_fdt.c Log message: add support for the ehci controller on marvell 3720 boards. the marvell controllers have two quirks compared to standard ehci controllers, but they're small enough that they can be dealt with here rather than creating a specific glue driver (like imxehci has). the first quirk is that the ehci registers are offset in the window advertised by the device tree. this is handled by having ehci_fdt always present a bus space subregion to ehci, and defaults the offset to 0. marvell controllers provide the right offset into their register window so the subregion code can find the right place for ehci to operate on. the other quirk is that marvell controllers need to be forced to host mode with the extra EHCI_USBMODE register. this makes ehci work on espressobins and gl-mv1000 boards. tested by me and dtucker@ ok kettenis@ patrick@