diff options
author | Valentin Longchamp <valentin.longchamp@keymile.com> | 2013-10-18 11:47:19 +0200 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2013-10-24 09:35:46 -0700 |
commit | 0778bbe2d42dade68350d14a6314cfff1f4ba939 (patch) | |
tree | ba87ee068fc2cd8c2ca9cc0cf9ec559b6c6d1be8 /arch/powerpc/cpu | |
parent | 99f6249a0e7b36e4f9c1aa7b77a0814d883d96b2 (diff) | |
download | u-boot-midas-0778bbe2d42dade68350d14a6314cfff1f4ba939.tar.gz u-boot-midas-0778bbe2d42dade68350d14a6314cfff1f4ba939.tar.bz2 u-boot-midas-0778bbe2d42dade68350d14a6314cfff1f4ba939.zip |
mpc8xxx: call i2c_set_bus_num in __get_spd
This is necessary with the new I2C subystem that was introduced lately.
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Diffstat (limited to 'arch/powerpc/cpu')
-rw-r--r-- | arch/powerpc/cpu/mpc8xxx/ddr/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/powerpc/cpu/mpc8xxx/ddr/main.c b/arch/powerpc/cpu/mpc8xxx/ddr/main.c index b9ae9509be..34d8bc3ac0 100644 --- a/arch/powerpc/cpu/mpc8xxx/ddr/main.c +++ b/arch/powerpc/cpu/mpc8xxx/ddr/main.c @@ -69,7 +69,11 @@ u8 spd_i2c_addr[CONFIG_NUM_DDR_CONTROLLERS][CONFIG_DIMM_SLOTS_PER_CTLR] = { static void __get_spd(generic_spd_eeprom_t *spd, u8 i2c_address) { - int ret = i2c_read(i2c_address, 0, 1, (uchar *)spd, + int ret; + + i2c_set_bus_num(CONFIG_SYS_SPD_BUS_NUM); + + ret = i2c_read(i2c_address, 0, 1, (uchar *)spd, sizeof(generic_spd_eeprom_t)); if (ret) { |