[U-Boot-Users] MPC8343 I2C problem

Monstr at seznam.cz Monstr at seznam.cz
Mon Apr 23 08:46:39 CEST 2007


HI,
I am trying to port U-BOOT to board with MPC8343 and I have problem with reading data from I2C. Iprobe command  detects EEPROM memory  but after imd 50 0 20 a read only 0xff values. In EEPROM memory is stored configuration words. And configuration word is strored properly because after unplug BDI board starts fine and we can reading memory via OS. I tryied to change SPEED too.

Best regards
Michal Simek

#define  CONFIG_HARD_I2C		/* I2C with hardware support*/
#ifdef CONFIG_HARD_I2C
#undef	CONFIG_SOFT_I2C			/* I2C bit-banged */
#define CONFIG_FSL_I2C
#define CONFIG_I2C_MULTI_BUS
#define CONFIG_I2C_CMD_TREE
//#define CFG_I2C_SPEED		400000		/* I2C speed and slave address - 400kHz */
#define CFG_I2C_SPEED		100000		/* I2C speed and slave address - 100kHz */
#define CFG_I2C_SLAVE		0x7F
#define CFG_I2C_OFFSET		0x3000		/* prvni I2C interface - posun od IMMR */
#define CFG_I2C2_OFFSET		0x3100		/* druhy I2C interface - posun od IMMR */
#define CFG_I2C_EEPROM_ADDR		0x50	/* I2C0, Board EEPROM */
#define CFG_I2C_EEPROM_ADDR_LEN 	2
#endif



U-Boot 1.2.0 (Apr 23 2007 - 08:31:58) MPC83XX

Clock configuration:
  Coherent System Bus:  264 MHz
  Core:                 396 MHz
  Local Bus Controller: 264 MHz
  Local Bus:             66 MHz
  DDR:                  264 MHz
  SEC:                   88 MHz
  I2C1:                  88 MHz
  I2C2:                 264 MHz
  TSEC1:                 88 MHz
  TSEC2:                 88 MHz
  USB MPH:               88 MHz
  USB DR:                88 MHz
CPU: MPC8343E, Rev: 11 at 396 MHz


=> iprobe
Valid chip addresses: 50
=> imd 50 0 20
0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
0010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
=> imd 50.0 0 20
0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
0010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
=> imd 50.1 0 20
0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
0010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
=> imd 50.2 0 20
0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
0010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
=>




More information about the U-Boot mailing list