usb: dwc2: add support for STM32MP15 SoCs USB OTG HS and FS
authorAmelie Delaunay <amelie.delaunay@st.com>
Fri, 24 Jan 2020 08:41:31 +0000 (09:41 +0100)
committerFelipe Balbi <balbi@kernel.org>
Sun, 15 Mar 2020 09:06:39 +0000 (11:06 +0200)
commita415083a11cc76f85322406fb91e2eb917c6cef9
treea31d810921bab935f6300631cf508cf586e2e7d3
parent1e355f21d3fb96cc630dbb31e119f868c43119c4
usb: dwc2: add support for STM32MP15 SoCs USB OTG HS and FS

This patch introduces a new parameter to activate external ID pin and valid
vbus level detection, required on STM32MP15 SoC to support dual role,
either in HS or FS.
The STM32MP15 SoC uses the GGPIO register to enable the level detection.
The level detector requires to be powered.
Also adds the params structures for STM32MP15 OTG HS and STM32MP1 OTG FS.

Acked-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc2/core.h
drivers/usb/dwc2/hw.h
drivers/usb/dwc2/params.c
drivers/usb/dwc2/platform.c