summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorBiwen Li <biwen.li@nxp.com>2019-12-31 15:33:41 +0800
committerPriyanka Jain <priyanka.jain@nxp.com>2020-02-04 16:20:25 +0530
commita0affb367ad638e1e6f51ed3678d3daad5724a40 (patch)
treea87af25eca96e994c219b4264588fd4641d48c0d /include/configs
parent6089d8ab31daa04ca693ba2b9c2bfca1e53cfc65 (diff)
dm: arm64: ls1012a: add i2c DM support
This supports i2c DM and enables CONFIG_DM_I2C for SoC LS1012A Signed-off-by: Biwen Li <biwen.li@nxp.com> Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/ls1012a_common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/configs/ls1012a_common.h b/include/configs/ls1012a_common.h
index 2579e2fb37..e9baa2a8b6 100644
--- a/include/configs/ls1012a_common.h
+++ b/include/configs/ls1012a_common.h
@@ -66,7 +66,12 @@
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