Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0cdacf61 authored by Ajay Agarwal's avatar Ajay Agarwal Committed by Gerrit - the friendly Code Review server
Browse files

usb: phy: Add snapshot of PHY msm usb driver



This change adds PHY msm usb driver which handles PHY initialization,
clock management,and workarounds required after resetting the
hardware and power management.

This snapshot is taken as of msm-4.14 'commit 86918472c0fd
("ARM: dts: msm: support A/B OTA for LW.2.0")'.
This change also fixes the compilation errors.

Change-Id: I5f262a097a87393b5eeffa3f3ae3e21088ef53f1
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
Signed-off-by: default avatarSwetha Chikkaboraiah <schikk@codeaurora.org>
parent 502f6541
Loading
Loading
Loading
Loading
+14 −0
Original line number Original line Diff line number Diff line
@@ -137,6 +137,20 @@ config USB_ISP1301
	  To compile this driver as a module, choose M here: the
	  To compile this driver as a module, choose M here: the
	  module will be called phy-isp1301.
	  module will be called phy-isp1301.


config USB_MSM_OTG
	tristate "Qualcomm Technologies, Inc. USB OTG controller support"
	depends on (USB || USB_GADGET) && (ARCH_QCOM || COMPILE_TEST)
	depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't be 'y'
	depends on RESET_CONTROLLER
	select USB_PHY
	help
	  Enable this to support the USB OTG transceiver on the chipset.
	  It handles PHY initialization, clock management, and workarounds required
	  after resetting the hardware and power management.
	  This driver is required even for peripheral only or host only
	  mode configurations. This driver is not supported on boards like trout which
	  has an external PHY.

config USB_MSM_SSPHY_QMP
config USB_MSM_SSPHY_QMP
	tristate "MSM SSUSB QMP PHY Driver"
	tristate "MSM SSUSB QMP PHY Driver"
	depends on ARCH_QCOM
	depends on ARCH_QCOM
+1 −0
Original line number Original line Diff line number Diff line
@@ -28,3 +28,4 @@ obj-$(CONFIG_KEYSTONE_USB_PHY) += phy-keystone.o
obj-$(CONFIG_MSM_QUSB_PHY)		+= phy-msm-qusb.o phy-msm-qusb-v2.o
obj-$(CONFIG_MSM_QUSB_PHY)		+= phy-msm-qusb.o phy-msm-qusb-v2.o
obj-$(CONFIG_USB_MSM_SSPHY_QMP)     	+= phy-msm-ssusb-qmp.o
obj-$(CONFIG_USB_MSM_SSPHY_QMP)     	+= phy-msm-ssusb-qmp.o
obj-$(CONFIG_MSM_HSUSB_PHY)		+= phy-msm-snps-hs.o
obj-$(CONFIG_MSM_HSUSB_PHY)		+= phy-msm-snps-hs.o
obj-$(CONFIG_USB_MSM_OTG)               += phy-msm-usb.o
Loading