Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Peter Huewe and committed by
Jean Delvare
3ddb59d4 230da094

+17 -14
+16 -1
drivers/i2c/Kconfig
··· 4 4 5 5 menuconfig I2C 6 6 tristate "I2C support" 7 - depends on HAS_IOMEM 7 + depends on !S390 8 8 select RT_MUTEXES 9 9 ---help--- 10 10 I2C (pronounce: I-squared-C) is a slow serial bus protocol used in ··· 49 49 50 50 config I2C_MUX 51 51 tristate "I2C bus multiplexing support" 52 + depends on HAS_IOMEM 52 53 help 53 54 Say Y here if you want the I2C core to support the ability to 54 55 handle multiplexed I2C bus topologies, by presenting each ··· 87 86 source drivers/i2c/algos/Kconfig 88 87 source drivers/i2c/busses/Kconfig 89 88 89 + config I2C_STUB 90 + tristate "I2C/SMBus Test Stub" 91 + depends on EXPERIMENTAL && m 92 + default 'n' 93 + help 94 + This module may be useful to developers of SMBus client drivers, 95 + especially for certain kinds of sensor chips. 96 + 97 + If you do build this module, be sure to read the notes and warnings 98 + in <file:Documentation/i2c/i2c-stub>. 99 + 100 + If you don't know what to do here, definitely say N. 101 + 90 102 config I2C_DEBUG_CORE 91 103 bool "I2C Core debugging messages" 92 104 help ··· 117 103 118 104 config I2C_DEBUG_BUS 119 105 bool "I2C Bus debugging messages" 106 + depends on HAS_IOMEM 120 107 help 121 108 Say Y here if you want the I2C bus drivers to produce a bunch of 122 109 debug messages to the system log. Select this if you are having
+1 -13
drivers/i2c/busses/Kconfig
··· 3 3 # 4 4 5 5 menu "I2C Hardware Bus support" 6 + depends on HAS_IOMEM 6 7 7 8 comment "PC SMBus host controller drivers" 8 9 depends on PCI ··· 849 848 depends on SIBYTE_SB1xxx_SOC 850 849 help 851 850 Supports the SiByte SOC on-chip I2C interfaces (2 channels). 852 - 853 - config I2C_STUB 854 - tristate "I2C/SMBus Test Stub" 855 - depends on EXPERIMENTAL && m 856 - default 'n' 857 - help 858 - This module may be useful to developers of SMBus client drivers, 859 - especially for certain kinds of sensor chips. 860 - 861 - If you do build this module, be sure to read the notes and warnings 862 - in <file:Documentation/i2c/i2c-stub>. 863 - 864 - If you don't know what to do here, definitely say N. 865 851 866 852 config SCx200_I2C 867 853 tristate "NatSemi SCx200 I2C using GPIO pins (DEPRECATED)"