In the kernel tree at the moment there is a driver for fotg210.
There was, I think, at some point a driver for the host only
version of this too. With a few tweaks the host part can actually
just use the ehci driver and a bunch of code can be dropped.
The weird ARM SoCs I have been trying to mainline have the host
only version of this IP and have been running with a modified
version of the normal ehci driver for years.
To use the ehci driver we need to be able to override the accessors
for the registers, override the standard locations of a few of them
and hardcode values for some things that are not needed.
Before I clean up and send the rest of this I wanted to show
how I did the overriding of the accessors and how it cleans up the
hack that is already in there. If this way of doing it is acceptable
I'll clean up the whole thing and send it.
The benefit of this is that we should be able to drop one mangled
copy of the ehci driver.
Daniel Palmer (2):
usb: ehci: Add option to override ehci_readl()/ehci_writel()
usb: chipidea: use the generic ehci_writel override for i.MX28
drivers/usb/chipidea/Kconfig | 1 +
drivers/usb/chipidea/host.c | 17 ++++++++++++++++-
drivers/usb/host/Kconfig | 3 +++
drivers/usb/host/ehci.h | 31 ++++++++++++++++---------------
4 files changed, 36 insertions(+), 16 deletions(-)
--
2.53.0