Skip to contentSkip to conversation

extcon-axp288: Add axp288 extcon driver support

PATCH In review Ramakrishna Pallala 1 participant 1 message Mar 31, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 extcon-axp288: Add axp288 extcon driver support

This patch adds the extcon support for AXP288 PMIC which has the BC1.2 charger detection capability. Additionally it also adds the USB mux switching support b/w SOC and PMIC based on GPIO control.

---
 drivers/extcon/Kconfig         |    7 +
 drivers/extcon/Makefile        |    1 +
 drivers/extcon/extcon-axp288.c |  479 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 487 insertions(+)
 create mode 100644 drivers/extcon/extcon-axp288.c
drivers/extcon/Kconfig +7 -0
index 6a1f7de..b8627f7 100644
@@ -93,4 +93,11 @@ config EXTCON_SM5502
 	  Silicon Mitus SM5502. The SM5502 is a USB port accessory
 	  detector and switch.
 
+config EXTCON_AXP288
+	tristate "AXP288 EXTCON support"
+	depends on MFD_AXP20X && USB_PHY
+	help
+	  Say Y here to enable support for USB peripheral detection
+	  and USB MUX switching by AXP288 PMIC.
+
 endif # MULTISTATE_SWITCH
drivers/extcon/Makefile +1 -0
index 0370b42..832ad79 100644
@@ -12,3 +12,4 @@ obj-$(CONFIG_EXTCON_MAX8997)	+= extcon-max8997.o
 obj-$(CONFIG_EXTCON_PALMAS)	+= extcon-palmas.o
 obj-$(CONFIG_EXTCON_RT8973A)	+= extcon-rt8973a.o
 obj-$(CONFIG_EXTCON_SM5502)	+= extcon-sm5502.o
+obj-$(CONFIG_EXTCON_AXP288)	+= extcon-axp288.o
drivers/extcon/extcon-axp288.c new file +479 -0

479 lines not on this page · raw message

Signature · 1 line
1.7.9.5