where to define clock frequency for DDR

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

where to define clock frequency for DDR

742 Views
srinivasaporam
Contributor II

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 /320x020c4018 = 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.

Labels (1)
0 Kudos
1 Reply

330 Views
igorpadykov
NXP Employee
NXP Employee

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!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos