How to Configure DDR clock in Boundary Devices U-Boot 2016.03 ?

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

How to Configure DDR clock in Boundary Devices U-Boot 2016.03 ?

738 Views
peteramond
Contributor V

gary_bisson

Dear All,

I'm using following files in boundary devices u-boot 2016 to configure memory parameters and registers.

Can we find any place in uboot to configure DDR clock frequency directly (396MHz or 528MHz)?

800mhz_4x256mx16.cfg
ddr-setup.cfg
clocks.cfg
nitrogen6_max2g.cfg

 

According to my understanding we don't have any place to include DDR clock directly in Boundary Devices Uboot. But we are updating following registers in uboot while running DDR PHY calibration in 396MHz frequency (We have to set it in NXP tool ddr calibration tool and script.inc).
 
MDPDC
MDCFG0
MDCFG1
MDCFG2
MDOR
MPZQHWCTRL
.....etc
 
Above registers bits are included following parameters. 
 
tCL
tXS
tCKSRE
tCKS
tXPR
tRTP
tDLLK
tMRD
tMOD
 
While update register values in configuration files those values also update automatically. Am I correct ? 
Do we have specific register for DDR frequency or all the register bits will set to certain values while we are doing calibrations in specific DDR frequency ?
Regards,
Peter.
Labels (2)
1 Reply

475 Views
gary_bisson
Senior Contributor III

Hi,

I suggest you have a look at this commit which reduced the RAM to 500MHz for one of our boards:

cnt2g: change ddr to 500.21 MHz · boundarydevices/u-boot-imx6@6612466 · GitHub 

Regards,

Gary