Skip to contentSkip to conversation

mfd: mc13xxx-core: Move spi specific code into separate module.

PATCH New Alex Gershgorin 1 participant 1 message Mar 26, 2012 Multifunction devices (MFD)

lore
Share & tools
lore
#0 lore raw

PATCH v5 3/4 mfd: mc13xxx-core: Move spi specific code into separate module.

Quoted 1 line

From series mc13xxx: add-I2C-support-V4 which was based

on mfd-2.6/for-next, only v4 3/4 does not apply on 3.3. This patch rebase v4 3/4 for 3.3

---
 drivers/mfd/Kconfig        |   15 ++++-
 drivers/mfd/Makefile       |    1 +
 drivers/mfd/mc13xxx-core.c |  148 ++------------------------------------------
 drivers/mfd/mc13xxx-spi.c  |  141 +++++++++++++++++++++++++++++++++++++++++
 drivers/mfd/mc13xxx.h      |   45 +++++++++++++
 5 files changed, 204 insertions(+), 146 deletions(-)
 create mode 100644 drivers/mfd/mc13xxx-spi.c
 create mode 100644 drivers/mfd/mc13xxx.h
drivers/mfd/Kconfig +12 -3
index f147395..5fc153d 100644
@@ -577,12 +577,21 @@ config MFD_MC13XXX
 	select MFD_CORE
 	select MFD_MC13783
 	help
-	  Support for the Freescale (Atlas) PMIC and audio CODECs
-	  MC13783 and MC13892.
-	  This driver provides common support for accessing  the device,
+	  Enable support for the Freescale MC13783 and MC13892 PMICs.
+	  This driver provides common support for accessing the device,
 	  additional drivers must be enabled in order to use the
 	  functionality of the device.
 
+if MFD_MC13XXX
+
+config MFD_MC13XXX_SPI
+	tristate "MC13xxx SPI interface" if SPI_MASTER
+	default SPI_MASTER
+	help
+	  Select this if your MC13xxx is connected via an SPI bus.
+
+endif
+
 config ABX500_CORE
 	bool "ST-Ericsson ABX500 Mixed Signal Circuit register functions"
 	default y if ARCH_U300 || ARCH_U8500
drivers/mfd/Makefile +1 -0
index b953bab..2dc66ed 100644
@@ -53,6 +53,7 @@ obj-$(CONFIG_TWL6030_PWM)	+= twl6030-pwm.o
 obj-$(CONFIG_TWL6040_CORE)	+= twl6040-core.o twl6040-irq.o
 
 obj-$(CONFIG_MFD_MC13XXX)	+= mc13xxx-core.o
+obj-$(CONFIG_MFD_MC13XXX_SPI)	+= mc13xxx-spi.o
 
 obj-$(CONFIG_MFD_CORE)		+= mfd-core.o
 
drivers/mfd/mc13xxx-core.c +5 -143

185 lines not on this page · raw message

drivers/mfd/mc13xxx-spi.c new file +141 -0

141 lines not on this page · raw message

drivers/mfd/mc13xxx.h new file +45 -0

45 lines not on this page · raw message

Signature · 1 line
1.7.0.4