AnsweredAssumed Answered

where to define clock frequency for DDR

Question asked by srinivasaporam on Nov 13, 2015
Latest reply on Nov 15, 2015 by igorpadykov

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.

Outcomes