Kconfig 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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_PCF857X
  25. tristate "PCF857x, PCA857x, and PCA967x I2C GPIO expanders"
  26. depends on I2C
  27. help
  28. Say yes here to provide access to most "quasi-bidirectional" I2C
  29. GPIO expanders used for additional digital outputs or inputs.
  30. Most of these parts are from NXP, though TI is a second source for
  31. some of them. Compatible models include:
  32. 8 bits: pcf8574, pcf8574a, pca8574, pca8574a,
  33. pca9670, pca9672, pca9674, pca9674a
  34. 16 bits: pcf8575, pcf8575c, pca8575,
  35. pca9671, pca9673, pca9675
  36. Your board setup code will need to declare the expanders in
  37. use, and assign numbers to the GPIOs they expose. Those GPIOs
  38. can then be used from drivers and other kernel code, just like
  39. other GPIOs, but only accessible from task contexts.
  40. This driver provides an in-kernel interface to those GPIOs using
  41. platform-neutral GPIO calls.
  42. comment "SPI GPIO expanders:"
  43. endmenu