diff mbox series

[U-Boot,09/42] include/configs: ls1012a_common: define default i2c bus

Message ID 20191114103641.34085-9-biwen.li@nxp.com
State Changes Requested
Delegated to: Priyanka Jain
Headers show
Series [U-Boot,01/42] configs: ls1012a: enable CONFIG_DM_I2C | expand

Commit Message

Biwen Li Nov. 14, 2019, 10:36 a.m. UTC
This defines default i2c bus with
macro CONFIG_I2C_SET_DEFAULT_BUS_NUM
and CONFIG_I2C_DEFAULT_BUS_NUMBER for ls1012a

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

Comments

Priyanka Jain Nov. 15, 2019, 12:43 p.m. UTC | #1
>-----Original Message-----
>From: Biwen Li <biwen.li@nxp.com>
>Sent: Thursday, November 14, 2019 4:06 PM
>To: Jagdish Gediya <jagdish.gediya@nxp.com>; Priyanka Jain
><priyanka.jain@nxp.com>; hs@denx.de; jagan@amarulasolutions.com;
>aford173@gmail.com; Alison Wang <alison.wang@nxp.com>;
>bhaskar.upadhaya@nxp.com; feng.li_2@nxp.com; jh80.chung@samsung.com;
>Pramod Kumar <pramod.kumar_1@nxp.com>; Rajesh Bhagat
><rajesh.bhagat@nxp.com>; Ruchika Gupta <ruchika.gupta@nxp.com>;
>olteanv@gmail.com
>Cc: Xiaobo Xie <xiaobo.xie@nxp.com>; Jiafei Pan <jiafei.pan@nxp.com>; u-
>boot@lists.denx.de; Biwen Li <biwen.li@nxp.com>
>Subject: [PATCH 09/42] include/configs: ls1012a_common: define default i2c
>bus
>
>This defines default i2c bus with
>macro CONFIG_I2C_SET_DEFAULT_BUS_NUM
>and CONFIG_I2C_DEFAULT_BUS_NUMBER for ls1012a
>
>Signed-off-by: Biwen Li <biwen.li@nxp.com>
>---
> include/configs/ls1012a_common.h | 3 +++
> 1 file changed, 3 insertions(+)
>
>diff --git a/include/configs/ls1012a_common.h
>b/include/configs/ls1012a_common.h
>index c5be1d33cc..b3a12094c1 100644
>--- a/include/configs/ls1012a_common.h
>+++ b/include/configs/ls1012a_common.h
>@@ -76,6 +76,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
>
> #define CONFIG_SYS_NS16550_SERIAL
>--
>2.17.1
Please reorder patches so that dependency patches are earlier and final enablement in configs file is in later patches.

-priyankajain
diff mbox series

Patch

diff --git a/include/configs/ls1012a_common.h b/include/configs/ls1012a_common.h
index c5be1d33cc..b3a12094c1 100644
--- a/include/configs/ls1012a_common.h
+++ b/include/configs/ls1012a_common.h
@@ -76,6 +76,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
 
 #define CONFIG_SYS_NS16550_SERIAL