From: Mattias Wallin <mattias.wallin@stericsson.com>
This patch consolidates the ab8500 mixed signal chip to expose the
same interface for register access as the ab3100, ab3550 and ab5500
chips. The ab8500_read() and ab8500_write() are removed and replaced
with abx500_get_register_interruptible() and
abx500_set_register_interruptible() respectively.
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Liam Girdwood <lrg@slimlogic.co.uk>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
---
This patch need be applied across the subsystems so as not to break
bisection. Since it is mainly related to the core, the suggestion
is to bring this in through Sam:s tree.
---
drivers/mfd/Kconfig | 4 +-
drivers/mfd/ab8500-core.c | 286 ++++++++++++++++++++++++++------------------
drivers/regulator/ab8500.c | 86 ++++++++------
drivers/rtc/rtc-ab8500.c | 103 ++++++++--------
include/linux/mfd/ab8500.h | 28 ++++-
include/linux/mfd/abx500.h | 3 +-
6 files changed, 301 insertions(+), 209 deletions(-)
diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index db51ea1..c957c3a 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -433,7 +433,7 @@ config PCF50633_GPIO
config ABX500_CORE
bool "ST-Ericsson ABX500 Mixed Signal Circuit register functions"
- default y if ARCH_U300
+ default y if ARCH_U300 || ARCH_U8500
help
Say yes here if you have the ABX500 Mixed Signal IC family
chips. This core driver expose register access functions.
@@ -473,7 +473,7 @@ config EZX_PCAP
config AB8500_CORE
bool "ST-Ericsson AB8500 Mixed Signal Power Management chip"
- depends on SPI=y && GENERIC_HARDIRQS
+ depends on SPI=y && GENERIC_HARDIRQS && ABX500_CORE
select MFD_CORE
help
Select this option to enable access to AB8500 power management
diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c
index ...