]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/configs/nhk8815.h
i2c, soft-i2c: switch to new multibus/multiadapter support
[karo-tx-uboot.git] / include / configs / nhk8815.h
index d438efdae68bf4785507a20016be41f09f23afe6..09073e9489bc78fcd07501d3e23c531834ca4402 100644 (file)
 #ifndef __ASSEMBLY__
 #include <asm/arch/gpio.h>
 #define CONFIG_CMD_I2C
-#define CONFIG_SOFT_I2C
-#define CONFIG_SYS_I2C_SPEED   400000
+#define CONFIG_SYS_I2C
+#define        CONFIG_SYS_I2C_SOFT     1       /* I2C bit-banged       */
+#define I2C_SOFT_DEFS
+#define CONFIG_SYS_I2C_SOFT_SPEED      400000
+#define CONFIG_SYS_I2C_SOFT_SLAVE      0x7F
 #define __SDA                  63
 #define __SCL                  62
 #define I2C_SDA(x)             nmk_gpio_set(__SDA, x)