提交 0778bbe2 编写于 作者: V Valentin Longchamp 提交者: York Sun

mpc8xxx: call i2c_set_bus_num in __get_spd

This is necessary with the new I2C subystem that was introduced lately.
Signed-off-by: NValentin Longchamp <valentin.longchamp@keymile.com>
上级 99f6249a
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册