Skip to contentSkip to conversation

Minor fixes for I2C address on MPC8572DS

PATCH New Haiying Wang 3 participants 4 messages Oct 3, 2008 – Oct 13, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 Minor fixes for I2C address on MPC8572DS

MPC8572DS has two i2c buses. This patch moves the DDR SPD_EEPROM to i2c bus 1 according to the board spec, and adds the 2nd i2c bus offset.

---
 include/configs/MPC8572DS.h |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
include/configs/MPC8572DS.h +6 -2
index d7e3a88..87b1011 100644
@@ -108,6 +108,7 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 #define CONFIG_CHIP_SELECTS_PER_CTRL	2
 
 /* I2C addresses of SPD EEPROMs */
+#define CFG_SPD_BUS_NUM		1	/* SPD EEPROMS locate on I2C bus 1 */
 #define SPD_EEPROM_ADDRESS1	0x51	/* CTLR 0 DIMM 0 */
 #define SPD_EEPROM_ADDRESS2	0x52	/* CTLR 1 DIMM 0 */
 
@@ -293,11 +294,14 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 #define CONFIG_FSL_I2C		/* Use FSL common I2C driver */
 #define CONFIG_HARD_I2C		/* I2C with hardware support */
 #undef	CONFIG_SOFT_I2C		/* I2C bit-banged */
+#define CONFIG_I2C_MULTI_BUS
+#define CONFIG_I2C_CMD_TREE
 #define CFG_I2C_SPEED		400000	/* I2C speed and slave address */
 #define CFG_I2C_EEPROM_ADDR	0x57
 #define CFG_I2C_SLAVE		0x7F
-#define CFG_I2C_NOPROBES	{0x69}	/* Don't probe these addrs */
-#define CFG_I2C_OFFSET		0x3100
+#define CFG_I2C_NOPROBES	{0,0x29} /* Don't probe these addrs */
+#define CFG_I2C_OFFSET		0x3000
+#define CFG_I2C2_OFFSET		0x3100
 
 /*
  * General PCI
Signature · 1 line
1.6.0.2
#1 lore raw

PATCH 1/3 Minor fixes for I2C address on MPC8572DS

Dear Haiying,

Quoted 4 lines · In message <[email protected]> you…

MPC8572DS has two i2c buses. This patch moves the DDR SPD_EEPROM to i2c bus 1 according to the board spec, and adds the 2nd i2c bus offset.

I see "[PATCH 1/3] Minor fixes for I2C address on MPC8572DS" and "[PATCH 3/3] Remove redundant #define for MPC8536DS".

I cannot see a "[PATCH 2/3]" - am I missing something?

Best regards,

Wolfgang Denk

Signature · 10 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Obviously, a man's judgement cannot be better than the information on
which he has based it. Give him the truth and he may still  go  wrong
when  he  has the chance to be right, but give him no news or present
him only with distorted and incomplete data, with ignorant, sloppy or
biased reporting, with propaganda and deliberate falsehoods, and  you
destroy  his  whole  reasoning processes, and make him something less
than a man.                                  - Arthur Hays Sulzberger
#2 lore raw

PATCH 1/3 Minor fixes for I2C address on MPC8572DS

Dear Wolfgang,

Quoted 6 lines · Wolfgang Denk

Dear Haiying,

Quoted 3 lines · In message <[email protected]> you…

MPC8572DS has two i2c buses. This patch moves the DDR SPD_EEPROM to i2c bus 1 according to the board spec, and adds the 2nd i2c bus offset.

Quoted 6 lines
Quoted 1 line

I see "[PATCH 1/3] Minor fixes for I2C address on MPC8572DS" and "[PATCH 3/3] Remove redundant #define for MPC8536DS".

I cannot see a "[PATCH 2/3]" - am I missing something?

The "[PATCH 2/3] Add ID EEPROM support for" MPC8572DS" was sent out between 1/3 and 3/3. I could see it from list. Anyway, I can re-send it to you.

Haiying