Skip to contentSkip to conversation

MFD: DA9052/53 MFD core module add SPI support v2

PATCH Applied Ashish Jangam 2 participants 2 messages Dec 12, 2011 – Dec 14, 2011

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

PATCH 3/6 MFD: DA9052/53 MFD core module add SPI support v2

This patch add SPI support for DA9052/53 MFD core module.

This patch is functionally tested on Samsung SMDKV6410.

---
Changes since v1:
- Remove spi_dev from struct da9052
- Move regmap_config due to added support of regmap cache

---
 drivers/mfd/Kconfig      |   12 +++++
 drivers/mfd/Makefile     |    1 +
 drivers/mfd/da9052-spi.c |  115 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 128 insertions(+), 0 deletions(-)
 create mode 100644 drivers/mfd/da9052-spi.c
drivers/mfd/Kconfig +12 -0
index baced42..c8322ee 100644
@@ -332,6 +332,18 @@ config PMIC_DA9052
 	bool
 	select MFD_CORE
 
+config MFD_DA9052_SPI
+	bool "Support Dialog Semiconductor DA9052/53 PMIC variants with SPI"
+	select REGMAP_SPI
+	select REGMAP_IRQ
+	select PMIC_DA9052
+	depends on SPI_MASTER=y
+	help
+	  Support for the Dialog Semiconductor DA9052 PMIC
+	  when controlled using SPI. This driver provides common support
+	  for accessing the device, additional drivers must be enabled in
+	  order to use the functionality of the device.
+
 config MFD_DA9052_I2C
 	bool "Support Dialog Semiconductor DA9052/53 PMIC variants with I2C"
 	select REGMAP_I2C
drivers/mfd/Makefile +1 -0
index 484f209..d5f5743 100644
@@ -69,6 +69,7 @@ obj-$(CONFIG_UCB1400_CORE)	+= ucb1400_core.o
 obj-$(CONFIG_PMIC_DA903X)	+= da903x.o
 
 obj-$(CONFIG_PMIC_DA9052)	+= da9052-core.o
+obj-$(CONFIG_MFD_DA9052_SPI)	+= da9052-spi.o
 obj-$(CONFIG_MFD_DA9052_I2C)	+= da9052-i2c.o
 
 max8925-objs			:= max8925-core.o max8925-i2c.o
drivers/mfd/da9052-spi.c new file +115 -0

115 lines not on this page · raw message

Applied
#1 lore raw
Quoted 1 line · Ashish Jangam

This patch add SPI support for DA9052/53 MFD core module.

Applied, thanks.