Re: [U-Boot] [PATCH v4 06/11] mpc8xxx: call i2c_set_bus_num in __get_spd

2013-10-28 Thread Heiko Schocher

Hello Valentin,

Am 18.10.2013 11:47, schrieb Valentin Longchamp:

This is necessary with the new I2C subystem that was introduced lately.

Signed-off-by: Valentin Longchampvalentin.longch...@keymile.com
---
Changes in v4: None
Changes in v3: None
Changes in v2: None

  arch/powerpc/cpu/mpc8xxx/ddr/main.c | 6 +-
  1 file changed, 5 insertions(+), 1 deletion(-)


Thanks.

Acked-by: Heiko Schocher h...@denx.de

bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v4 06/11] mpc8xxx: call i2c_set_bus_num in __get_spd

2013-10-18 Thread Valentin Longchamp
This is necessary with the new I2C subystem that was introduced lately.

Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com
---
Changes in v4: None
Changes in v3: None
Changes in v2: None

 arch/powerpc/cpu/mpc8xxx/ddr/main.c | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/arch/powerpc/cpu/mpc8xxx/ddr/main.c 
b/arch/powerpc/cpu/mpc8xxx/ddr/main.c
index 842bf19..9032edf 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) {
-- 
1.8.0.1

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


Re: [U-Boot] [PATCH v4 06/11] mpc8xxx: call i2c_set_bus_num in __get_spd

2013-10-18 Thread York Sun
On 10/18/2013 02:47 AM, Valentin Longchamp wrote:
 This is necessary with the new I2C subystem that was introduced lately.
 
 Signed-off-by: Valentin Longchamp valentin.longch...@keymile.com
 ---
 Changes in v4: None
 Changes in v3: None
 Changes in v2: None
 

Applied to 85xx/next, pending merge to 85xx/master.

York




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