We have been looking at the code base for the EVM and comparing it with the latest datasheet and the Setting up AM35x SDRC Registers wiki and have found some discrepancies. Could someone outline the correct procedure for initialising DDR2 or confirm my procedure below - the wiki does not give the full procedure as a step by step guide, just a generic what has to be set.
I belive that the following procedure should work:
1. Set up all the registers and leave reg_initref_dis bit set to 1.
2. Reset the DDR PHY, wait for the REG_RESET_PHY to clear and run the VTP and wait for VTP_READY to be set
3. Set reg_initref_dis to 0.
I'm guessing that if you set up some of the registers after running the DDR PHY setup and VTP that it won't matter. I'm also assuming from the way the TRM is worded that reg_initref_dis is the bit that actually kicks off the DDR2 initialisation sequence. If this is the case then it follows that all the registers setting that affect the LMRs during initialisation have to be set up prior to reg_initref_dis being cleared.
Can someone please comment on my interpretation of the sequence.