3.3.5.11.6 Step 5

  1. Start the DDR system initialization. Use the controller by setting the DDR3PHY_PIR.INIT and DDR3PHY_PIR.CTLDINIT bits.
  2. Wait for the DDR PHY initialization to complete by polling DDR3PHY_PGSR.IDONE.
  3. In case of re-initialization only:
    • Update the SFRBU DDR Power Control register (SFRBU_DDRPWR) to clear the SFRBU_DDRPWR.RETENTION bit and take the DDR I/Os out of Retention state.
    • Wait for the command to complete by polling the SFRBU_DDRPWR.RETENTION bit until it sets to 1.
    • Remove the ZQ calibration override by writing 0 to DDR3PHY_ZQ0CR0.ZDEN.
    • Trigger ZQ calibration.
    • Wait for calibration to finish.
    • Read DDR3PHY_ZQ0CR0.ZERR to check for a ZQ calibration error.
  4. For full strength (18-Ohm) DDR2, perform a custom calibration. Refer to the provided sample initialization code.