imx8: add xhci driver for the soc

This is mostly a copy of port/usbxhci.c with PCIWADDR() replaced
by PADDR() and the pci specific code stripped out.

This could be refactored at a later time.

There is a gpio line for the main hub reset that needs to be
asserted and some power management functions that are currently
done by u-boot (using "usb start" command).

We will do these ourselfs once we have the infrastructure for
it in place.
This commit is contained in:
cinap_lenrek 2022-05-15 11:57:52 +00:00 committed by Sigrid Solveig Haflínudóttir
parent fdbe335d3a
commit 1da20fd5d8
2 changed files with 1824 additions and 0 deletions

View file

@ -15,7 +15,10 @@ dev
ether netif
ip arp chandial ip ipv6 ipaux iproute netlog nullmedium pktmedium inferno
uart
usb
link
usbxhciimx
etherimx ethermii
ethermedium
loopbackmedium

1821
sys/src/9/imx8/usbxhciimx.c Normal file

File diff suppressed because it is too large Load diff