Kconfig 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. config DM_GPIO
  2. bool "Enable Driver Model for GPIO drivers"
  3. depends on DM
  4. help
  5. Enable driver model for GPIO access. The standard GPIO
  6. interface (gpio_get_value(), etc.) is then implemented by
  7. the GPIO uclass. Drivers provide methods to query the
  8. particular GPIOs that they provide. The uclass interface
  9. is defined in include/asm-generic/gpio.h.
  10. config LPC32XX_GPIO
  11. bool "LPC32XX GPIO driver"
  12. depends on DM
  13. default n
  14. help
  15. Support for the LPC32XX GPIO driver.
  16. config SANDBOX_GPIO
  17. bool "Enable sandbox GPIO driver"
  18. depends on SANDBOX && DM && DM_GPIO
  19. help
  20. This driver supports some simulated GPIOs which can be adjusted
  21. using 'back door' functions like sandbox_gpio_set_value(). Then the
  22. GPIOs can be inspected through the normal get_get_value()
  23. interface. The purpose of this is to allow GPIOs to be used as
  24. normal in sandbox, perhaps with test code actually driving the
  25. behaviour of those GPIOs.
  26. config SANDBOX_GPIO_COUNT
  27. int "Number of sandbox GPIOs"
  28. depends on SANDBOX_GPIO
  29. default 128
  30. help
  31. The sandbox driver can support any number of GPIOs. Generally these
  32. are specified using the device tree. But you can also have a number
  33. of 'anonymous' GPIOs that do not belong to any device or bank.
  34. Select a suitable value depending on your needs.