Kconfig 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. #
  2. # I2C subsystem configuration
  3. #
  4. menuconfig I2C
  5. tristate "I2C support"
  6. depends on HAS_IOMEM
  7. ---help---
  8. I2C (pronounce: I-square-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_CHARDEV
  24. tristate "I2C device interface"
  25. help
  26. Say Y here to use i2c-* device files, usually found in the /dev
  27. directory on your system. They make it possible to have user-space
  28. programs use the I2C bus. Information on how to do this is
  29. contained in the file <file:Documentation/i2c/dev-interface>.
  30. This support is also available as a module. If so, the module
  31. will be called i2c-dev.
  32. config I2C_HELPER_AUTO
  33. bool "Autoselect pertinent helper modules"
  34. default y
  35. help
  36. Some I2C bus drivers require so-called "I2C algorithm" modules
  37. to work. These are basically software-only abstractions of generic
  38. I2C interfaces. This option will autoselect them so that you don't
  39. have to care.
  40. Unselect this only if you need to enable additional helper
  41. modules, for example for use with external I2C bus drivers.
  42. In doubt, say Y.
  43. source drivers/i2c/algos/Kconfig
  44. source drivers/i2c/busses/Kconfig
  45. source drivers/i2c/chips/Kconfig
  46. config I2C_DEBUG_CORE
  47. bool "I2C Core debugging messages"
  48. help
  49. Say Y here if you want the I2C core to produce a bunch of debug
  50. messages to the system log. Select this if you are having a
  51. problem with I2C support and want to see more of what is going on.
  52. config I2C_DEBUG_ALGO
  53. bool "I2C Algorithm debugging messages"
  54. help
  55. Say Y here if you want the I2C algorithm drivers to produce a bunch
  56. of debug messages to the system log. Select this if you are having
  57. a problem with I2C support and want to see more of what is going
  58. on.
  59. config I2C_DEBUG_BUS
  60. bool "I2C Bus debugging messages"
  61. help
  62. Say Y here if you want the I2C bus drivers to produce a bunch of
  63. debug messages to the system log. Select this if you are having
  64. a problem with I2C support and want to see more of what is going
  65. on.
  66. config I2C_DEBUG_CHIP
  67. bool "I2C Chip debugging messages"
  68. help
  69. Say Y here if you want the I2C chip drivers to produce a bunch of
  70. debug messages to the system log. Select this if you are having
  71. a problem with I2C support and want to see more of what is going
  72. on.
  73. endif # I2C