summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc2/Makefile
diff options
context:
space:
mode:
authorAmelie Delaunay <amelie.delaunay@st.com>2020-09-09 11:35:10 +0200
committerFelipe Balbi <balbi@kernel.org>2020-10-02 13:29:13 +0300
commit17f934024e84e73cd55dd620a48c1b9e21fac87f (patch)
treefd59a26241335974abd16ffb20a4459118316476 /drivers/usb/dwc2/Makefile
parent14793faeed41249638d9e5fecefd1f5aabfe3f07 (diff)
downloadlinux-stable-17f934024e84e73cd55dd620a48c1b9e21fac87f.tar.gz
linux-stable-17f934024e84e73cd55dd620a48c1b9e21fac87f.tar.bz2
linux-stable-17f934024e84e73cd55dd620a48c1b9e21fac87f.zip
usb: dwc2: override PHY input signals with usb role switch support
This patch adds support for usb role switch to dwc2, by using overriding control of the PHY voltage valid and ID input signals. iddig signal (ID) can be overridden: - when setting GUSBCFG_FORCEHOSTMODE, iddig input pin is overridden with 1; - when setting GUSBCFG_FORCEDEVMODE, iddig input pin is overridden with 0. avalid/bvalid/vbusvalid signals can be overridden respectively with: - GOTGCTL_AVALOEN + GOTGCTL_AVALOVAL - GOTGCTL_BVALOEN + GOTGCTL_BVALOVAL - GOTGCTL_VBVALEN + GOTGCTL_VBVALOVAL It is possible to determine valid sessions thanks to usb role switch: - if USB_ROLE_NONE then !avalid && !bvalid && !vbusvalid - if USB_ROLE_DEVICE then !avalid && bvalid && vbusvalid - if USB_ROLE_HOST then avalid && !bvalid && vbusvalid Acked-by: Minas Harutyunyan <hminas@synopsys.com> Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'drivers/usb/dwc2/Makefile')
-rw-r--r--drivers/usb/dwc2/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc2/Makefile b/drivers/usb/dwc2/Makefile
index 440320cc20a4..2bcd6945df46 100644
--- a/drivers/usb/dwc2/Makefile
+++ b/drivers/usb/dwc2/Makefile
@@ -3,7 +3,7 @@ ccflags-$(CONFIG_USB_DWC2_DEBUG) += -DDEBUG
ccflags-$(CONFIG_USB_DWC2_VERBOSE) += -DVERBOSE_DEBUG
obj-$(CONFIG_USB_DWC2) += dwc2.o
-dwc2-y := core.o core_intr.o platform.o
+dwc2-y := core.o core_intr.o platform.o drd.o
dwc2-y += params.o
ifneq ($(filter y,$(CONFIG_USB_DWC2_HOST) $(CONFIG_USB_DWC2_DUAL_ROLE)),)