Blame view

drivers/i2c/Kconfig 5.09 KB
ec8f24b7f   Thomas Gleixner   treewide: Add SPD...
1
  # SPDX-License-Identifier: GPL-2.0-only
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2
  #
be53f9b2a   Arthur Othieno   i2c: Fix copy-n-p...
3
  # I2C subsystem configuration
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
4
  #
da3c6647e   Lan Tianyu   I2C/ACPI: Clean u...
5
6
7
  menu "I2C support"
  
  config I2C
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
8
  	tristate "I2C support"
194684e59   Mika Kuoppala   i2c: Prevent prio...
9
  	select RT_MUTEXES
4d5538f58   Benjamin Tissoires   i2c: use an IRQ t...
10
  	select IRQ_DOMAIN
a7f7f6248   Masahiro Yamada   treewide: replace...
11
  	help
622e040d5   Michael Witten   doc: Kconfig: Typ...
12
  	  I2C (pronounce: I-squared-C) is a slow serial bus protocol used in
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
13
14
15
16
17
18
19
20
21
22
23
24
25
  	  many micro controller applications and developed by Philips.  SMBus,
  	  or System Management Bus is a subset of the I2C protocol.  More
  	  information is contained in the directory <file:Documentation/i2c/>,
  	  especially in the file called "summary" there.
  
  	  Both I2C and SMBus are supported here. You will need this for
  	  hardware sensors support, and also for Video For Linux support.
  
  	  If you want I2C support, you should say Y here and also to the
  	  specific driver for your bus adapter(s) below.
  
  	  This I2C support can also be built as a module.  If so, the module
  	  will be called i2c-core.
366047515   Lan Tianyu   i2c: rework kerne...
26
27
28
  config ACPI_I2C_OPREGION
  	bool "ACPI I2C Operation region support"
  	depends on I2C=y && ACPI
da3c6647e   Lan Tianyu   I2C/ACPI: Clean u...
29
30
  	default y
  	help
366047515   Lan Tianyu   i2c: rework kerne...
31
32
33
  	  Say Y here if you want to enable ACPI I2C operation region support.
  	  Operation Regions allow firmware (BIOS) code to access I2C slave devices,
  	  such as smart batteries through an I2C host controller driver.
da3c6647e   Lan Tianyu   I2C/ACPI: Clean u...
34

16538e6b3   Jan Engelhardt   Use menuconfig ob...
35
  if I2C
9c1600eda   David Brownell   i2c: Add i2c_boar...
36
  config I2C_BOARDINFO
6341e62b2   Christoph Jaeger   kconfig: use bool...
37
  	bool
9c1600eda   David Brownell   i2c: Add i2c_boar...
38
  	default y
2bb5095af   Jean Delvare   i2c: Provide comp...
39
  config I2C_COMPAT
6341e62b2   Christoph Jaeger   kconfig: use bool...
40
  	bool "Enable compatibility bits for old user-space"
2bb5095af   Jean Delvare   i2c: Provide comp...
41
42
43
44
45
  	default y
  	help
  	  Say Y here if you intend to run lm-sensors 3.1.1 or older, or any
  	  other user-space package which expects i2c adapters to be class
  	  devices. If you don't know, say Y.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
46
47
  config I2C_CHARDEV
  	tristate "I2C device interface"
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
48
49
50
51
  	help
  	  Say Y here to use i2c-* device files, usually found in the /dev
  	  directory on your system.  They make it possible to have user-space
  	  programs use the I2C bus.  Information on how to do this is
ccf988b66   Mauro Carvalho Chehab   docs: i2c: conver...
52
  	  contained in the file <file:Documentation/i2c/dev-interface.rst>.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
53
54
55
  
  	  This support is also available as a module.  If so, the module 
  	  will be called i2c-dev.
0826374bf   Michael Lawnick   i2c: Multiplexed ...
56
57
  config I2C_MUX
  	tristate "I2C bus multiplexing support"
0826374bf   Michael Lawnick   i2c: Multiplexed ...
58
59
60
61
62
63
64
  	help
  	  Say Y here if you want the I2C core to support the ability to
  	  handle multiplexed I2C bus topologies, by presenting each
  	  multiplexed segment as a I2C adapter.
  
  	  This support is also available as a module.  If so, the module
  	  will be called i2c-mux.
8636a1f96   Masahiro Yamada   treewide: surroun...
65
  source "drivers/i2c/muxes/Kconfig"
7f528135d   Michael Lawnick   i2c: I2C bus mult...
66

8d24f8dcb   Jean Delvare   i2c: Let users se...
67
68
69
70
71
72
73
74
75
76
77
78
79
  config I2C_HELPER_AUTO
  	bool "Autoselect pertinent helper modules"
  	default y
  	help
  	  Some I2C bus drivers require so-called "I2C algorithm" modules
  	  to work. These are basically software-only abstractions of generic
  	  I2C interfaces. This option will autoselect them so that you don't
  	  have to care.
  
  	  Unselect this only if you need to enable additional helper
  	  modules, for example for use with external I2C bus drivers.
  
  	  In doubt, say Y.
e2ca30743   Jean Delvare   i2c: Separate Kco...
80
  config I2C_SMBUS
dfc518dd6   Arnaud Lacombe   Revert "i2c: Fix ...
81
  	tristate "SMBus-specific protocols" if !I2C_HELPER_AUTO
e2ca30743   Jean Delvare   i2c: Separate Kco...
82
83
  	help
  	  Say Y here if you want support for SMBus extensions to the I2C
d380a2048   Jean Delvare   i2c: Update the d...
84
85
  	  specification. At the moment, two extensions are supported:
  	  the SMBus Alert protocol and the SMBus Host Notify protocol.
e2ca30743   Jean Delvare   i2c: Separate Kco...
86
87
88
  
  	  This support is also available as a module.  If so, the module
  	  will be called i2c-smbus.
8636a1f96   Masahiro Yamada   treewide: surroun...
89
90
  source "drivers/i2c/algos/Kconfig"
  source "drivers/i2c/busses/Kconfig"
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
91

3ddb59d4b   Peter Huewe   i2c: Make I2C ava...
92
93
  config I2C_STUB
  	tristate "I2C/SMBus Test Stub"
417e86ce5   Kees Cook   drivers/i2c: remo...
94
  	depends on m
3ddb59d4b   Peter Huewe   i2c: Make I2C ava...
95
96
97
98
99
  	help
  	  This module may be useful to developers of SMBus client drivers,
  	  especially for certain kinds of sensor chips.
  
  	  If you do build this module, be sure to read the notes and warnings
ccf988b66   Mauro Carvalho Chehab   docs: i2c: conver...
100
  	  in <file:Documentation/i2c/i2c-stub.rst>.
3ddb59d4b   Peter Huewe   i2c: Make I2C ava...
101
102
  
  	  If you don't know what to do here, definitely say N.
389be323c   Wolfram Sang   i2c: slave-eeprom...
103
104
  config I2C_SLAVE
  	bool "I2C slave support"
58e64b050   Wolfram Sang   i2c: add Kconfig ...
105
106
107
108
  	help
  	  This enables Linux to act as an I2C slave device. Note that your I2C
  	  bus master driver also needs to support this functionality. Please
  	  read Documentation/i2c/slave-interface.rst for further details.
389be323c   Wolfram Sang   i2c: slave-eeprom...
109
110
111
112
113
  
  if I2C_SLAVE
  
  config I2C_SLAVE_EEPROM
  	tristate "I2C eeprom slave driver"
59d3d6042   Wolfram Sang   i2c: slave-eeprom...
114
115
116
  	help
  	  This backend makes Linux behave like an I2C EEPROM. Please read
  	  Documentation/i2c/slave-eeprom-backend.rst for further details.
389be323c   Wolfram Sang   i2c: slave-eeprom...
117

a8335c64c   Wolfram Sang   i2c: add slave te...
118
119
120
121
122
123
124
  config I2C_SLAVE_TESTUNIT
  	tristate "I2C eeprom testunit driver"
  	help
  	  This backend can be used to trigger test cases for I2C bus masters
  	  which require a remote device with certain capabilities, e.g.
  	  multi-master, SMBus Host Notify, etc. Please read
  	  Documentation/i2c/slave-testunit-backend.rst for further details.
389be323c   Wolfram Sang   i2c: slave-eeprom...
125
  endif
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
126
127
  config I2C_DEBUG_CORE
  	bool "I2C Core debugging messages"
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
128
129
130
131
132
133
134
  	help
  	  Say Y here if you want the I2C core to produce a bunch of debug
  	  messages to the system log.  Select this if you are having a
  	  problem with I2C support and want to see more of what is going on.
  
  config I2C_DEBUG_ALGO
  	bool "I2C Algorithm debugging messages"
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
135
136
137
138
139
140
141
142
  	help
  	  Say Y here if you want the I2C algorithm drivers to produce a bunch
  	  of debug messages to the system log.  Select this if you are having
  	  a problem with I2C support and want to see more of what is going
  	  on.
  
  config I2C_DEBUG_BUS
  	bool "I2C Bus debugging messages"
3ddb59d4b   Peter Huewe   i2c: Make I2C ava...
143
  	depends on HAS_IOMEM
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
144
145
146
147
148
  	help
  	  Say Y here if you want the I2C bus drivers to produce a bunch of
  	  debug messages to the system log.  Select this if you are having
  	  a problem with I2C support and want to see more of what is going
  	  on.
16538e6b3   Jan Engelhardt   Use menuconfig ob...
149
  endif # I2C
da3c6647e   Lan Tianyu   I2C/ACPI: Clean u...
150
151
  
  endmenu