Kconfig 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  1. #
  2. # GPIO infrastructure and drivers
  3. #
  4. config ARCH_WANT_OPTIONAL_GPIOLIB
  5. bool
  6. help
  7. Select this config option from the architecture Kconfig, if
  8. it is possible to use gpiolib on the architecture, but let the
  9. user decide whether to actually build it or not.
  10. Select this instead of ARCH_REQUIRE_GPIOLIB, if your architecture does
  11. not depend on GPIOs being available, but rather let the user
  12. decide whether he needs it or not.
  13. config ARCH_REQUIRE_GPIOLIB
  14. bool
  15. select GPIOLIB
  16. help
  17. Platforms select gpiolib if they use this infrastructure
  18. for all their GPIOs, usually starting with ones integrated
  19. into SOC processors.
  20. Selecting this from the architecture code will cause the gpiolib
  21. code to always get built in.
  22. menuconfig GPIOLIB
  23. bool "GPIO Support"
  24. depends on ARCH_WANT_OPTIONAL_GPIOLIB || ARCH_REQUIRE_GPIOLIB
  25. select GENERIC_GPIO
  26. help
  27. This enables GPIO support through the generic GPIO library.
  28. You only need to enable this, if you also want to enable
  29. one or more of the GPIO drivers below.
  30. If unsure, say N.
  31. if GPIOLIB
  32. config DEBUG_GPIO
  33. bool "Debug GPIO calls"
  34. depends on DEBUG_KERNEL
  35. help
  36. Say Y here to add some extra checks and diagnostics to GPIO calls.
  37. These checks help ensure that GPIOs have been properly initialized
  38. before they are used, and that sleeping calls are not made from
  39. non-sleeping contexts. They can make bitbanged serial protocols
  40. slower. The diagnostics help catch the type of setup errors
  41. that are most common when setting up new platforms or boards.
  42. config GPIO_SYSFS
  43. bool "/sys/class/gpio/... (sysfs interface)"
  44. depends on SYSFS && EXPERIMENTAL
  45. help
  46. Say Y here to add a sysfs interface for GPIOs.
  47. This is mostly useful to work around omissions in a system's
  48. kernel support. Those are common in custom and semicustom
  49. hardware assembled using standard kernels with a minimum of
  50. custom patches. In those cases, userspace code may import
  51. a given GPIO from the kernel, if no kernel driver requested it.
  52. Kernel drivers may also request that a particular GPIO be
  53. exported to userspace; this can be useful when debugging.
  54. # put drivers in the right section, in alphabetical order
  55. config GPIO_MAX730X
  56. tristate
  57. comment "Memory mapped GPIO drivers:"
  58. config GPIO_BASIC_MMIO_CORE
  59. tristate
  60. help
  61. Provides core functionality for basic memory-mapped GPIO controllers.
  62. config GPIO_BASIC_MMIO
  63. tristate "Basic memory-mapped GPIO controllers support"
  64. select GPIO_BASIC_MMIO_CORE
  65. help
  66. Say yes here to support basic memory-mapped GPIO controllers.
  67. config GPIO_IT8761E
  68. tristate "IT8761E GPIO support"
  69. help
  70. Say yes here to support GPIO functionality of IT8761E super I/O chip.
  71. config GPIO_EXYNOS4
  72. bool "Samsung Exynos4 GPIO library support"
  73. default y if CPU_EXYNOS4210
  74. depends on ARM
  75. help
  76. Say yes here to support Samsung Exynos4 series SoCs GPIO library
  77. config GPIO_PLAT_SAMSUNG
  78. bool "Samsung SoCs GPIO library support"
  79. default y if SAMSUNG_GPIOLIB_4BIT
  80. depends on ARM
  81. help
  82. Say yes here to support Samsung SoCs GPIO library
  83. config GPIO_S5PC100
  84. bool "Samsung S5PC100 GPIO library support"
  85. default y if CPU_S5PC100
  86. depends on ARM
  87. help
  88. Say yes here to support Samsung S5PC100 SoCs GPIO library
  89. config GPIO_S5PV210
  90. bool "Samsung S5PV210/S5PC110 GPIO library support"
  91. default y if CPU_S5PV210
  92. depends on ARM
  93. help
  94. Say yes here to support Samsung S5PV210/S5PC110 SoCs GPIO library
  95. config GPIO_PL061
  96. bool "PrimeCell PL061 GPIO support"
  97. depends on ARM_AMBA
  98. help
  99. Say yes here to support the PrimeCell PL061 GPIO device
  100. config GPIO_XILINX
  101. bool "Xilinx GPIO support"
  102. depends on PPC_OF || MICROBLAZE
  103. help
  104. Say yes here to support the Xilinx FPGA GPIO device
  105. config GPIO_VR41XX
  106. tristate "NEC VR4100 series General-purpose I/O Uint support"
  107. depends on CPU_VR41XX
  108. help
  109. Say yes here to support the NEC VR4100 series General-purpose I/O Uint
  110. config GPIO_SCH
  111. tristate "Intel SCH/TunnelCreek GPIO"
  112. depends on PCI && X86
  113. select MFD_CORE
  114. select LPC_SCH
  115. help
  116. Say yes here to support GPIO interface on Intel Poulsbo SCH
  117. or Intel Tunnel Creek processor.
  118. The Intel SCH contains a total of 14 GPIO pins. Ten GPIOs are
  119. powered by the core power rail and are turned off during sleep
  120. modes (S3 and higher). The remaining four GPIOs are powered by
  121. the Intel SCH suspend power supply. These GPIOs remain
  122. active during S3. The suspend powered GPIOs can be used to wake the
  123. system from the Suspend-to-RAM state.
  124. The Intel Tunnel Creek processor has 5 GPIOs powered by the
  125. core power rail and 9 from suspend power supply.
  126. This driver can also be built as a module. If so, the module
  127. will be called sch-gpio.
  128. config GPIO_VX855
  129. tristate "VIA VX855/VX875 GPIO"
  130. depends on MFD_SUPPORT && PCI
  131. select MFD_CORE
  132. select MFD_VX855
  133. help
  134. Support access to the VX855/VX875 GPIO lines through the gpio library.
  135. This driver provides common support for accessing the device,
  136. additional drivers must be enabled in order to use the
  137. functionality of the device.
  138. comment "I2C GPIO expanders:"
  139. config GPIO_MAX7300
  140. tristate "Maxim MAX7300 GPIO expander"
  141. depends on I2C
  142. select GPIO_MAX730X
  143. help
  144. GPIO driver for Maxim MAX7301 I2C-based GPIO expander.
  145. config GPIO_MAX732X
  146. tristate "MAX7319, MAX7320-7327 I2C Port Expanders"
  147. depends on I2C
  148. help
  149. Say yes here to support the MAX7319, MAX7320-7327 series of I2C
  150. Port Expanders. Each IO port on these chips has a fixed role of
  151. Input (designated by 'I'), Push-Pull Output ('O'), or Open-Drain
  152. Input and Output (designed by 'P'). The combinations are listed
  153. below:
  154. 8 bits: max7319 (8I), max7320 (8O), max7321 (8P),
  155. max7322 (4I4O), max7323 (4P4O)
  156. 16 bits: max7324 (8I8O), max7325 (8P8O),
  157. max7326 (4I12O), max7327 (4P12O)
  158. Board setup code must specify the model to use, and the start
  159. number for these GPIOs.
  160. config GPIO_MAX732X_IRQ
  161. bool "Interrupt controller support for MAX732x"
  162. depends on GPIO_MAX732X=y && GENERIC_HARDIRQS
  163. help
  164. Say yes here to enable the max732x to be used as an interrupt
  165. controller. It requires the driver to be built in the kernel.
  166. config GPIO_PCA953X
  167. tristate "PCA953x, PCA955x, TCA64xx, and MAX7310 I/O ports"
  168. depends on I2C
  169. help
  170. Say yes here to provide access to several register-oriented
  171. SMBus I/O expanders, made mostly by NXP or TI. Compatible
  172. models include:
  173. 4 bits: pca9536, pca9537
  174. 8 bits: max7310, pca9534, pca9538, pca9554, pca9557,
  175. tca6408
  176. 16 bits: pca9535, pca9539, pca9555, tca6416
  177. This driver can also be built as a module. If so, the module
  178. will be called pca953x.
  179. config GPIO_PCA953X_IRQ
  180. bool "Interrupt controller support for PCA953x"
  181. depends on GPIO_PCA953X=y
  182. help
  183. Say yes here to enable the pca953x to be used as an interrupt
  184. controller. It requires the driver to be built in the kernel.
  185. config GPIO_PCF857X
  186. tristate "PCF857x, PCA{85,96}7x, and MAX732[89] I2C GPIO expanders"
  187. depends on I2C
  188. help
  189. Say yes here to provide access to most "quasi-bidirectional" I2C
  190. GPIO expanders used for additional digital outputs or inputs.
  191. Most of these parts are from NXP, though TI is a second source for
  192. some of them. Compatible models include:
  193. 8 bits: pcf8574, pcf8574a, pca8574, pca8574a,
  194. pca9670, pca9672, pca9674, pca9674a,
  195. max7328, max7329
  196. 16 bits: pcf8575, pcf8575c, pca8575,
  197. pca9671, pca9673, pca9675
  198. Your board setup code will need to declare the expanders in
  199. use, and assign numbers to the GPIOs they expose. Those GPIOs
  200. can then be used from drivers and other kernel code, just like
  201. other GPIOs, but only accessible from task contexts.
  202. This driver provides an in-kernel interface to those GPIOs using
  203. platform-neutral GPIO calls.
  204. config GPIO_SX150X
  205. bool "Semtech SX150x I2C GPIO expander"
  206. depends on I2C=y
  207. default n
  208. help
  209. Say yes here to provide support for Semtech SX150-series I2C
  210. GPIO expanders. Compatible models include:
  211. 8 bits: sx1508q
  212. 16 bits: sx1509q
  213. config GPIO_STMPE
  214. bool "STMPE GPIOs"
  215. depends on MFD_STMPE
  216. help
  217. This enables support for the GPIOs found on the STMPE I/O
  218. Expanders.
  219. config GPIO_TC3589X
  220. bool "TC3589X GPIOs"
  221. depends on MFD_TC3589X
  222. help
  223. This enables support for the GPIOs found on the TC3589X
  224. I/O Expander.
  225. config GPIO_TWL4030
  226. tristate "TWL4030, TWL5030, and TPS659x0 GPIOs"
  227. depends on TWL4030_CORE
  228. help
  229. Say yes here to access the GPIO signals of various multi-function
  230. power management chips from Texas Instruments.
  231. config GPIO_WM831X
  232. tristate "WM831x GPIOs"
  233. depends on MFD_WM831X
  234. help
  235. Say yes here to access the GPIO signals of WM831x power management
  236. chips from Wolfson Microelectronics.
  237. config GPIO_WM8350
  238. tristate "WM8350 GPIOs"
  239. depends on MFD_WM8350
  240. help
  241. Say yes here to access the GPIO signals of WM8350 power management
  242. chips from Wolfson Microelectronics.
  243. config GPIO_WM8994
  244. tristate "WM8994 GPIOs"
  245. depends on MFD_WM8994
  246. help
  247. Say yes here to access the GPIO signals of WM8994 audio hub
  248. CODECs from Wolfson Microelectronics.
  249. config GPIO_ADP5520
  250. tristate "GPIO Support for ADP5520 PMIC"
  251. depends on PMIC_ADP5520
  252. help
  253. This option enables support for on-chip GPIO found
  254. on Analog Devices ADP5520 PMICs.
  255. To compile this driver as a module, choose M here: the module will
  256. be called adp5520-gpio.
  257. config GPIO_ADP5588
  258. tristate "ADP5588 I2C GPIO expander"
  259. depends on I2C
  260. help
  261. This option enables support for 18 GPIOs found
  262. on Analog Devices ADP5588 GPIO Expanders.
  263. To compile this driver as a module, choose M here: the module will be
  264. called adp5588-gpio.
  265. config GPIO_ADP5588_IRQ
  266. bool "Interrupt controller support for ADP5588"
  267. depends on GPIO_ADP5588=y
  268. help
  269. Say yes here to enable the adp5588 to be used as an interrupt
  270. controller. It requires the driver to be built in the kernel.
  271. comment "PCI GPIO expanders:"
  272. config GPIO_CS5535
  273. tristate "AMD CS5535/CS5536 GPIO support"
  274. depends on PCI && X86 && !CS5535_GPIO && MFD_CS5535
  275. help
  276. The AMD CS5535 and CS5536 southbridges support 28 GPIO pins that
  277. can be used for quite a number of things. The CS5535/6 is found on
  278. AMD Geode and Lemote Yeeloong devices.
  279. If unsure, say N.
  280. config GPIO_BT8XX
  281. tristate "BT8XX GPIO abuser"
  282. depends on PCI && VIDEO_BT848=n
  283. help
  284. The BT8xx frame grabber chip has 24 GPIO pins than can be abused
  285. as a cheap PCI GPIO card.
  286. This chip can be found on Miro, Hauppauge and STB TV-cards.
  287. The card needs to be physically altered for using it as a
  288. GPIO card. For more information on how to build a GPIO card
  289. from a BT8xx TV card, see the documentation file at
  290. Documentation/bt8xxgpio.txt
  291. If unsure, say N.
  292. config GPIO_LANGWELL
  293. bool "Intel Langwell/Penwell GPIO support"
  294. depends on PCI && X86
  295. help
  296. Say Y here to support Intel Langwell/Penwell GPIO.
  297. config GPIO_PCH
  298. tristate "Intel EG20T PCH / OKI SEMICONDUCTOR ML7223 IOH GPIO"
  299. depends on PCI && X86
  300. help
  301. This driver is for PCH(Platform controller Hub) GPIO of Intel Topcliff
  302. which is an IOH(Input/Output Hub) for x86 embedded processor.
  303. This driver can access PCH GPIO device.
  304. This driver also can be used for OKI SEMICONDUCTOR IOH(Input/
  305. Output Hub), ML7223.
  306. ML7223 IOH is for MP(Media Phone) use.
  307. ML7223 is companion chip for Intel Atom E6xx series.
  308. ML7223 is completely compatible for Intel EG20T PCH.
  309. config GPIO_ML_IOH
  310. tristate "OKI SEMICONDUCTOR ML7213 IOH GPIO support"
  311. depends on PCI
  312. help
  313. ML7213 is companion chip for Intel Atom E6xx series.
  314. This driver can be used for OKI SEMICONDUCTOR ML7213 IOH(Input/Output
  315. Hub) which is for IVI(In-Vehicle Infotainment) use.
  316. This driver can access the IOH's GPIO device.
  317. config GPIO_TIMBERDALE
  318. bool "Support for timberdale GPIO IP"
  319. depends on MFD_TIMBERDALE && HAS_IOMEM
  320. ---help---
  321. Add support for the GPIO IP in the timberdale FPGA.
  322. config GPIO_RDC321X
  323. tristate "RDC R-321x GPIO support"
  324. depends on PCI
  325. select MFD_SUPPORT
  326. select MFD_CORE
  327. select MFD_RDC321X
  328. help
  329. Support for the RDC R321x SoC GPIOs over southbridge
  330. PCI configuration space.
  331. comment "SPI GPIO expanders:"
  332. config GPIO_MAX7301
  333. tristate "Maxim MAX7301 GPIO expander"
  334. depends on SPI_MASTER
  335. select GPIO_MAX730X
  336. help
  337. GPIO driver for Maxim MAX7301 SPI-based GPIO expander.
  338. config GPIO_MCP23S08
  339. tristate "Microchip MCP23Sxx I/O expander"
  340. depends on SPI_MASTER
  341. help
  342. SPI driver for Microchip MCP23S08/MPC23S17 I/O expanders.
  343. This provides a GPIO interface supporting inputs and outputs.
  344. config GPIO_MC33880
  345. tristate "Freescale MC33880 high-side/low-side switch"
  346. depends on SPI_MASTER
  347. help
  348. SPI driver for Freescale MC33880 high-side/low-side switch.
  349. This provides GPIO interface supporting inputs and outputs.
  350. config GPIO_74X164
  351. tristate "74x164 serial-in/parallel-out 8-bits shift register"
  352. depends on SPI_MASTER
  353. help
  354. Platform driver for 74x164 compatible serial-in/parallel-out
  355. 8-outputs shift registers. This driver can be used to provide access
  356. to more gpio outputs.
  357. comment "AC97 GPIO expanders:"
  358. config GPIO_UCB1400
  359. bool "Philips UCB1400 GPIO"
  360. depends on UCB1400_CORE
  361. help
  362. This enables support for the Philips UCB1400 GPIO pins.
  363. The UCB1400 is an AC97 audio codec.
  364. To compile this driver as a module, choose M here: the
  365. module will be called ucb1400_gpio.
  366. comment "MODULbus GPIO expanders:"
  367. config GPIO_JANZ_TTL
  368. tristate "Janz VMOD-TTL Digital IO Module"
  369. depends on MFD_JANZ_CMODIO
  370. help
  371. This enables support for the Janz VMOD-TTL Digital IO module.
  372. This driver provides support for driving the pins in output
  373. mode only. Input mode is not supported.
  374. config AB8500_GPIO
  375. bool "ST-Ericsson AB8500 Mixed Signal Circuit gpio functions"
  376. depends on AB8500_CORE && BROKEN
  377. help
  378. Select this to enable the AB8500 IC GPIO driver
  379. config GPIO_TPS65910
  380. bool "TPS65910 GPIO"
  381. depends on MFD_TPS65910
  382. help
  383. Select this option to enable GPIO driver for the TPS65910
  384. chip family.
  385. endif