[U-Boot] [PATCH 23/42] include/configs: ls1046a_common.h: define default i2c bus

Biwen Li biwen.li at nxp.com
Thu Nov 14 10:36:22 UTC 2019


This defines default i2c bus with macro
CONFIG_I2C_SET_DEFAULT_BUS_NUM and
CONFIG_I2C_DEFAULT_BUS_NUMBER for SoC LS1046A

Signed-off-by: Biwen Li <biwen.li at nxp.com>
---
 include/configs/ls1046a_common.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/configs/ls1046a_common.h b/include/configs/ls1046a_common.h
index ebf3682413..648e3c8027 100644
--- a/include/configs/ls1046a_common.h
+++ b/include/configs/ls1046a_common.h
@@ -130,6 +130,9 @@
 /* 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
 
 /* PCIe */
-- 
2.17.1



More information about the U-Boot mailing list