dm: arm64: ls1012a: add i2c DM support
[oweals/u-boot.git] / include / configs / ls1012a_common.h
index 2579e2fb37ee4b4f99225fa0ed19712a9ead7cc8..e9baa2a8b66c663707fea25aeb267259353d6e16 100644 (file)
                                                CONFIG_SYS_SCSI_MAX_LUN)
 
 /* I2C */
+#ifndef CONFIG_DM_I2C
 #define CONFIG_SYS_I2C
+#else
+#define CONFIG_I2C_SET_DEFAULT_BUS_NUM
+#define CONFIG_I2C_DEFAULT_BUS_NUMBER 0
+#endif
 
 #define CONFIG_SYS_NS16550_SERIAL
 #define CONFIG_SYS_NS16550_REG_SIZE     1