On 3/13/20 2:45 AM, Guenter Roeck wrote: > Add basic USB PHY support as implemented in i.MX23, i.MX28, i.MX6, > and i.MX7 SoCs. > > The only support really needed - at least to boot Linux - is support > for soft reset, which needs to reset various registers to their initial > value. Otherwise, just record register values. > > Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> > Signed-off-by: Guenter Roeck <li...@roeck-us.net> > --- > v3: Added Reviewed-by:; > dropped duplicate "the" in comments; > added new files to MAINTAINERS > v2: New patch, replacing dummy STMP register support with basic USB PHY > emulation. > > MAINTAINERS | 2 + > hw/arm/Kconfig | 1 + > hw/usb/Kconfig | 5 + > hw/usb/Makefile.objs | 2 + > hw/usb/imx-usb-phy.c | 225 +++++++++++++++++++++++++++++++++++ > include/hw/usb/imx-usb-phy.h | 53 +++++++++ > 6 files changed, 288 insertions(+) > create mode 100644 hw/usb/imx-usb-phy.c > create mode 100644 include/hw/usb/imx-usb-phy.h
> diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig > index bc54fd61f9..21c627c3b7 100644 > --- a/hw/arm/Kconfig > +++ b/hw/arm/Kconfig > @@ -361,6 +361,7 @@ config FSL_IMX6 > select IMX > select IMX_FEC > select IMX_I2C > + select IMX_USBPHY > select SDHCI I know it is merged, but FYI this change belongs to patch 5 of this series "hw/arm/fsl-imx6: Wire up USB controllers" where you add the dependency to the machine.