Kconfig 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. # put expanders in the right section, in alphabetical order
  23. comment "I2C GPIO expanders:"
  24. config GPIO_PCA953X
  25. tristate "PCA953x, PCA955x, and MAX7310 I/O ports"
  26. depends on I2C
  27. help
  28. Say yes here to provide access to several register-oriented
  29. SMBus I/O expanders, made mostly by NXP or TI. Compatible
  30. models include:
  31. 4 bits: pca9536, pca9537
  32. 8 bits: max7310, pca9534, pca9538, pca9554, pca9557
  33. 16 bits: pca9535, pca9539, pca9555
  34. This driver can also be built as a module. If so, the module
  35. will be called pca953x.
  36. config GPIO_PCF857X
  37. tristate "PCF857x, PCA{85,96}7x, and MAX732[89] I2C GPIO expanders"
  38. depends on I2C
  39. help
  40. Say yes here to provide access to most "quasi-bidirectional" I2C
  41. GPIO expanders used for additional digital outputs or inputs.
  42. Most of these parts are from NXP, though TI is a second source for
  43. some of them. Compatible models include:
  44. 8 bits: pcf8574, pcf8574a, pca8574, pca8574a,
  45. pca9670, pca9672, pca9674, pca9674a,
  46. max7328, max7329
  47. 16 bits: pcf8575, pcf8575c, pca8575,
  48. pca9671, pca9673, pca9675
  49. Your board setup code will need to declare the expanders in
  50. use, and assign numbers to the GPIOs they expose. Those GPIOs
  51. can then be used from drivers and other kernel code, just like
  52. other GPIOs, but only accessible from task contexts.
  53. This driver provides an in-kernel interface to those GPIOs using
  54. platform-neutral GPIO calls.
  55. comment "SPI GPIO expanders:"
  56. config GPIO_MAX7301
  57. tristate "Maxim MAX7301 GPIO expander"
  58. depends on SPI_MASTER
  59. help
  60. gpio driver for Maxim MAX7301 SPI GPIO expander.
  61. config GPIO_MCP23S08
  62. tristate "Microchip MCP23S08 I/O expander"
  63. depends on SPI_MASTER
  64. help
  65. SPI driver for Microchip MCP23S08 I/O expander. This provides
  66. a GPIO interface supporting inputs and outputs.
  67. endmenu