Kconfig 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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_PCA9539
  25. tristate "PCA9539 16-bit I/O port"
  26. depends on I2C
  27. help
  28. Say yes here to support the PCA9539 16-bit I/O port. These
  29. parts are made by NXP and TI.
  30. This driver can also be built as a module. If so, the module
  31. will be called pca9539.
  32. config GPIO_PCF857X
  33. tristate "PCF857x, PCA857x, and PCA967x I2C GPIO expanders"
  34. depends on I2C
  35. help
  36. Say yes here to provide access to most "quasi-bidirectional" I2C
  37. GPIO expanders used for additional digital outputs or inputs.
  38. Most of these parts are from NXP, though TI is a second source for
  39. some of them. Compatible models include:
  40. 8 bits: pcf8574, pcf8574a, pca8574, pca8574a,
  41. pca9670, pca9672, pca9674, pca9674a
  42. 16 bits: pcf8575, pcf8575c, pca8575,
  43. pca9671, pca9673, pca9675
  44. Your board setup code will need to declare the expanders in
  45. use, and assign numbers to the GPIOs they expose. Those GPIOs
  46. can then be used from drivers and other kernel code, just like
  47. other GPIOs, but only accessible from task contexts.
  48. This driver provides an in-kernel interface to those GPIOs using
  49. platform-neutral GPIO calls.
  50. comment "SPI GPIO expanders:"
  51. config GPIO_MCP23S08
  52. tristate "Microchip MCP23S08 I/O expander"
  53. depends on SPI_MASTER
  54. help
  55. SPI driver for Microchip MCP23S08 I/O expander. This provides
  56. a GPIO interface supporting inputs and outputs.
  57. endmenu