]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - drivers/i2c/Kconfig
karo: tx6ul: enable soft i2c driver and 'i2c' command
[karo-tx-uboot.git] / drivers / i2c / Kconfig
index 4c8ea477a825c5e6a3f35dc0246dc43ff53dad6b..f0dc19ac088e609c1fb782b6b773fbc954ce8ce9 100644 (file)
@@ -1,15 +1,18 @@
-menuconfig SYS_I2C
-       bool "I2C device support"
+#
+# I2C subsystem configuration
+#
 
-if SYS_I2C
+menu "I2C device support"
 
 config HARD_I2C
        bool
 
-config SYS_I2C_MXC
-       bool "Freescale i.MX I2C controller"
-       select HARD_I2C
-       select I2C_QUIRK_REG if FSL_LSCH3 || SOC_LS102XA
+config SYS_I2C
+       bool
+
+config SYS_I2C_SOFT
+       bool "Software emulated I2C bus driver"
+       depends on SYS_I2C
 
 config DM_I2C
        bool "Enable Driver Model for I2C drivers"
@@ -65,6 +68,14 @@ config DM_I2C_GPIO
          bindings are supported.
          Binding info: doc/device-tree-bindings/i2c/i2c-gpio.txt
 
+config SYS_I2C_MXC
+       bool "Freescale i.MX I2C controller"
+       select HARD_I2C
+       select I2C_QUIRK_REG if FSL_LSCH3 || SOC_LS102XA
+
+config I2C_QUIRK_REG
+       bool
+
 config SYS_I2C_SANDBOX
        bool "Sandbox I2C driver"
        depends on SANDBOX && DM_I2C
@@ -113,4 +124,4 @@ config SYS_I2C_UNIPHIER_F
 
 source "drivers/i2c/muxes/Kconfig"
 
-endif
+endmenu