David Brownell | a9c5fff | 2008-02-04 22:28:17 -0800 | [diff] [blame^] | 1 | # |
| 2 | # GPIO infrastructure and expanders |
| 3 | # |
| 4 | |
| 5 | config HAVE_GPIO_LIB |
| 6 | bool |
| 7 | help |
| 8 | Platforms select gpiolib if they use this infrastructure |
| 9 | for all their GPIOs, usually starting with ones integrated |
| 10 | into SOC processors. |
| 11 | |
| 12 | menu "GPIO Support" |
| 13 | depends on HAVE_GPIO_LIB |
| 14 | |
| 15 | config DEBUG_GPIO |
| 16 | bool "Debug GPIO calls" |
| 17 | depends on DEBUG_KERNEL |
| 18 | help |
| 19 | Say Y here to add some extra checks and diagnostics to GPIO calls. |
| 20 | The checks help ensure that GPIOs have been properly initialized |
| 21 | before they are used and that sleeping calls aren not made from |
| 22 | nonsleeping contexts. They can make bitbanged serial protocols |
| 23 | slower. The diagnostics help catch the type of setup errors |
| 24 | that are most common when setting up new platforms or boards. |
| 25 | |
| 26 | # put expanders in the right section, in alphabetical order |
| 27 | |
| 28 | comment "I2C GPIO expanders:" |
| 29 | |
| 30 | comment "SPI GPIO expanders:" |
| 31 | |
| 32 | endmenu |