Hi,
I am currently working on a custom board using the 66AK2H14 processor. I currently flash my u-boot on the NOR flash of the board. I managed to see U-boot starting using UART.
However, It always stop get stuck at this point on my console:
Cannot read DIMM params
Sorry, I don't know how to configure DDR3A.
Bye :(
I saw that it comes from ddr3_read_spd function in arch/arm/mach-keystone/ddr3_spd.c. The code that can be found inside is the following:
i2c_init(CONFIG_SYS_DAVINCI_I2C_SPEED, CONFIG_SYS_DAVINCI_I2C_SLAVE);
old_bus = i2c_get_bus_num();
i2c_set_bus_num(1);
ret = i2c_read(0x53, 0, 1, (unsigned char *)spd_params, 256);
i2c_set_bus_num(old_bus);
if (ret) {
printf("Cannot read DIMM params\n");
return 1;
}
I can see that i2c_read function of course returns 1. Why the I can't read the params by I2C?
Do you have any advice or idea about this?
I did the change in board/ti/ks2_evm/ddr3_cfg.c to follow the DDR3 used on our board with our custom ddr configuration. The configuration of ddr3a phy and ddr3a emif was tested by emulation with a custom gel file including our changes. It was tested by emulation on DSP and the accesses to DDR3A were validated with success.
Thank you for your help.
Best Regards.
K.Luong