Skip to contentSkip to conversation

powerpc/t1040: fix i2c2 address on t1040qds and t104xrdb

PATCH New Shengzhou Liu 3 participants 4 messages Jul 1, 2014 – Jul 7, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/t1040: fix i2c2 address on t1040qds and t104xrdb

The base address of I2C2 is 0x118100 instead of 0x119000.

---
 include/configs/T1040QDS.h | 2 +-
 include/configs/T104xRDB.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
include/configs/T1040QDS.h +1 -1
index 2215ac8..5b75562 100644
@@ -443,7 +443,7 @@ unsigned long get_board_ddr_clk(void);
 #define CONFIG_SYS_FSL_I2C2_SPEED	50000	/* I2C speed in Hz */
 #define CONFIG_SYS_FSL_I2C2_SLAVE	0x7F
 #define CONFIG_SYS_FSL_I2C_OFFSET	0x118000
-#define CONFIG_SYS_FSL_I2C2_OFFSET	0x119000
+#define CONFIG_SYS_FSL_I2C2_OFFSET	0x118100
 
 #define I2C_MUX_PCA_ADDR		0x77
 #define I2C_MUX_PCA_ADDR_PRI		0x77 /* Primary Mux*/
include/configs/T104xRDB.h +1 -1
index e564cb7..e265786 100644
@@ -441,7 +441,7 @@
 #define CONFIG_SYS_FSL_I2C2_SPEED	400000	/* I2C speed in Hz */
 #define CONFIG_SYS_FSL_I2C2_SLAVE	0x7F
 #define CONFIG_SYS_FSL_I2C_OFFSET	0x118000
-#define CONFIG_SYS_FSL_I2C2_OFFSET	0x119000
+#define CONFIG_SYS_FSL_I2C2_OFFSET	0x118100
 
 /* I2C bus multiplexer */
 #define I2C_MUX_PCA_ADDR                0x70
Signature · 1 line
1.8.0
#1 lore raw

PATCH 1/1 powerpc/t1040: fix i2c2 address on t1040qds and t104xrdb

Hello Shengzhou,

T1040 has two dual I2C controller.
First Dual I2C Controller : 0x1180000 (first i2c bus), 0x1181000(second I2C bus) Second Dual I2C Controller : 0x1190000 (third i2c bus), 0x1191000(fourth I2C bus)

My understanding is CONFIG_SYS_FSL_I2C_OFFSET is offset for first I2C controller and CONFIG_SYS_FSL_I2C2_OFFSET is offset for second I2C controller. Have you checked for dual I2C controller, CONFIG_SYS_FSL_I2C2_OFFSET implies offset for second I2C bus, not the controller?

Regards
Priyanka

Quoted 49 lines

-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Shengzhou Liu
Sent: Tuesday, July 01, 2014 11:32 AM
To: u-boot at lists.denx.de; Sun York-R58495
Subject: [U-Boot] [PATCH] powerpc/t1040: fix i2c2 address on t1040qds and t104xrdb

The base address of I2C2 is 0x118100 instead of 0x119000.

---
 include/configs/T1040QDS.h | 2 +-
 include/configs/T104xRDB.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
include/configs/T1040QDS.h +1 -1
index 2215ac8..5b75562 100644
@@ -443,7 +443,7 @@ unsigned long get_board_ddr_clk(void);
 #define CONFIG_SYS_FSL_I2C2_SPEED	50000	/* I2C speed in Hz */
 #define CONFIG_SYS_FSL_I2C2_SLAVE	0x7F
 #define CONFIG_SYS_FSL_I2C_OFFSET	0x118000
-#define CONFIG_SYS_FSL_I2C2_OFFSET	0x119000
+#define CONFIG_SYS_FSL_I2C2_OFFSET	0x118100
 
 #define I2C_MUX_PCA_ADDR		0x77
 #define I2C_MUX_PCA_ADDR_PRI		0x77 /* Primary Mux*/
include/configs/T104xRDB.h +1 -2
index e564cb7..e265786 100644
@@ -441,7 +441,7 @@
 #define CONFIG_SYS_FSL_I2C2_SPEED	400000	/* I2C speed in Hz */
 #define CONFIG_SYS_FSL_I2C2_SLAVE	0x7F
 #define CONFIG_SYS_FSL_I2C_OFFSET	0x118000
-#define CONFIG_SYS_FSL_I2C2_OFFSET	0x119000
+#define CONFIG_SYS_FSL_I2C2_OFFSET	0x118100
 
 /* I2C bus multiplexer */
 #define I2C_MUX_PCA_ADDR                0x70
--

1.8.0

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

#2 lore raw

PATCH 1/1 powerpc/t1040: fix i2c2 address on t1040qds and t104xrdb

Shengzhou,

If u-boot uses 2nd I2C controller, it is good to have some comments. Please complete with four I2C controllers' offset.

York

Quoted 62 lines · On 07/01/2014 12:37 AM, Jain Priyanka-B32167 wrote:

Hello Shengzhou,

T1040 has two dual I2C controller.
First Dual I2C Controller : 0x1180000 (first i2c bus), 0x1181000(second I2C bus) Second Dual I2C Controller : 0x1190000 (third i2c bus), 0x1191000(fourth I2C bus)

My understanding is CONFIG_SYS_FSL_I2C_OFFSET is offset for first I2C controller and CONFIG_SYS_FSL_I2C2_OFFSET is offset for second I2C controller. Have you checked for dual I2C controller, CONFIG_SYS_FSL_I2C2_OFFSET implies offset for second I2C bus, not the controller?

Regards
Priyanka

Quoted 49 lines

-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Shengzhou Liu
Sent: Tuesday, July 01, 2014 11:32 AM
To: u-boot at lists.denx.de; Sun York-R58495
Subject: [U-Boot] [PATCH] powerpc/t1040: fix i2c2 address on t1040qds and t104xrdb

The base address of I2C2 is 0x118100 instead of 0x119000.

---
 include/configs/T1040QDS.h | 2 +-
 include/configs/T104xRDB.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
include/configs/T1040QDS.h +1 -1
index 2215ac8..5b75562 100644
@@ -443,7 +443,7 @@ unsigned long get_board_ddr_clk(void);
 #define CONFIG_SYS_FSL_I2C2_SPEED	50000	/* I2C speed in Hz */
 #define CONFIG_SYS_FSL_I2C2_SLAVE	0x7F
 #define CONFIG_SYS_FSL_I2C_OFFSET	0x118000
-#define CONFIG_SYS_FSL_I2C2_OFFSET	0x119000
+#define CONFIG_SYS_FSL_I2C2_OFFSET	0x118100
 
 #define I2C_MUX_PCA_ADDR		0x77
 #define I2C_MUX_PCA_ADDR_PRI		0x77 /* Primary Mux*/
include/configs/T104xRDB.h +1 -2
index e564cb7..e265786 100644
@@ -441,7 +441,7 @@
 #define CONFIG_SYS_FSL_I2C2_SPEED	400000	/* I2C speed in Hz */
 #define CONFIG_SYS_FSL_I2C2_SLAVE	0x7F
 #define CONFIG_SYS_FSL_I2C_OFFSET	0x118000
-#define CONFIG_SYS_FSL_I2C2_OFFSET	0x119000
+#define CONFIG_SYS_FSL_I2C2_OFFSET	0x118100
 
 /* I2C bus multiplexer */
 #define I2C_MUX_PCA_ADDR                0x70
--

1.8.0

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

#3 lore raw

PATCH 1/1 powerpc/t1040: fix i2c2 address on t1040qds and t104xrdb

Four I2C controllers' offset are:

#define CONFIG_SYS_FSL_I2C_OFFSET 0x118000
#define CONFIG_SYS_FSL_I2C2_OFFSET 0x118100
#define CONFIG_SYS_FSL_I2C3_OFFSET 0x119000
#define CONFIG_SYS_FSL_I2C4_OFFSET 0x119100

I will add I2C3 and I2C4.

Thanks,
Shengzhou

Quoted 24 lines

-----Original Message-----
From: Sun York-R58495
Sent: Wednesday, July 02, 2014 7:46 AM
To: Jain Priyanka-B32167; Liu Shengzhou-B36685; u-boot at lists.denx.de
Subject: Re: [U-Boot] [PATCH] powerpc/t1040: fix i2c2 address on t1040qds and t104xrdb

Shengzhou,

If u-boot uses 2nd I2C controller, it is good to have some comments. Please complete with four I2C controllers' offset.

York

Quoted 8 lines · On 07/01/2014 12:37 AM, Jain Priyanka-B32167 wrote:

Hello Shengzhou,

T1040 has two dual I2C controller.
First Dual I2C Controller : 0x1180000 (first i2c bus), 0x1181000(second I2C bus) Second Dual I2C Controller : 0x1190000 (third i2c bus), 0x1191000(fourth I2C bus)

Quoted 5 lines
Quoted 1 line

My understanding is CONFIG_SYS_FSL_I2C_OFFSET is offset for first I2C

controller and CONFIG_SYS_FSL_I2C2_OFFSET is offset for second I2C controller.

Quoted 1 line

Have you checked for dual I2C controller, CONFIG_SYS_FSL_I2C2_OFFSET

implies offset for second I2C bus, not the controller?

[Shengzhou] yes, I tested it with T1040.

Quoted 55 lines
Quoted 32 lines

Regards
Priyanka

Quoted 28 lines

-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de]
On Behalf Of Shengzhou Liu
Sent: Tuesday, July 01, 2014 11:32 AM
To: u-boot at lists.denx.de; Sun York-R58495
Subject: [U-Boot] [PATCH] powerpc/t1040: fix i2c2 address on t1040qds and t104xrdb

The base address of I2C2 is 0x118100 instead of 0x119000.

---
 include/configs/T1040QDS.h | 2 +-
 include/configs/T104xRDB.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
include/configs/T1040QDS.h +1 -1
index 2215ac8..5b75562 100644
@@ -443,7 +443,7 @@ unsigned long get_board_ddr_clk(void);
 #define CONFIG_SYS_FSL_I2C2_SPEED	50000	/* I2C speed in Hz */
 #define CONFIG_SYS_FSL_I2C2_SLAVE	0x7F
 #define CONFIG_SYS_FSL_I2C_OFFSET	0x118000
-#define CONFIG_SYS_FSL_I2C2_OFFSET	0x119000
+#define CONFIG_SYS_FSL_I2C2_OFFSET	0x118100
 
Quoted 8 lines

include/configs/T104xRDB.h line 441

Quoted 8 lines
include/configs/T1040QDS.h +0 -0
 #define I2C_MUX_PCA_ADDR		0x77
 #define I2C_MUX_PCA_ADDR_PRI		0x77 /* Primary Mux*/
include/configs/T104xRDB.h +0 -0
index e564cb7..e265786 100644
@@ -441,7 +441,7 @@
 #define CONFIG_SYS_FSL_I2C2_SPEED	400000	/* I2C speed in Hz

*/

Quoted 14 lines
Quoted 14 lines
include/configs/T104xRDB.h +1 -2
 #define CONFIG_SYS_FSL_I2C2_SLAVE	0x7F
 #define CONFIG_SYS_FSL_I2C_OFFSET	0x118000
-#define CONFIG_SYS_FSL_I2C2_OFFSET	0x119000
+#define CONFIG_SYS_FSL_I2C2_OFFSET	0x118100
 
 /* I2C bus multiplexer */
 #define I2C_MUX_PCA_ADDR                0x70
--

1.8.0

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot