Hi,
We have got custom board for which we have changed memory. Our memory module is 400 MHz module.
in our u-boot code at one place, we are trying to print memory frequency by using:
clock = mxc_get_clock(MXC_DDR_CLK) / 1000000U;
printf("clock: %dMHz", clock);
So, for reference board it is printing 400 MHz correctly, But for our board it is printing 528 MHz.
In LPDDR2 script file it is shown that
setmem /32 | 0x020c4018 = | 0x00060324 | //DDR clk to 400MHz |
We need to define this in someplace (0x020c4018) as 0x00060324. wher it needs to defined so that mmc_get_clock returns correct value.
Hi Srinivasa
usually this and other new ddr settings are defined in dcd header:
appropriate *.cfg file, like uboot/..mx6sabresd/mx6dl_4x_mt41j128.cfg
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------