aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Huewe <peterhuewe@gmx.de>2012-10-05 16:23:52 -0400
committerJean Delvare <khali@endymion.delvare>2012-10-05 16:23:52 -0400
commit3ddb59d4bcaeca8109ac5eb8ad17368e940ac05e (patch)
treec54c0687cf031ed816e5935ac2a1b2a39a877977
parent230da094352869ac36bca524a294deb7bb3dd876 (diff)
i2c: Make I2C available on UML
Remove the global dependency of the I2C subsystem on HAS_IOMEM and move the dependency to the i2c/busses submenu, with an exception for i2c-stub. The generic I2C part does not need to have HAS_IOMEM set and thus now becomes available in UML, so the I2C subsystem can now be used, e.g. by the i2c-stub driver, for development of I2C device drivers. [JD: Some adjustments.] [Heiko Carstens: Keep I2C disabled on S390.] Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Jean Delvare <khali@linux-fr.org>
-rw-r--r--drivers/i2c/Kconfig17
-rw-r--r--drivers/i2c/busses/Kconfig14
2 files changed, 17 insertions, 14 deletions
diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
index 5a3bb3d738d8..2f8c76becc6b 100644
--- a/drivers/i2c/Kconfig
+++ b/drivers/i2c/Kconfig
@@ -4,7 +4,7 @@
4 4
5menuconfig I2C 5menuconfig I2C
6 tristate "I2C support" 6 tristate "I2C support"
7 depends on HAS_IOMEM 7 depends on !S390
8 select RT_MUTEXES 8 select RT_MUTEXES
9 ---help--- 9 ---help---
10 I2C (pronounce: I-squared-C) is a slow serial bus protocol used in 10 I2C (pronounce: I-squared-C) is a slow serial bus protocol used in
@@ -49,6 +49,7 @@ config I2C_CHARDEV
49 49
50config I2C_MUX 50config I2C_MUX
51 tristate "I2C bus multiplexing support" 51 tristate "I2C bus multiplexing support"
52 depends on HAS_IOMEM
52 help 53 help
53 Say Y here if you want the I2C core to support the ability to 54 Say Y here if you want the I2C core to support the ability to
54 handle multiplexed I2C bus topologies, by presenting each 55 handle multiplexed I2C bus topologies, by presenting each
@@ -86,6 +87,19 @@ config I2C_SMBUS
86source drivers/i2c/algos/Kconfig 87source drivers/i2c/algos/Kconfig
87source drivers/i2c/busses/Kconfig 88source drivers/i2c/busses/Kconfig
88 89
90config I2C_STUB
91 tristate "I2C/SMBus Test Stub"
92 depends on EXPERIMENTAL && m
93 default 'n'
94 help
95 This module may be useful to developers of SMBus client drivers,
96 especially for certain kinds of sensor chips.
97
98 If you do build this module, be sure to read the notes and warnings
99 in <file:Documentation/i2c/i2c-stub>.
100
101 If you don't know what to do here, definitely say N.
102
89config I2C_DEBUG_CORE 103config I2C_DEBUG_CORE
90 bool "I2C Core debugging messages" 104 bool "I2C Core debugging messages"
91 help 105 help
@@ -103,6 +117,7 @@ config I2C_DEBUG_ALGO
103 117
104config I2C_DEBUG_BUS 118config I2C_DEBUG_BUS
105 bool "I2C Bus debugging messages" 119 bool "I2C Bus debugging messages"
120 depends on HAS_IOMEM
106 help 121 help
107 Say Y here if you want the I2C bus drivers to produce a bunch of 122 Say Y here if you want the I2C bus drivers to produce a bunch of
108 debug messages to the system log. Select this if you are having 123 debug messages to the system log. Select this if you are having
diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index 42d9fdd63de0..8eed054e3293 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -3,6 +3,7 @@
3# 3#
4 4
5menu "I2C Hardware Bus support" 5menu "I2C Hardware Bus support"
6 depends on HAS_IOMEM
6 7
7comment "PC SMBus host controller drivers" 8comment "PC SMBus host controller drivers"
8 depends on PCI 9 depends on PCI
@@ -849,19 +850,6 @@ config I2C_SIBYTE
849 help 850 help
850 Supports the SiByte SOC on-chip I2C interfaces (2 channels). 851 Supports the SiByte SOC on-chip I2C interfaces (2 channels).
851 852
852config I2C_STUB
853 tristate "I2C/SMBus Test Stub"
854 depends on EXPERIMENTAL && m
855 default 'n'
856 help
857 This module may be useful to developers of SMBus client drivers,
858 especially for certain kinds of sensor chips.
859
860 If you do build this module, be sure to read the notes and warnings
861 in <file:Documentation/i2c/i2c-stub>.
862
863 If you don't know what to do here, definitely say N.
864
865config SCx200_I2C 853config SCx200_I2C
866 tristate "NatSemi SCx200 I2C using GPIO pins (DEPRECATED)" 854 tristate "NatSemi SCx200 I2C using GPIO pins (DEPRECATED)"
867 depends on SCx200_GPIO 855 depends on SCx200_GPIO