Kconfig 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. config DM_I2C
  2. bool "Enable Driver Model for I2C drivers"
  3. depends on DM
  4. help
  5. Enable driver model for I2C. The I2C uclass interface: probe, read,
  6. write and speed, is implemented with the bus drivers operations,
  7. which provide methods for bus setting and data transfer. Each chip
  8. device (bus child) info is kept as parent platdata. The interface
  9. is defined in include/i2c.h. When i2c bus driver supports the i2c
  10. uclass, but the device drivers not, then DM_I2C_COMPAT config can
  11. be used as compatibility layer.
  12. config DM_I2C_COMPAT
  13. bool "Enable I2C compatibility layer"
  14. depends on DM
  15. help
  16. Enable old-style I2C functions for compatibility with existing code.
  17. This option can be enabled as a temporary measure to avoid needing
  18. to convert all code for a board in a single commit. It should not
  19. be enabled for any board in an official release.
  20. config DM_I2C_GPIO
  21. bool "Enable Driver Model for software emulated I2C bus driver"
  22. depends on DM_I2C && DM_GPIO
  23. help
  24. Enable the i2c bus driver emulation by using the GPIOs. The bus GPIO
  25. configuration is given by the device tree. Kernel-style device tree
  26. bindings are supported.
  27. Binding info: doc/device-tree-bindings/i2c/i2c-gpio.txt
  28. config SYS_I2C_SANDBOX
  29. bool "Sandbox I2C driver"
  30. depends on SANDBOX && DM_I2C
  31. help
  32. Enable I2C support for sandbox. This is an emulation of a real I2C
  33. bus. Devices can be attached to the bus using the device tree
  34. which specifies the driver to use. As an example, see this device
  35. tree fragment from sandbox.dts. It shows that the I2C bus has a
  36. single EEPROM at address 0x2c (7-bit address) which is emulated by
  37. the driver for "sandbox,i2c-eeprom", which is in
  38. drivers/misc/i2c_eeprom_emul.c.
  39. i2c@0 {
  40. #address-cells = <1>;
  41. #size-cells = <0>;
  42. reg = <0>;
  43. compatible = "sandbox,i2c";
  44. clock-frequency = <400000>;
  45. eeprom@2c {
  46. reg = <0x2c>;
  47. compatible = "i2c-eeprom";
  48. emul {
  49. compatible = "sandbox,i2c-eeprom";
  50. sandbox,filename = "i2c.bin";
  51. sandbox,size = <128>;
  52. };
  53. };
  54. };
  55. config SYS_I2C_UNIPHIER
  56. bool "UniPhier I2C driver"
  57. depends on ARCH_UNIPHIER && DM_I2C
  58. default y
  59. help
  60. Support for UniPhier I2C controller driver. This I2C controller
  61. is used on PH1-LD4, PH1-sLD8 or older UniPhier SoCs.
  62. config SYS_I2C_UNIPHIER_F
  63. bool "UniPhier FIFO-builtin I2C driver"
  64. depends on ARCH_UNIPHIER && DM_I2C
  65. default y
  66. help
  67. Support for UniPhier FIFO-builtin I2C controller driver.
  68. This I2C controller is used on PH1-Pro4 or newer UniPhier SoCs.