Kconfig 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. #
  2. # I2C subsystem configuration
  3. #
  4. menuconfig I2C
  5. tristate "I2C support"
  6. select RT_MUTEXES
  7. ---help---
  8. I2C (pronounce: I-squared-C) is a slow serial bus protocol used in
  9. many micro controller applications and developed by Philips. SMBus,
  10. or System Management Bus is a subset of the I2C protocol. More
  11. information is contained in the directory <file:Documentation/i2c/>,
  12. especially in the file called "summary" there.
  13. Both I2C and SMBus are supported here. You will need this for
  14. hardware sensors support, and also for Video For Linux support.
  15. If you want I2C support, you should say Y here and also to the
  16. specific driver for your bus adapter(s) below.
  17. This I2C support can also be built as a module. If so, the module
  18. will be called i2c-core.
  19. if I2C
  20. config I2C_BOARDINFO
  21. boolean
  22. default y
  23. config I2C_COMPAT
  24. boolean "Enable compatibility bits for old user-space"
  25. default y
  26. help
  27. Say Y here if you intend to run lm-sensors 3.1.1 or older, or any
  28. other user-space package which expects i2c adapters to be class
  29. devices. If you don't know, say Y.
  30. config I2C_CHARDEV
  31. tristate "I2C device interface"
  32. help
  33. Say Y here to use i2c-* device files, usually found in the /dev
  34. directory on your system. They make it possible to have user-space
  35. programs use the I2C bus. Information on how to do this is
  36. contained in the file <file:Documentation/i2c/dev-interface>.
  37. This support is also available as a module. If so, the module
  38. will be called i2c-dev.
  39. config I2C_MUX
  40. tristate "I2C bus multiplexing support"
  41. depends on HAS_IOMEM
  42. help
  43. Say Y here if you want the I2C core to support the ability to
  44. handle multiplexed I2C bus topologies, by presenting each
  45. multiplexed segment as a I2C adapter.
  46. This support is also available as a module. If so, the module
  47. will be called i2c-mux.
  48. source drivers/i2c/muxes/Kconfig
  49. config I2C_HELPER_AUTO
  50. bool "Autoselect pertinent helper modules"
  51. default y
  52. help
  53. Some I2C bus drivers require so-called "I2C algorithm" modules
  54. to work. These are basically software-only abstractions of generic
  55. I2C interfaces. This option will autoselect them so that you don't
  56. have to care.
  57. Unselect this only if you need to enable additional helper
  58. modules, for example for use with external I2C bus drivers.
  59. In doubt, say Y.
  60. config I2C_SMBUS
  61. tristate "SMBus-specific protocols" if !I2C_HELPER_AUTO
  62. depends on GENERIC_HARDIRQS
  63. help
  64. Say Y here if you want support for SMBus extensions to the I2C
  65. specification. At the moment, the only supported extension is
  66. the SMBus alert protocol.
  67. This support is also available as a module. If so, the module
  68. will be called i2c-smbus.
  69. source drivers/i2c/algos/Kconfig
  70. source drivers/i2c/busses/Kconfig
  71. config I2C_STUB
  72. tristate "I2C/SMBus Test Stub"
  73. depends on m
  74. default 'n'
  75. help
  76. This module may be useful to developers of SMBus client drivers,
  77. especially for certain kinds of sensor chips.
  78. If you do build this module, be sure to read the notes and warnings
  79. in <file:Documentation/i2c/i2c-stub>.
  80. If you don't know what to do here, definitely say N.
  81. config I2C_DEBUG_CORE
  82. bool "I2C Core debugging messages"
  83. help
  84. Say Y here if you want the I2C core to produce a bunch of debug
  85. messages to the system log. Select this if you are having a
  86. problem with I2C support and want to see more of what is going on.
  87. config I2C_DEBUG_ALGO
  88. bool "I2C Algorithm debugging messages"
  89. help
  90. Say Y here if you want the I2C algorithm drivers to produce a bunch
  91. of debug messages to the system log. Select this if you are having
  92. a problem with I2C support and want to see more of what is going
  93. on.
  94. config I2C_DEBUG_BUS
  95. bool "I2C Bus debugging messages"
  96. depends on HAS_IOMEM
  97. help
  98. Say Y here if you want the I2C bus drivers to produce a bunch of
  99. debug messages to the system log. Select this if you are having
  100. a problem with I2C support and want to see more of what is going
  101. on.
  102. endif # I2C