Kconfig 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535
  1. #
  2. # I2C subsystem configuration
  3. #
  4. menu "I2C support"
  5. config DM_I2C
  6. bool "Enable Driver Model for I2C drivers"
  7. depends on DM
  8. help
  9. Enable driver model for I2C. The I2C uclass interface: probe, read,
  10. write and speed, is implemented with the bus drivers operations,
  11. which provide methods for bus setting and data transfer. Each chip
  12. device (bus child) info is kept as parent plat. The interface
  13. is defined in include/i2c.h.
  14. config SPL_DM_I2C
  15. bool "Enable Driver Model for I2C drivers in SPL"
  16. depends on SPL_DM && DM_I2C
  17. default y
  18. help
  19. Enable driver model for I2C. The I2C uclass interface: probe, read,
  20. write and speed, is implemented with the bus drivers operations,
  21. which provide methods for bus setting and data transfer. Each chip
  22. device (bus child) info is kept as parent platdata. The interface
  23. is defined in include/i2c.h.
  24. config I2C_CROS_EC_TUNNEL
  25. tristate "Chrome OS EC tunnel I2C bus"
  26. depends on CROS_EC
  27. help
  28. This provides an I2C bus that will tunnel i2c commands through to
  29. the other side of the Chrome OS EC to the I2C bus connected there.
  30. This will work whatever the interface used to talk to the EC (SPI,
  31. I2C or LPC). Some Chromebooks use this when the hardware design
  32. does not allow direct access to the main PMIC from the AP.
  33. config I2C_CROS_EC_LDO
  34. bool "Provide access to LDOs on the Chrome OS EC"
  35. depends on CROS_EC
  36. ---help---
  37. On many Chromebooks the main PMIC is inaccessible to the AP. This is
  38. often dealt with by using an I2C pass-through interface provided by
  39. the EC. On some unfortunate models (e.g. Spring) the pass-through
  40. is not available, and an LDO message is available instead. This
  41. option enables a driver which provides very basic access to those
  42. regulators, via the EC. We implement this as an I2C bus which
  43. emulates just the TPS65090 messages we know about. This is done to
  44. avoid duplicating the logic in the TPS65090 regulator driver for
  45. enabling/disabling an LDO.
  46. config I2C_SET_DEFAULT_BUS_NUM
  47. bool "Set default I2C bus number"
  48. depends on DM_I2C
  49. help
  50. Set default number of I2C bus to be accessed. This option provides
  51. behaviour similar to old (i.e. pre DM) I2C bus driver.
  52. config I2C_DEFAULT_BUS_NUMBER
  53. hex "I2C default bus number"
  54. depends on I2C_SET_DEFAULT_BUS_NUM
  55. default 0x0
  56. help
  57. Number of default I2C bus to use
  58. config DM_I2C_GPIO
  59. bool "Enable Driver Model for software emulated I2C bus driver"
  60. depends on DM_I2C && DM_GPIO
  61. help
  62. Enable the i2c bus driver emulation by using the GPIOs. The bus GPIO
  63. configuration is given by the device tree. Kernel-style device tree
  64. bindings are supported.
  65. Binding info: doc/device-tree-bindings/i2c/i2c-gpio.txt
  66. config SPL_DM_I2C_GPIO
  67. bool "Enable Driver Model for software emulated I2C bus driver in SPL"
  68. depends on SPL_DM && DM_I2C_GPIO && SPL_DM_GPIO && SPL_GPIO_SUPPORT
  69. default y
  70. help
  71. Enable the i2c bus driver emulation by using the GPIOs. The bus GPIO
  72. configuration is given by the device tree. Kernel-style device tree
  73. bindings are supported.
  74. Binding info: doc/device-tree-bindings/i2c/i2c-gpio.txt
  75. config SYS_I2C_AT91
  76. bool "Atmel I2C driver"
  77. depends on DM_I2C && ARCH_AT91
  78. help
  79. Add support for the Atmel I2C driver. A serious problem is that there
  80. is no documented way to issue repeated START conditions for more than
  81. two messages, as needed to support combined I2C messages. Use the
  82. i2c-gpio driver unless your system can cope with this limitation.
  83. Binding info: doc/device-tree-bindings/i2c/i2c-at91.txt
  84. config SYS_I2C_IPROC
  85. bool "Broadcom I2C driver"
  86. depends on DM_I2C
  87. help
  88. Broadcom I2C driver.
  89. Add support for Broadcom I2C driver.
  90. Say yes here to to enable the Broadco I2C driver.
  91. config SYS_I2C_FSL
  92. bool "Freescale I2C bus driver"
  93. depends on DM_I2C
  94. help
  95. Add support for Freescale I2C busses as used on MPC8240, MPC8245, and
  96. MPC85xx processors.
  97. config SYS_I2C_CADENCE
  98. tristate "Cadence I2C Controller"
  99. depends on DM_I2C
  100. help
  101. Say yes here to select Cadence I2C Host Controller. This controller is
  102. e.g. used by Xilinx Zynq.
  103. config SYS_I2C_CA
  104. tristate "Cortina-Access I2C Controller"
  105. depends on DM_I2C && CORTINA_PLATFORM
  106. default n
  107. help
  108. Add support for the Cortina Access I2C host controller.
  109. Say yes here to select Cortina-Access I2C Host Controller.
  110. config SYS_I2C_DAVINCI
  111. bool "Davinci I2C Controller"
  112. depends on (ARCH_KEYSTONE || ARCH_DAVINCI)
  113. help
  114. Say yes here to add support for Davinci and Keystone I2C controller
  115. config SYS_I2C_DW
  116. bool "Designware I2C Controller"
  117. default n
  118. help
  119. Say yes here to select the Designware I2C Host Controller. This
  120. controller is used in various SoCs, e.g. the ST SPEAr, Altera
  121. SoCFPGA, Synopsys ARC700 and some Intel x86 SoCs.
  122. config SYS_I2C_DW_ENABLE_STATUS_UNSUPPORTED
  123. bool "DW I2C Enable Status Register not supported"
  124. depends on SYS_I2C_DW && (TARGET_SPEAR300 || TARGET_SPEAR310 || \
  125. TARGET_SPEAR320 || TARGET_SPEAR600 || TARGET_X600)
  126. default y
  127. help
  128. Some versions of the Designware I2C controller do not support the
  129. enable status register. This config option can be enabled in such
  130. cases.
  131. config SYS_I2C_ASPEED
  132. bool "Aspeed I2C Controller"
  133. depends on DM_I2C && ARCH_ASPEED
  134. help
  135. Say yes here to select Aspeed I2C Host Controller. The driver
  136. supports AST2500 and AST2400 controllers, but is very limited.
  137. Only single master mode is supported and only byte-by-byte
  138. synchronous reads and writes are supported, no Pool Buffers or DMA.
  139. config SYS_I2C_INTEL
  140. bool "Intel I2C/SMBUS driver"
  141. depends on DM_I2C
  142. help
  143. Add support for the Intel SMBUS driver. So far this driver is just
  144. a stub which perhaps some basic init. There is no implementation of
  145. the I2C API meaning that any I2C operations will immediately fail
  146. for now.
  147. config SYS_I2C_IMX_LPI2C
  148. bool "NXP i.MX LPI2C driver"
  149. help
  150. Add support for the NXP i.MX LPI2C driver.
  151. config SYS_I2C_MESON
  152. bool "Amlogic Meson I2C driver"
  153. depends on DM_I2C && ARCH_MESON
  154. help
  155. Add support for the I2C controller available in Amlogic Meson
  156. SoCs. The controller supports programmable bus speed including
  157. standard (100kbits/s) and fast (400kbit/s) speed and allows the
  158. software to define a flexible format of the bit streams. It has an
  159. internal buffer holding up to 8 bytes for transfers and supports
  160. both 7-bit and 10-bit addresses.
  161. config SYS_I2C_MXC
  162. bool "NXP MXC I2C driver"
  163. help
  164. Add support for the NXP I2C driver. This supports up to four bus
  165. channels and operating on standard mode up to 100 kbits/s and fast
  166. mode up to 400 kbits/s.
  167. # These settings are not used with DM_I2C, however SPL doesn't use
  168. # DM_I2C even if DM_I2C is enabled, and so might use these settings even
  169. # when main u-boot does not!
  170. if SYS_I2C_MXC && (!DM_I2C || SPL)
  171. config SYS_I2C_MXC_I2C1
  172. bool "NXP MXC I2C1"
  173. help
  174. Add support for NXP MXC I2C Controller 1.
  175. Required for SoCs which have I2C MXC controller 1 eg LS1088A, LS2080A
  176. config SYS_I2C_MXC_I2C2
  177. bool "NXP MXC I2C2"
  178. help
  179. Add support for NXP MXC I2C Controller 2.
  180. Required for SoCs which have I2C MXC controller 2 eg LS1088A, LS2080A
  181. config SYS_I2C_MXC_I2C3
  182. bool "NXP MXC I2C3"
  183. help
  184. Add support for NXP MXC I2C Controller 3.
  185. Required for SoCs which have I2C MXC controller 3 eg LS1088A, LS2080A
  186. config SYS_I2C_MXC_I2C4
  187. bool "NXP MXC I2C4"
  188. help
  189. Add support for NXP MXC I2C Controller 4.
  190. Required for SoCs which have I2C MXC controller 4 eg LS1088A, LS2080A
  191. config SYS_I2C_MXC_I2C5
  192. bool "NXP MXC I2C5"
  193. help
  194. Add support for NXP MXC I2C Controller 5.
  195. Required for SoCs which have I2C MXC controller 5 eg LX2160A
  196. config SYS_I2C_MXC_I2C6
  197. bool "NXP MXC I2C6"
  198. help
  199. Add support for NXP MXC I2C Controller 6.
  200. Required for SoCs which have I2C MXC controller 6 eg LX2160A
  201. config SYS_I2C_MXC_I2C7
  202. bool "NXP MXC I2C7"
  203. help
  204. Add support for NXP MXC I2C Controller 7.
  205. Required for SoCs which have I2C MXC controller 7 eg LX2160A
  206. config SYS_I2C_MXC_I2C8
  207. bool "NXP MXC I2C8"
  208. help
  209. Add support for NXP MXC I2C Controller 8.
  210. Required for SoCs which have I2C MXC controller 8 eg LX2160A
  211. endif
  212. if SYS_I2C_MXC_I2C1
  213. config SYS_MXC_I2C1_SPEED
  214. int "I2C Channel 1 speed"
  215. default 40000000 if TARGET_LS2080A_EMU
  216. default 100000
  217. help
  218. MXC I2C Channel 1 speed
  219. config SYS_MXC_I2C1_SLAVE
  220. int "I2C1 Slave"
  221. default 0
  222. help
  223. MXC I2C1 Slave
  224. endif
  225. if SYS_I2C_MXC_I2C2
  226. config SYS_MXC_I2C2_SPEED
  227. int "I2C Channel 2 speed"
  228. default 40000000 if TARGET_LS2080A_EMU
  229. default 100000
  230. help
  231. MXC I2C Channel 2 speed
  232. config SYS_MXC_I2C2_SLAVE
  233. int "I2C2 Slave"
  234. default 0
  235. help
  236. MXC I2C2 Slave
  237. endif
  238. if SYS_I2C_MXC_I2C3
  239. config SYS_MXC_I2C3_SPEED
  240. int "I2C Channel 3 speed"
  241. default 100000
  242. help
  243. MXC I2C Channel 3 speed
  244. config SYS_MXC_I2C3_SLAVE
  245. int "I2C3 Slave"
  246. default 0
  247. help
  248. MXC I2C3 Slave
  249. endif
  250. if SYS_I2C_MXC_I2C4
  251. config SYS_MXC_I2C4_SPEED
  252. int "I2C Channel 4 speed"
  253. default 100000
  254. help
  255. MXC I2C Channel 4 speed
  256. config SYS_MXC_I2C4_SLAVE
  257. int "I2C4 Slave"
  258. default 0
  259. help
  260. MXC I2C4 Slave
  261. endif
  262. if SYS_I2C_MXC_I2C5
  263. config SYS_MXC_I2C5_SPEED
  264. int "I2C Channel 5 speed"
  265. default 100000
  266. help
  267. MXC I2C Channel 5 speed
  268. config SYS_MXC_I2C5_SLAVE
  269. int "I2C5 Slave"
  270. default 0
  271. help
  272. MXC I2C5 Slave
  273. endif
  274. if SYS_I2C_MXC_I2C6
  275. config SYS_MXC_I2C6_SPEED
  276. int "I2C Channel 6 speed"
  277. default 100000
  278. help
  279. MXC I2C Channel 6 speed
  280. config SYS_MXC_I2C6_SLAVE
  281. int "I2C6 Slave"
  282. default 0
  283. help
  284. MXC I2C6 Slave
  285. endif
  286. if SYS_I2C_MXC_I2C7
  287. config SYS_MXC_I2C7_SPEED
  288. int "I2C Channel 7 speed"
  289. default 100000
  290. help
  291. MXC I2C Channel 7 speed
  292. config SYS_MXC_I2C7_SLAVE
  293. int "I2C7 Slave"
  294. default 0
  295. help
  296. MXC I2C7 Slave
  297. endif
  298. if SYS_I2C_MXC_I2C8
  299. config SYS_MXC_I2C8_SPEED
  300. int "I2C Channel 8 speed"
  301. default 100000
  302. help
  303. MXC I2C Channel 8 speed
  304. config SYS_MXC_I2C8_SLAVE
  305. int "I2C8 Slave"
  306. default 0
  307. help
  308. MXC I2C8 Slave
  309. endif
  310. config SYS_I2C_NEXELL
  311. bool "Nexell I2C driver"
  312. depends on DM_I2C
  313. help
  314. Add support for the Nexell I2C driver. This is used with various
  315. Nexell parts such as S5Pxx18 series SoCs. All chips
  316. have several I2C ports and all are provided, controlled by the
  317. device tree.
  318. config SYS_I2C_OCORES
  319. bool "ocores I2C driver"
  320. depends on DM_I2C
  321. help
  322. Add support for ocores I2C controller. For details see
  323. https://opencores.org/projects/i2c
  324. config SYS_I2C_OMAP24XX
  325. bool "TI OMAP2+ I2C driver"
  326. depends on ARCH_OMAP2PLUS || ARCH_K3
  327. help
  328. Add support for the OMAP2+ I2C driver.
  329. if SYS_I2C_OMAP24XX
  330. config SYS_OMAP24_I2C_SLAVE
  331. int "I2C Slave addr channel 0"
  332. default 1
  333. help
  334. OMAP24xx I2C Slave address channel 0
  335. config SYS_OMAP24_I2C_SPEED
  336. int "I2C Slave channel 0 speed"
  337. default 100000
  338. help
  339. OMAP24xx Slave speed channel 0
  340. endif
  341. config SYS_I2C_RCAR_I2C
  342. bool "Renesas RCar I2C driver"
  343. depends on (RCAR_GEN3 || RCAR_GEN2) && DM_I2C
  344. help
  345. Support for Renesas RCar I2C controller.
  346. config SYS_I2C_RCAR_IIC
  347. bool "Renesas RCar Gen3 IIC driver"
  348. depends on (RCAR_GEN3 || RCAR_GEN2) && DM_I2C
  349. help
  350. Support for Renesas RCar Gen3 IIC controller.
  351. config SYS_I2C_ROCKCHIP
  352. bool "Rockchip I2C driver"
  353. depends on DM_I2C
  354. help
  355. Add support for the Rockchip I2C driver. This is used with various
  356. Rockchip parts such as RK3126, RK3128, RK3036 and RK3288. All chips
  357. have several I2C ports and all are provided, controlled by the
  358. device tree.
  359. config SYS_I2C_SANDBOX
  360. bool "Sandbox I2C driver"
  361. depends on SANDBOX && DM_I2C
  362. help
  363. Enable I2C support for sandbox. This is an emulation of a real I2C
  364. bus. Devices can be attached to the bus using the device tree
  365. which specifies the driver to use. See sandbox.dts as an example.
  366. config SYS_I2C_OCTEON
  367. bool "Octeon II/III/TX/TX2 I2C driver"
  368. depends on (ARCH_OCTEON || ARCH_OCTEONTX || ARCH_OCTEONTX2) && DM_I2C
  369. default y
  370. help
  371. Add support for the Marvell Octeon I2C driver. This is used with
  372. various Octeon parts such as Octeon II/III and OcteonTX/TX2. All
  373. chips have several I2C ports and all are provided, controlled by
  374. the device tree.
  375. config SYS_I2C_S3C24X0
  376. bool "Samsung I2C driver"
  377. depends on ARCH_EXYNOS4 && DM_I2C
  378. help
  379. Support for Samsung I2C controller as Samsung SoCs.
  380. config SYS_I2C_STM32F7
  381. bool "STMicroelectronics STM32F7 I2C support"
  382. depends on (STM32F7 || STM32H7 || ARCH_STM32MP) && DM_I2C
  383. help
  384. Enable this option to add support for STM32 I2C controller
  385. introduced with STM32F7/H7 SoCs. This I2C controller supports :
  386. _ Slave and master modes
  387. _ Multimaster capability
  388. _ Standard-mode (up to 100 kHz)
  389. _ Fast-mode (up to 400 kHz)
  390. _ Fast-mode Plus (up to 1 MHz)
  391. _ 7-bit and 10-bit addressing mode
  392. _ Multiple 7-bit slave addresses (2 addresses, 1 with configurable mask)
  393. _ All 7-bit addresses acknowledge mode
  394. _ General call
  395. _ Programmable setup and hold times
  396. _ Easy to use event management
  397. _ Optional clock stretching
  398. _ Software reset
  399. config SYS_I2C_SYNQUACER
  400. bool "Socionext SynQuacer I2C controller"
  401. depends on ARCH_SYNQUACER && DM_I2C
  402. help
  403. Support for Socionext Synquacer I2C controller. This I2C controller
  404. will be used for RTC and LS-connector on DeveloperBox.
  405. config SYS_I2C_TEGRA
  406. bool "NVIDIA Tegra internal I2C controller"
  407. depends on ARCH_TEGRA
  408. help
  409. Support for NVIDIA I2C controller available in Tegra SoCs.
  410. config SYS_I2C_UNIPHIER
  411. bool "UniPhier I2C driver"
  412. depends on ARCH_UNIPHIER && DM_I2C
  413. default y
  414. help
  415. Support for UniPhier I2C controller driver. This I2C controller
  416. is used on PH1-LD4, PH1-sLD8 or older UniPhier SoCs.
  417. config SYS_I2C_UNIPHIER_F
  418. bool "UniPhier FIFO-builtin I2C driver"
  419. depends on ARCH_UNIPHIER && DM_I2C
  420. default y
  421. help
  422. Support for UniPhier FIFO-builtin I2C controller driver.
  423. This I2C controller is used on PH1-Pro4 or newer UniPhier SoCs.
  424. config SYS_I2C_VERSATILE
  425. bool "Arm Ltd Versatile I2C bus driver"
  426. depends on DM_I2C && TARGET_VEXPRESS64_JUNO
  427. help
  428. Add support for the Arm Ltd Versatile Express I2C driver. The I2C host
  429. controller is present in the development boards manufactured by Arm Ltd.
  430. config SYS_I2C_MVTWSI
  431. bool "Marvell I2C driver"
  432. depends on DM_I2C
  433. help
  434. Support for Marvell I2C controllers as used on the orion5x and
  435. kirkwood SoC families.
  436. config TEGRA186_BPMP_I2C
  437. bool "Enable Tegra186 BPMP-based I2C driver"
  438. depends on TEGRA186_BPMP
  439. help
  440. Support for Tegra I2C controllers managed by the BPMP (Boot and
  441. Power Management Processor). On Tegra186, some I2C controllers are
  442. directly controlled by the main CPU, whereas others are controlled
  443. by the BPMP, and can only be accessed by the main CPU via IPC
  444. requests to the BPMP. This driver covers the latter case.
  445. config SYS_I2C_BUS_MAX
  446. int "Max I2C busses"
  447. depends on ARCH_KEYSTONE || ARCH_OMAP2PLUS || ARCH_SOCFPGA
  448. default 2 if TI816X
  449. default 3 if OMAP34XX || AM33XX || AM43XX || ARCH_KEYSTONE
  450. default 4 if ARCH_SOCFPGA || OMAP44XX || TI814X
  451. default 5 if OMAP54XX
  452. help
  453. Define the maximum number of available I2C buses.
  454. config SYS_I2C_XILINX_XIIC
  455. bool "Xilinx AXI I2C driver"
  456. depends on DM_I2C
  457. help
  458. Support for Xilinx AXI I2C controller.
  459. config SYS_I2C_IHS
  460. bool "gdsys IHS I2C driver"
  461. depends on DM_I2C
  462. help
  463. Support for gdsys IHS I2C driver on FPGA bus.
  464. source "drivers/i2c/muxes/Kconfig"
  465. endmenu