Kconfig 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596
  1. #
  2. # GPIO infrastructure and drivers
  3. #
  4. config ARCH_HAVE_CUSTOM_GPIO_H
  5. bool
  6. help
  7. Selecting this config option from the architecture Kconfig allows
  8. the architecture to provide a custom asm/gpio.h implementation
  9. overriding the default implementations. New uses of this are
  10. strongly discouraged.
  11. config ARCH_WANT_OPTIONAL_GPIOLIB
  12. bool
  13. help
  14. Select this config option from the architecture Kconfig, if
  15. it is possible to use gpiolib on the architecture, but let the
  16. user decide whether to actually build it or not.
  17. Select this instead of ARCH_REQUIRE_GPIOLIB, if your architecture does
  18. not depend on GPIOs being available, but rather let the user
  19. decide whether he needs it or not.
  20. config ARCH_REQUIRE_GPIOLIB
  21. bool
  22. select GPIOLIB
  23. help
  24. Platforms select gpiolib if they use this infrastructure
  25. for all their GPIOs, usually starting with ones integrated
  26. into SOC processors.
  27. Selecting this from the architecture code will cause the gpiolib
  28. code to always get built in.
  29. menuconfig GPIOLIB
  30. bool "GPIO Support"
  31. depends on ARCH_WANT_OPTIONAL_GPIOLIB || ARCH_REQUIRE_GPIOLIB
  32. select GENERIC_GPIO
  33. help
  34. This enables GPIO support through the generic GPIO library.
  35. You only need to enable this, if you also want to enable
  36. one or more of the GPIO drivers below.
  37. If unsure, say N.
  38. if GPIOLIB
  39. config OF_GPIO
  40. def_bool y
  41. depends on OF && !SPARC
  42. config DEBUG_GPIO
  43. bool "Debug GPIO calls"
  44. depends on DEBUG_KERNEL
  45. help
  46. Say Y here to add some extra checks and diagnostics to GPIO calls.
  47. These checks help ensure that GPIOs have been properly initialized
  48. before they are used, and that sleeping calls are not made from
  49. non-sleeping contexts. They can make bitbanged serial protocols
  50. slower. The diagnostics help catch the type of setup errors
  51. that are most common when setting up new platforms or boards.
  52. config GPIO_SYSFS
  53. bool "/sys/class/gpio/... (sysfs interface)"
  54. depends on SYSFS && EXPERIMENTAL
  55. help
  56. Say Y here to add a sysfs interface for GPIOs.
  57. This is mostly useful to work around omissions in a system's
  58. kernel support. Those are common in custom and semicustom
  59. hardware assembled using standard kernels with a minimum of
  60. custom patches. In those cases, userspace code may import
  61. a given GPIO from the kernel, if no kernel driver requested it.
  62. Kernel drivers may also request that a particular GPIO be
  63. exported to userspace; this can be useful when debugging.
  64. config GPIO_GENERIC
  65. tristate
  66. # put drivers in the right section, in alphabetical order
  67. config GPIO_DA9052
  68. tristate "Dialog DA9052 GPIO"
  69. depends on PMIC_DA9052 && BROKEN
  70. help
  71. Say yes here to enable the GPIO driver for the DA9052 chip.
  72. config GPIO_MAX730X
  73. tristate
  74. comment "Memory mapped GPIO drivers:"
  75. config GPIO_GENERIC_PLATFORM
  76. tristate "Generic memory-mapped GPIO controller support (MMIO platform device)"
  77. select GPIO_GENERIC
  78. help
  79. Say yes here to support basic platform_device memory-mapped GPIO controllers.
  80. config GPIO_IT8761E
  81. tristate "IT8761E GPIO support"
  82. depends on X86 # unconditional access to IO space.
  83. help
  84. Say yes here to support GPIO functionality of IT8761E super I/O chip.
  85. config GPIO_EM
  86. tristate "Emma Mobile GPIO"
  87. depends on ARM
  88. help
  89. Say yes here to support GPIO on Renesas Emma Mobile SoCs.
  90. config GPIO_EP93XX
  91. def_bool y
  92. depends on ARCH_EP93XX
  93. select GPIO_GENERIC
  94. config GPIO_MM_LANTIQ
  95. bool "Lantiq Memory mapped GPIOs"
  96. depends on LANTIQ && SOC_XWAY
  97. help
  98. This enables support for memory mapped GPIOs on the External Bus Unit
  99. (EBU) found on Lantiq SoCs. The gpios are output only as they are
  100. created by attaching a 16bit latch to the bus.
  101. config GPIO_MPC5200
  102. def_bool y
  103. depends on PPC_MPC52xx
  104. config GPIO_MPC8XXX
  105. bool "MPC512x/MPC8xxx GPIO support"
  106. depends on PPC_MPC512x || PPC_MPC831x || PPC_MPC834x || PPC_MPC837x || \
  107. FSL_SOC_BOOKE || PPC_86xx
  108. help
  109. Say Y here if you're going to use hardware that connects to the
  110. MPC512x/831x/834x/837x/8572/8610 GPIOs.
  111. config GPIO_MSM_V1
  112. tristate "Qualcomm MSM GPIO v1"
  113. depends on GPIOLIB && ARCH_MSM
  114. help
  115. Say yes here to support the GPIO interface on ARM v6 based
  116. Qualcomm MSM chips. Most of the pins on the MSM can be
  117. selected for GPIO, and are controlled by this driver.
  118. config GPIO_MSM_V2
  119. tristate "Qualcomm MSM GPIO v2"
  120. depends on GPIOLIB && ARCH_MSM
  121. help
  122. Say yes here to support the GPIO interface on ARM v7 based
  123. Qualcomm MSM chips. Most of the pins on the MSM can be
  124. selected for GPIO, and are controlled by this driver.
  125. config GPIO_MXC
  126. def_bool y
  127. depends on ARCH_MXC
  128. select GPIO_GENERIC
  129. select GENERIC_IRQ_CHIP
  130. config GPIO_MXS
  131. def_bool y
  132. depends on ARCH_MXS
  133. select GPIO_GENERIC
  134. select GENERIC_IRQ_CHIP
  135. config GPIO_PL061
  136. bool "PrimeCell PL061 GPIO support"
  137. depends on ARM_AMBA
  138. select GENERIC_IRQ_CHIP
  139. help
  140. Say yes here to support the PrimeCell PL061 GPIO device
  141. config GPIO_PXA
  142. bool "PXA GPIO support"
  143. depends on ARCH_PXA || ARCH_MMP
  144. help
  145. Say yes here to support the PXA GPIO device
  146. config GPIO_STA2X11
  147. bool "STA2x11/ConneXt GPIO support"
  148. depends on MFD_STA2X11
  149. select GENERIC_IRQ_CHIP
  150. help
  151. Say yes here to support the STA2x11/ConneXt GPIO device.
  152. The GPIO module has 128 GPIO pins with alternate functions.
  153. config GPIO_XILINX
  154. bool "Xilinx GPIO support"
  155. depends on PPC_OF || MICROBLAZE
  156. help
  157. Say yes here to support the Xilinx FPGA GPIO device
  158. config GPIO_VR41XX
  159. tristate "NEC VR4100 series General-purpose I/O Uint support"
  160. depends on CPU_VR41XX
  161. help
  162. Say yes here to support the NEC VR4100 series General-purpose I/O Uint
  163. config GPIO_SCH
  164. tristate "Intel SCH/TunnelCreek/Centerton GPIO"
  165. depends on PCI && X86
  166. select MFD_CORE
  167. select LPC_SCH
  168. help
  169. Say yes here to support GPIO interface on Intel Poulsbo SCH,
  170. Intel Tunnel Creek processor or Intel Centerton processor.
  171. The Intel SCH contains a total of 14 GPIO pins. Ten GPIOs are
  172. powered by the core power rail and are turned off during sleep
  173. modes (S3 and higher). The remaining four GPIOs are powered by
  174. the Intel SCH suspend power supply. These GPIOs remain
  175. active during S3. The suspend powered GPIOs can be used to wake the
  176. system from the Suspend-to-RAM state.
  177. The Intel Tunnel Creek processor has 5 GPIOs powered by the
  178. core power rail and 9 from suspend power supply.
  179. The Intel Centerton processor has a total of 30 GPIO pins.
  180. Twenty-one are powered by the core power rail and 9 from the
  181. suspend power supply.
  182. config GPIO_ICH
  183. tristate "Intel ICH GPIO"
  184. depends on PCI && X86
  185. select MFD_CORE
  186. select LPC_ICH
  187. help
  188. Say yes here to support the GPIO functionality of a number of Intel
  189. ICH-based chipsets. Currently supported devices: ICH6, ICH7, ICH8
  190. ICH9, ICH10, Series 5/3400 (eg Ibex Peak), Series 6/C200 (eg
  191. Cougar Point), NM10 (Tiger Point), and 3100 (Whitmore Lake).
  192. If unsure, say N.
  193. config GPIO_VX855
  194. tristate "VIA VX855/VX875 GPIO"
  195. depends on PCI
  196. select MFD_CORE
  197. select MFD_VX855
  198. help
  199. Support access to the VX855/VX875 GPIO lines through the gpio library.
  200. This driver provides common support for accessing the device,
  201. additional drivers must be enabled in order to use the
  202. functionality of the device.
  203. config GPIO_GE_FPGA
  204. bool "GE FPGA based GPIO"
  205. depends on GE_FPGA
  206. help
  207. Support for common GPIO functionality provided on some GE Single Board
  208. Computers.
  209. This driver provides basic support (configure as input or output, read
  210. and write pin state) for GPIO implemented in a number of GE single
  211. board computers.
  212. comment "I2C GPIO expanders:"
  213. config GPIO_MAX7300
  214. tristate "Maxim MAX7300 GPIO expander"
  215. depends on I2C
  216. select GPIO_MAX730X
  217. help
  218. GPIO driver for Maxim MAX7301 I2C-based GPIO expander.
  219. config GPIO_MAX732X
  220. tristate "MAX7319, MAX7320-7327 I2C Port Expanders"
  221. depends on I2C
  222. help
  223. Say yes here to support the MAX7319, MAX7320-7327 series of I2C
  224. Port Expanders. Each IO port on these chips has a fixed role of
  225. Input (designated by 'I'), Push-Pull Output ('O'), or Open-Drain
  226. Input and Output (designed by 'P'). The combinations are listed
  227. below:
  228. 8 bits: max7319 (8I), max7320 (8O), max7321 (8P),
  229. max7322 (4I4O), max7323 (4P4O)
  230. 16 bits: max7324 (8I8O), max7325 (8P8O),
  231. max7326 (4I12O), max7327 (4P12O)
  232. Board setup code must specify the model to use, and the start
  233. number for these GPIOs.
  234. config GPIO_MAX732X_IRQ
  235. bool "Interrupt controller support for MAX732x"
  236. depends on GPIO_MAX732X=y && GENERIC_HARDIRQS
  237. help
  238. Say yes here to enable the max732x to be used as an interrupt
  239. controller. It requires the driver to be built in the kernel.
  240. config GPIO_MC9S08DZ60
  241. bool "MX35 3DS BOARD MC9S08DZ60 GPIO functions"
  242. depends on I2C && MACH_MX35_3DS
  243. help
  244. Select this to enable the MC9S08DZ60 GPIO driver
  245. config GPIO_PCA953X
  246. tristate "PCA953x, PCA955x, PCA957x, TCA64xx, and MAX7310 I/O ports"
  247. depends on I2C
  248. help
  249. Say yes here to provide access to several register-oriented
  250. SMBus I/O expanders, made mostly by NXP or TI. Compatible
  251. models include:
  252. 4 bits: pca9536, pca9537
  253. 8 bits: max7310, max7315, pca6107, pca9534, pca9538, pca9554,
  254. pca9556, pca9557, pca9574, tca6408
  255. 16 bits: max7312, max7313, pca9535, pca9539, pca9555, pca9575,
  256. tca6416
  257. config GPIO_PCA953X_IRQ
  258. bool "Interrupt controller support for PCA953x"
  259. depends on GPIO_PCA953X=y
  260. help
  261. Say yes here to enable the pca953x to be used as an interrupt
  262. controller. It requires the driver to be built in the kernel.
  263. config GPIO_PCF857X
  264. tristate "PCF857x, PCA{85,96}7x, and MAX732[89] I2C GPIO expanders"
  265. depends on I2C
  266. help
  267. Say yes here to provide access to most "quasi-bidirectional" I2C
  268. GPIO expanders used for additional digital outputs or inputs.
  269. Most of these parts are from NXP, though TI is a second source for
  270. some of them. Compatible models include:
  271. 8 bits: pcf8574, pcf8574a, pca8574, pca8574a,
  272. pca9670, pca9672, pca9674, pca9674a,
  273. max7328, max7329
  274. 16 bits: pcf8575, pcf8575c, pca8575,
  275. pca9671, pca9673, pca9675
  276. Your board setup code will need to declare the expanders in
  277. use, and assign numbers to the GPIOs they expose. Those GPIOs
  278. can then be used from drivers and other kernel code, just like
  279. other GPIOs, but only accessible from task contexts.
  280. This driver provides an in-kernel interface to those GPIOs using
  281. platform-neutral GPIO calls.
  282. config GPIO_RC5T583
  283. bool "RICOH RC5T583 GPIO"
  284. depends on MFD_RC5T583
  285. help
  286. Select this option to enable GPIO driver for the Ricoh RC5T583
  287. chip family.
  288. This driver provides the support for driving/reading the gpio pins
  289. of RC5T583 device through standard gpio library.
  290. config GPIO_SX150X
  291. bool "Semtech SX150x I2C GPIO expander"
  292. depends on I2C=y
  293. default n
  294. help
  295. Say yes here to provide support for Semtech SX150-series I2C
  296. GPIO expanders. Compatible models include:
  297. 8 bits: sx1508q
  298. 16 bits: sx1509q
  299. config GPIO_STMPE
  300. bool "STMPE GPIOs"
  301. depends on MFD_STMPE
  302. help
  303. This enables support for the GPIOs found on the STMPE I/O
  304. Expanders.
  305. config GPIO_STP_XWAY
  306. bool "XWAY STP GPIOs"
  307. depends on SOC_XWAY
  308. help
  309. This enables support for the Serial To Parallel (STP) unit found on
  310. XWAY SoC. The STP allows the SoC to drive a shift registers cascade,
  311. that can be up to 24 bit. This peripheral is aimed at driving leds.
  312. Some of the gpios/leds can be auto updated by the soc with dsl and
  313. phy status.
  314. config GPIO_TC3589X
  315. bool "TC3589X GPIOs"
  316. depends on MFD_TC3589X
  317. help
  318. This enables support for the GPIOs found on the TC3589X
  319. I/O Expander.
  320. config GPIO_TPS65912
  321. tristate "TI TPS65912 GPIO"
  322. depends on (MFD_TPS65912_I2C || MFD_TPS65912_SPI)
  323. help
  324. This driver supports TPS65912 gpio chip
  325. config GPIO_TWL4030
  326. tristate "TWL4030, TWL5030, and TPS659x0 GPIOs"
  327. depends on TWL4030_CORE
  328. help
  329. Say yes here to access the GPIO signals of various multi-function
  330. power management chips from Texas Instruments.
  331. config GPIO_WM831X
  332. tristate "WM831x GPIOs"
  333. depends on MFD_WM831X
  334. help
  335. Say yes here to access the GPIO signals of WM831x power management
  336. chips from Wolfson Microelectronics.
  337. config GPIO_WM8350
  338. tristate "WM8350 GPIOs"
  339. depends on MFD_WM8350
  340. help
  341. Say yes here to access the GPIO signals of WM8350 power management
  342. chips from Wolfson Microelectronics.
  343. config GPIO_WM8994
  344. tristate "WM8994 GPIOs"
  345. depends on MFD_WM8994
  346. help
  347. Say yes here to access the GPIO signals of WM8994 audio hub
  348. CODECs from Wolfson Microelectronics.
  349. config GPIO_ADP5520
  350. tristate "GPIO Support for ADP5520 PMIC"
  351. depends on PMIC_ADP5520
  352. help
  353. This option enables support for on-chip GPIO found
  354. on Analog Devices ADP5520 PMICs.
  355. config GPIO_ADP5588
  356. tristate "ADP5588 I2C GPIO expander"
  357. depends on I2C
  358. help
  359. This option enables support for 18 GPIOs found
  360. on Analog Devices ADP5588 GPIO Expanders.
  361. config GPIO_ADP5588_IRQ
  362. bool "Interrupt controller support for ADP5588"
  363. depends on GPIO_ADP5588=y
  364. help
  365. Say yes here to enable the adp5588 to be used as an interrupt
  366. controller. It requires the driver to be built in the kernel.
  367. comment "PCI GPIO expanders:"
  368. config GPIO_CS5535
  369. tristate "AMD CS5535/CS5536 GPIO support"
  370. depends on PCI && X86 && MFD_CS5535
  371. help
  372. The AMD CS5535 and CS5536 southbridges support 28 GPIO pins that
  373. can be used for quite a number of things. The CS5535/6 is found on
  374. AMD Geode and Lemote Yeeloong devices.
  375. If unsure, say N.
  376. config GPIO_BT8XX
  377. tristate "BT8XX GPIO abuser"
  378. depends on PCI && VIDEO_BT848=n
  379. help
  380. The BT8xx frame grabber chip has 24 GPIO pins than can be abused
  381. as a cheap PCI GPIO card.
  382. This chip can be found on Miro, Hauppauge and STB TV-cards.
  383. The card needs to be physically altered for using it as a
  384. GPIO card. For more information on how to build a GPIO card
  385. from a BT8xx TV card, see the documentation file at
  386. Documentation/bt8xxgpio.txt
  387. If unsure, say N.
  388. config GPIO_LANGWELL
  389. bool "Intel Langwell/Penwell GPIO support"
  390. depends on PCI && X86
  391. select IRQ_DOMAIN
  392. help
  393. Say Y here to support Intel Langwell/Penwell GPIO.
  394. config GPIO_PCH
  395. tristate "Intel EG20T PCH/LAPIS Semiconductor IOH(ML7223/ML7831) GPIO"
  396. depends on PCI && X86
  397. select GENERIC_IRQ_CHIP
  398. help
  399. This driver is for PCH(Platform controller Hub) GPIO of Intel Topcliff
  400. which is an IOH(Input/Output Hub) for x86 embedded processor.
  401. This driver can access PCH GPIO device.
  402. This driver also can be used for LAPIS Semiconductor IOH(Input/
  403. Output Hub), ML7223 and ML7831.
  404. ML7223 IOH is for MP(Media Phone) use.
  405. ML7831 IOH is for general purpose use.
  406. ML7223/ML7831 is companion chip for Intel Atom E6xx series.
  407. ML7223/ML7831 is completely compatible for Intel EG20T PCH.
  408. config GPIO_ML_IOH
  409. tristate "OKI SEMICONDUCTOR ML7213 IOH GPIO support"
  410. depends on PCI
  411. select GENERIC_IRQ_CHIP
  412. help
  413. ML7213 is companion chip for Intel Atom E6xx series.
  414. This driver can be used for OKI SEMICONDUCTOR ML7213 IOH(Input/Output
  415. Hub) which is for IVI(In-Vehicle Infotainment) use.
  416. This driver can access the IOH's GPIO device.
  417. config GPIO_SODAVILLE
  418. bool "Intel Sodaville GPIO support"
  419. depends on X86 && PCI && OF
  420. select GPIO_GENERIC
  421. select GENERIC_IRQ_CHIP
  422. help
  423. Say Y here to support Intel Sodaville GPIO.
  424. config GPIO_TIMBERDALE
  425. bool "Support for timberdale GPIO IP"
  426. depends on MFD_TIMBERDALE && HAS_IOMEM
  427. ---help---
  428. Add support for the GPIO IP in the timberdale FPGA.
  429. config GPIO_RDC321X
  430. tristate "RDC R-321x GPIO support"
  431. depends on PCI
  432. select MFD_CORE
  433. select MFD_RDC321X
  434. help
  435. Support for the RDC R321x SoC GPIOs over southbridge
  436. PCI configuration space.
  437. comment "SPI GPIO expanders:"
  438. config GPIO_MAX7301
  439. tristate "Maxim MAX7301 GPIO expander"
  440. depends on SPI_MASTER
  441. select GPIO_MAX730X
  442. help
  443. GPIO driver for Maxim MAX7301 SPI-based GPIO expander.
  444. config GPIO_MCP23S08
  445. tristate "Microchip MCP23xxx I/O expander"
  446. depends on SPI_MASTER || I2C
  447. help
  448. SPI/I2C driver for Microchip MCP23S08/MCP23S17/MCP23008/MCP23017
  449. I/O expanders.
  450. This provides a GPIO interface supporting inputs and outputs.
  451. config GPIO_MC33880
  452. tristate "Freescale MC33880 high-side/low-side switch"
  453. depends on SPI_MASTER
  454. help
  455. SPI driver for Freescale MC33880 high-side/low-side switch.
  456. This provides GPIO interface supporting inputs and outputs.
  457. config GPIO_74X164
  458. tristate "74x164 serial-in/parallel-out 8-bits shift register"
  459. depends on SPI_MASTER
  460. help
  461. Platform driver for 74x164 compatible serial-in/parallel-out
  462. 8-outputs shift registers. This driver can be used to provide access
  463. to more gpio outputs.
  464. comment "AC97 GPIO expanders:"
  465. config GPIO_UCB1400
  466. bool "Philips UCB1400 GPIO"
  467. depends on UCB1400_CORE
  468. help
  469. This enables support for the Philips UCB1400 GPIO pins.
  470. The UCB1400 is an AC97 audio codec.
  471. comment "MODULbus GPIO expanders:"
  472. config GPIO_JANZ_TTL
  473. tristate "Janz VMOD-TTL Digital IO Module"
  474. depends on MFD_JANZ_CMODIO
  475. help
  476. This enables support for the Janz VMOD-TTL Digital IO module.
  477. This driver provides support for driving the pins in output
  478. mode only. Input mode is not supported.
  479. config GPIO_AB8500
  480. bool "ST-Ericsson AB8500 Mixed Signal Circuit gpio functions"
  481. depends on AB8500_CORE && BROKEN
  482. help
  483. Select this to enable the AB8500 IC GPIO driver
  484. config GPIO_TPS65910
  485. bool "TPS65910 GPIO"
  486. depends on MFD_TPS65910
  487. help
  488. Select this option to enable GPIO driver for the TPS65910
  489. chip family.
  490. config GPIO_MSIC
  491. bool "Intel MSIC mixed signal gpio support"
  492. depends on MFD_INTEL_MSIC
  493. help
  494. Enable support for GPIO on intel MSIC controllers found in
  495. intel MID devices
  496. endif