xref: /openbmc/u-boot/drivers/gpio/Kconfig (revision 0b11dbf705ee294ac5a9fe1aeda7b7f5537a8d72)
1*0b11dbf7SMasahiro Yamada#
2*0b11dbf7SMasahiro Yamada# GPIO infrastructure and drivers
3*0b11dbf7SMasahiro Yamada#
4*0b11dbf7SMasahiro Yamada
5*0b11dbf7SMasahiro Yamadamenu "GPIO Support"
6*0b11dbf7SMasahiro Yamada
7da333ae7SMasahiro Yamadaconfig DM_GPIO
8da333ae7SMasahiro Yamada	bool "Enable Driver Model for GPIO drivers"
9da333ae7SMasahiro Yamada	depends on DM
10da333ae7SMasahiro Yamada	help
11f94a1bedSSimon Glass	  Enable driver model for GPIO access. The standard GPIO
12f94a1bedSSimon Glass	  interface (gpio_get_value(), etc.) is then implemented by
13f94a1bedSSimon Glass	  the GPIO uclass. Drivers provide methods to query the
14f94a1bedSSimon Glass	  particular GPIOs that they provide. The uclass interface
15f94a1bedSSimon Glass	  is defined in include/asm-generic/gpio.h.
16606f7047SAlbert ARIBAUD \(3ADEV\)
17606f7047SAlbert ARIBAUD \(3ADEV\)config LPC32XX_GPIO
18606f7047SAlbert ARIBAUD \(3ADEV\)	bool "LPC32XX GPIO driver"
19606f7047SAlbert ARIBAUD \(3ADEV\)	depends on DM
20606f7047SAlbert ARIBAUD \(3ADEV\)	default n
21606f7047SAlbert ARIBAUD \(3ADEV\)	help
22606f7047SAlbert ARIBAUD \(3ADEV\)	  Support for the LPC32XX GPIO driver.
23d79c50afSSimon Glass
24d79c50afSSimon Glassconfig SANDBOX_GPIO
25d79c50afSSimon Glass	bool "Enable sandbox GPIO driver"
26d79c50afSSimon Glass	depends on SANDBOX && DM && DM_GPIO
27d79c50afSSimon Glass	help
28d79c50afSSimon Glass	  This driver supports some simulated GPIOs which can be adjusted
29d79c50afSSimon Glass	  using 'back door' functions like sandbox_gpio_set_value(). Then the
30d79c50afSSimon Glass	  GPIOs can be inspected through the normal get_get_value()
31d79c50afSSimon Glass	  interface. The purpose of this is to allow GPIOs to be used as
32d79c50afSSimon Glass	  normal in sandbox, perhaps with test code actually driving the
33d79c50afSSimon Glass	  behaviour of those GPIOs.
34d79c50afSSimon Glass
35d79c50afSSimon Glassconfig SANDBOX_GPIO_COUNT
36d79c50afSSimon Glass	int "Number of sandbox GPIOs"
37d79c50afSSimon Glass	depends on SANDBOX_GPIO
38d79c50afSSimon Glass	default 128
39d79c50afSSimon Glass	help
40d79c50afSSimon Glass	  The sandbox driver can support any number of GPIOs. Generally these
41d79c50afSSimon Glass	  are specified using the device tree. But you can also have a number
42d79c50afSSimon Glass	  of 'anonymous' GPIOs that do not belong to any device or bank.
43d79c50afSSimon Glass	  Select a suitable value depending on your needs.
44d348a943SBhuvanchandra DV
45d348a943SBhuvanchandra DVconfig VYBRID_GPIO
46d348a943SBhuvanchandra DV	bool "Vybrid GPIO driver"
47d348a943SBhuvanchandra DV	depends on DM
48d348a943SBhuvanchandra DV	default n
49d348a943SBhuvanchandra DV	help
50d348a943SBhuvanchandra DV	  Say yes here to support Vybrid vf610 GPIOs.
51*0b11dbf7SMasahiro Yamada
52*0b11dbf7SMasahiro Yamadaendmenu
53