xref: /openbmc/u-boot/drivers/i2c/Kconfig (revision 705fcf4d)
1b6036bcdSMasahiro Yamadaconfig DM_I2C
2b6036bcdSMasahiro Yamada	bool "Enable Driver Model for I2C drivers"
3b6036bcdSMasahiro Yamada	depends on DM
4b6036bcdSMasahiro Yamada	help
5*705fcf4dSPrzemyslaw Marczak	  Enable driver model for I2C. The I2C uclass interface: probe, read,
6*705fcf4dSPrzemyslaw Marczak	  write and speed, is implemented with the bus drivers operations,
7*705fcf4dSPrzemyslaw Marczak	  which provide methods for bus setting and data transfer. Each chip
8*705fcf4dSPrzemyslaw Marczak	  device (bus child) info is kept as parent platdata. The interface
9*705fcf4dSPrzemyslaw Marczak	  is defined in include/i2c.h. When i2c bus driver supports the i2c
10*705fcf4dSPrzemyslaw Marczak	  uclass, but the device drivers not, then DM_I2C_COMPAT config can
11*705fcf4dSPrzemyslaw Marczak	  be used as compatibility layer.
1226f820f3SMasahiro Yamada
134bba9d3fSSimon Glassconfig DM_I2C_COMPAT
144bba9d3fSSimon Glass	bool "Enable I2C compatibility layer"
154bba9d3fSSimon Glass	depends on DM
164bba9d3fSSimon Glass	help
174bba9d3fSSimon Glass	  Enable old-style I2C functions for compatibility with existing code.
184bba9d3fSSimon Glass	  This option can be enabled as a temporary measure to avoid needing
194bba9d3fSSimon Glass	  to convert all code for a board in a single commit. It should not
204bba9d3fSSimon Glass	  be enabled for any board in an official release.
214bba9d3fSSimon Glass
2226f820f3SMasahiro Yamadaconfig SYS_I2C_UNIPHIER
2326f820f3SMasahiro Yamada	bool "UniPhier I2C driver"
2426f820f3SMasahiro Yamada	depends on ARCH_UNIPHIER && DM_I2C
2526f820f3SMasahiro Yamada	default y
2626f820f3SMasahiro Yamada	help
2726f820f3SMasahiro Yamada	  Support for Panasonic UniPhier I2C controller driver.  This I2C
2826f820f3SMasahiro Yamada	  controller is used on PH1-LD4, PH1-sLD8 or older UniPhier SoCs.
29238bd0b8SMasahiro Yamada
30238bd0b8SMasahiro Yamadaconfig SYS_I2C_UNIPHIER_F
31238bd0b8SMasahiro Yamada	bool "UniPhier FIFO-builtin I2C driver"
32238bd0b8SMasahiro Yamada	depends on ARCH_UNIPHIER && DM_I2C
33238bd0b8SMasahiro Yamada	default y
34238bd0b8SMasahiro Yamada	help
35238bd0b8SMasahiro Yamada	  Support for Panasonic UniPhier FIFO-builtin I2C controller driver.
36238bd0b8SMasahiro Yamada	  This I2C controller is used on PH1-Pro4 or newer UniPhier SoCs.
37