Order of DDR calibration function call

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

Order of DDR calibration function call

844 Views
niklasmolin
Senior Contributor I

In mx6sabresd.c function board_init_f, would it be okay to move function call spl_dram_init to be done after 

board_early_init_f?

Since after that function I2C is setup and I get info about the board version to know which DCD table (for DDR calibration) that should be used?

I noticed if I do another spl_dram_init (if I keep the first one) to be called after board_early_init_f, the CPU will not boot up.

Thanks,

Niklas

Labels (2)
0 Kudos
3 Replies

697 Views
niklasmolin
Senior Contributor I

Hi Igor.

Thanks for your response.

The question I have is if there could be an issue if I do the DDR calibration after the peripheral clocks etc. are enabled?

Regards,

Niklas

0 Kudos

697 Views
igorpadykov
NXP Employee
NXP Employee

Hi Niklas

 

yes there may be potential issues as enabling peripheral clocks 

may affect mmdc parent frequency and introduce additional noise
on board.
 

Regards,

Niklas

0 Kudos

697 Views
igorpadykov
NXP Employee
NXP Employee

Hi Niklas

usually ddr initialization is performed as first step, then other peripherals

are initialized. More proper way to post it on uboot mail list as nxp does not use

spl in its i.MX6 uboot releases.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos