Kconfig 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. #
  2. # GPIO infrastructure and expanders
  3. #
  4. config HAVE_GPIO_LIB
  5. bool
  6. help
  7. Platforms select gpiolib if they use this infrastructure
  8. for all their GPIOs, usually starting with ones integrated
  9. into SOC processors.
  10. menu "GPIO Support"
  11. depends on HAVE_GPIO_LIB
  12. config DEBUG_GPIO
  13. bool "Debug GPIO calls"
  14. depends on DEBUG_KERNEL
  15. help
  16. Say Y here to add some extra checks and diagnostics to GPIO calls.
  17. The checks help ensure that GPIOs have been properly initialized
  18. before they are used and that sleeping calls aren not made from
  19. nonsleeping contexts. They can make bitbanged serial protocols
  20. slower. The diagnostics help catch the type of setup errors
  21. that are most common when setting up new platforms or boards.
  22. config GPIO_SYSFS
  23. bool "/sys/class/gpio/... (sysfs interface)"
  24. depends on SYSFS && EXPERIMENTAL
  25. help
  26. Say Y here to add a sysfs interface for GPIOs.
  27. This is mostly useful to work around omissions in a system's
  28. kernel support. Those are common in custom and semicustom
  29. hardware assembled using standard kernels with a minimum of
  30. custom patches. In those cases, userspace code may import
  31. a given GPIO from the kernel, if no kernel driver requested it.
  32. Kernel drivers may also request that a particular GPIO be
  33. exported to userspace; this can be useful when debugging.
  34. # put expanders in the right section, in alphabetical order
  35. comment "I2C GPIO expanders:"
  36. config GPIO_PCA953X
  37. tristate "PCA953x, PCA955x, and MAX7310 I/O ports"
  38. depends on I2C
  39. help
  40. Say yes here to provide access to several register-oriented
  41. SMBus I/O expanders, made mostly by NXP or TI. Compatible
  42. models include:
  43. 4 bits: pca9536, pca9537
  44. 8 bits: max7310, pca9534, pca9538, pca9554, pca9557
  45. 16 bits: pca9535, pca9539, pca9555
  46. This driver can also be built as a module. If so, the module
  47. will be called pca953x.
  48. config GPIO_PCF857X
  49. tristate "PCF857x, PCA{85,96}7x, and MAX732[89] I2C GPIO expanders"
  50. depends on I2C
  51. help
  52. Say yes here to provide access to most "quasi-bidirectional" I2C
  53. GPIO expanders used for additional digital outputs or inputs.
  54. Most of these parts are from NXP, though TI is a second source for
  55. some of them. Compatible models include:
  56. 8 bits: pcf8574, pcf8574a, pca8574, pca8574a,
  57. pca9670, pca9672, pca9674, pca9674a,
  58. max7328, max7329
  59. 16 bits: pcf8575, pcf8575c, pca8575,
  60. pca9671, pca9673, pca9675
  61. Your board setup code will need to declare the expanders in
  62. use, and assign numbers to the GPIOs they expose. Those GPIOs
  63. can then be used from drivers and other kernel code, just like
  64. other GPIOs, but only accessible from task contexts.
  65. This driver provides an in-kernel interface to those GPIOs using
  66. platform-neutral GPIO calls.
  67. comment "PCI GPIO expanders:"
  68. config GPIO_BT8XX
  69. tristate "BT8XX GPIO abuser"
  70. depends on PCI && VIDEO_BT848=n
  71. help
  72. The BT8xx frame grabber chip has 24 GPIO pins than can be abused
  73. as a cheap PCI GPIO card.
  74. This chip can be found on Miro, Hauppauge and STB TV-cards.
  75. The card needs to be physically altered for using it as a
  76. GPIO card. For more information on how to build a GPIO card
  77. from a BT8xx TV card, see the documentation file at
  78. Documentation/bt8xxgpio.txt
  79. If unsure, say N.
  80. comment "SPI GPIO expanders:"
  81. config GPIO_MAX7301
  82. tristate "Maxim MAX7301 GPIO expander"
  83. depends on SPI_MASTER
  84. help
  85. gpio driver for Maxim MAX7301 SPI GPIO expander.
  86. config GPIO_MCP23S08
  87. tristate "Microchip MCP23S08 I/O expander"
  88. depends on SPI_MASTER
  89. help
  90. SPI driver for Microchip MCP23S08 I/O expander. This provides
  91. a GPIO interface supporting inputs and outputs.
  92. endmenu