1da333ae7SMasahiro Yamadaconfig DM_GPIO 2da333ae7SMasahiro Yamada bool "Enable Driver Model for GPIO drivers" 3da333ae7SMasahiro Yamada depends on DM 4da333ae7SMasahiro Yamada help 5f94a1bedSSimon Glass Enable driver model for GPIO access. The standard GPIO 6f94a1bedSSimon Glass interface (gpio_get_value(), etc.) is then implemented by 7f94a1bedSSimon Glass the GPIO uclass. Drivers provide methods to query the 8f94a1bedSSimon Glass particular GPIOs that they provide. The uclass interface 9f94a1bedSSimon Glass is defined in include/asm-generic/gpio.h. 10606f7047SAlbert ARIBAUD \(3ADEV\) 11606f7047SAlbert ARIBAUD \(3ADEV\)config LPC32XX_GPIO 12606f7047SAlbert ARIBAUD \(3ADEV\) bool "LPC32XX GPIO driver" 13606f7047SAlbert ARIBAUD \(3ADEV\) depends on DM 14606f7047SAlbert ARIBAUD \(3ADEV\) default n 15606f7047SAlbert ARIBAUD \(3ADEV\) help 16606f7047SAlbert ARIBAUD \(3ADEV\) Support for the LPC32XX GPIO driver. 17d79c50afSSimon Glass 18d79c50afSSimon Glassconfig SANDBOX_GPIO 19d79c50afSSimon Glass bool "Enable sandbox GPIO driver" 20d79c50afSSimon Glass depends on SANDBOX && DM && DM_GPIO 21d79c50afSSimon Glass help 22d79c50afSSimon Glass This driver supports some simulated GPIOs which can be adjusted 23d79c50afSSimon Glass using 'back door' functions like sandbox_gpio_set_value(). Then the 24d79c50afSSimon Glass GPIOs can be inspected through the normal get_get_value() 25d79c50afSSimon Glass interface. The purpose of this is to allow GPIOs to be used as 26d79c50afSSimon Glass normal in sandbox, perhaps with test code actually driving the 27d79c50afSSimon Glass behaviour of those GPIOs. 28d79c50afSSimon Glass 29d79c50afSSimon Glassconfig SANDBOX_GPIO_COUNT 30d79c50afSSimon Glass int "Number of sandbox GPIOs" 31d79c50afSSimon Glass depends on SANDBOX_GPIO 32d79c50afSSimon Glass default 128 33d79c50afSSimon Glass help 34d79c50afSSimon Glass The sandbox driver can support any number of GPIOs. Generally these 35d79c50afSSimon Glass are specified using the device tree. But you can also have a number 36d79c50afSSimon Glass of 'anonymous' GPIOs that do not belong to any device or bank. 37d79c50afSSimon Glass Select a suitable value depending on your needs. 38*d348a943SBhuvanchandra DV 39*d348a943SBhuvanchandra DVconfig VYBRID_GPIO 40*d348a943SBhuvanchandra DV bool "Vybrid GPIO driver" 41*d348a943SBhuvanchandra DV depends on DM 42*d348a943SBhuvanchandra DV default n 43*d348a943SBhuvanchandra DV help 44*d348a943SBhuvanchandra DV Say yes here to support Vybrid vf610 GPIOs. 45