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

Commit d9af4afe authored by Sriharsha Allenki's avatar Sriharsha Allenki
Browse files

usb: pd: Add support of qpnp-pdphy and policy_engine drivers



The qpnp-pdphy driver provides support for the PD PHY peripheral.
This along with the policy engine provides a protocol stack that
supports USB Power Delivery communication over a Type-C port.
This snapshot is taken as of msm-4.19 commit <1526c9c655ff>
("Merge "mmc: sdhci-msm: Add quirk to control debug feature"").

Fixed the compilation issues related to typeC framework for
the support of role swap. Also, remove unsupported and unused
extcon framework calls and API.

Change-Id: Ie89bd60b773a3c61f26b92cb1e1ef09847b6d46e
Signed-off-by: default avatarSriharsha Allenki <sallenki@codeaurora.org>
parent cddf9787
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -174,4 +174,6 @@ source "drivers/usb/typec/Kconfig"

source "drivers/usb/roles/Kconfig"

source "drivers/usb/pd/Kconfig"

endif # USB_SUPPORT
+1 −0
Original line number Diff line number Diff line
@@ -61,6 +61,7 @@ obj-$(CONFIG_USB_CHIPIDEA) += chipidea/
obj-$(CONFIG_USB_RENESAS_USBHS)	+= renesas_usbhs/
obj-$(CONFIG_USB_GADGET)	+= gadget/

obj-$(CONFIG_USB_PD)		+= pd/
obj-$(CONFIG_USBIP_CORE)	+= usbip/

obj-$(CONFIG_TYPEC)		+= typec/

drivers/usb/pd/Kconfig

0 → 100644
+31 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
#
# USB Power Delivery driver configuration
#
menu "USB Power Delivery"

config USB_PD
	def_bool n

config USB_PD_POLICY
	tristate "USB Power Delivery Protocol and Policy Engine"
	depends on EXTCON
	depends on TYPEC
	select USB_PD
	help
          Say Y here to enable USB PD protocol and policy engine.
	  This driver provides a class that implements the upper
	  layers of the USB Power Delivery stack. It requires a
	  PD PHY driver in order to transmit and receive PD
	  messages on its behalf.

config QPNP_USB_PDPHY
	tristate "QPNP USB Power Delivery PHY"
	depends on SPMI
	help
          Say Y here to enable QPNP USB PD PHY peripheral driver
	  which communicates over the SPMI bus.
	  The is used to handle the PHY layer communication of the
	  Power Delivery stack.

endmenu
+7 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
#
# Makefile for USB Power Delivery drivers
#

obj-$(CONFIG_USB_PD_POLICY)	+= policy_engine.o
obj-$(CONFIG_QPNP_USB_PDPHY)	+= qpnp-pdphy.o
+4800 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading