2 bool "I2C device support"
10 bool "Freescale i.MX I2C controller"
12 select I2C_QUIRK_REG if FSL_LSCH3 || SOC_LS102XA
15 bool "Enable Driver Model for I2C drivers"
18 Enable driver model for I2C. The I2C uclass interface: probe, read,
19 write and speed, is implemented with the bus drivers operations,
20 which provide methods for bus setting and data transfer. Each chip
21 device (bus child) info is kept as parent platdata. The interface
22 is defined in include/i2c.h. When i2c bus driver supports the i2c
23 uclass, but the device drivers not, then DM_I2C_COMPAT config can
24 be used as compatibility layer.
27 bool "Enable I2C compatibility layer"
30 Enable old-style I2C functions for compatibility with existing code.
31 This option can be enabled as a temporary measure to avoid needing
32 to convert all code for a board in a single commit. It should not
33 be enabled for any board in an official release.
36 bool "Enable Driver Model for software emulated I2C bus driver"
37 depends on DM_I2C && DM_GPIO
39 Enable the i2c bus driver emulation by using the GPIOs. The bus GPIO
40 configuration is given by the device tree. Kernel-style device tree
41 bindings are supported.
42 Binding info: doc/device-tree-bindings/i2c/i2c-gpio.txt
44 config SYS_I2C_SANDBOX
45 bool "Sandbox I2C driver"
46 depends on SANDBOX && DM_I2C
48 Enable I2C support for sandbox. This is an emulation of a real I2C
49 bus. Devices can be attached to the bus using the device tree
50 which specifies the driver to use. As an example, see this device
51 tree fragment from sandbox.dts. It shows that the I2C bus has a
52 single EEPROM at address 0x2c (7-bit address) which is emulated by
53 the driver for "sandbox,i2c-eeprom", which is in
54 drivers/misc/i2c_eeprom_emul.c.
60 compatible = "sandbox,i2c";
61 clock-frequency = <400000>;
64 compatible = "i2c-eeprom";
66 compatible = "sandbox,i2c-eeprom";
67 sandbox,filename = "i2c.bin";
74 config SYS_I2C_UNIPHIER
75 bool "UniPhier I2C driver"
76 depends on ARCH_UNIPHIER && DM_I2C
79 Support for UniPhier I2C controller driver. This I2C controller
80 is used on PH1-LD4, PH1-sLD8 or older UniPhier SoCs.
82 config SYS_I2C_UNIPHIER_F
83 bool "UniPhier FIFO-builtin I2C driver"
84 depends on ARCH_UNIPHIER && DM_I2C
87 Support for UniPhier FIFO-builtin I2C controller driver.
88 This I2C controller is used on PH1-Pro4 or newer UniPhier SoCs.
90 source "drivers/i2c/muxes/Kconfig"