aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc/Kconfig
diff options
context:
space:
mode:
authorKumar Sanghvi <Kumar.Sanghvi@stericsson.com>2010-03-17 14:38:28 +0530
committerJohn Rigby <john.rigby@linaro.org>2010-09-02 22:44:42 -0600
commit7b267e785c338a8b0c9744dbb184675102894b50 (patch)
treefa0ab367ec60625677316b7d2fa5ca16276ef5ad /drivers/misc/Kconfig
parentc7c3a428665f58b96cd752d70061ec73079d1831 (diff)
downloadlinux-2.6.34-ux500-7b267e785c338a8b0c9744dbb184675102894b50.tar.gz
PRCMU-Ab8500: Enabling compile time options for selecting access mode in Ab8500 driver. All Ab8500 access handled by Ab8500 driver.
Converting prcmu_i2c_write calls to ab8500_write in ab8500-regulator.c Updating mop500_power_defconfig to set CONFIG_5 Signed-off-by: Kumar Sanghvi <Kumar.Sanghvi@stericsson.com>
Diffstat (limited to 'drivers/misc/Kconfig')
-rw-r--r--drivers/misc/Kconfig41
1 files changed, 41 insertions, 0 deletions
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index bd851088099..4b9cb1a5d6b 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -336,6 +336,47 @@ config AB8500
chip. This connects to U8500 on the SSP/SPI bus and exports
read/write functions for the devices to get access to this chip.
This chip embeds various other multimedia funtionalities as well.
+choice
+ prompt "AB8500 Access Method"
+ depends on AB8500
+ default AB8500_ACCESS_CONFIG3
+
+ config AB8500_ACCESS_CONFIG1
+ depends on AB8500
+ bool "CONFIG_1"
+ help
+ Select this option to enable AB8500 accesses via PRCMU I2C for
+ all register banks
+
+ config AB8500_ACCESS_CONFIG2
+ depends on AB8500
+ bool "CONFIG_2"
+ help
+ Select this option to enable AB8500 accesses via PRCMU I2C for
+ all register banks except SIM control which happens via Modem I2C
+
+ config AB8500_ACCESS_CONFIG3
+ depends on AB8500
+ bool "CONFIG_3"
+ help
+ Select this option to enable AB8500 accesses via SPI for
+ all register banks except SIM control which happens via Modem I2C
+
+ config AB8500_ACCESS_CONFIG4
+ depends on AB8500
+ bool "CONFIG_4"
+ help
+ Select this option to enable AB8500 accesses via SPI for
+ all register banks
+
+ config AB8500_ACCESS_CONFIG5
+ depends on AB8500
+ bool "CONFIG_5"
+ help
+ Select this option to enable AB8500 voltage regulator bank access via
+ PRCMU I2C, SIM control access via Modem I2C and rest of banks accessed
+ via SPI
+endchoice
config AB8500_GPADC
bool "AB8500 GPADC driver"