]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/configs/bf533-ezkit.h
i2c, soft-i2c: switch to new multibus/multiadapter support
[karo-tx-uboot.git] / include / configs / bf533-ezkit.h
index c1a5ecda7ed5ece2c59b1e35f0d45bace1841526..beab1271a493880870da7d6760c3555665f83d15 100644 (file)
 /*
  * I2C Settings
  */
-#define CONFIG_SOFT_I2C
+#define CONFIG_SYS_I2C_SOFT
+#ifdef CONFIG_SYS_I2C_SOFT
+#define CONFIG_SYS_I2C
 #define CONFIG_SOFT_I2C_GPIO_SCL GPIO_PF0
 #define CONFIG_SOFT_I2C_GPIO_SDA GPIO_PF1
-
+#define CONFIG_SYS_I2C_SOFT_SPEED      50000
+#define CONFIG_SYS_I2C_SOFT_SLAVE      0
+#define I2C_DELAY              udelay(5)       /* 1/4 I2C clock duration */
+#endif
 
 /*
  * Misc Settings