You could use QCVS DDRv tool provided in CodeWarrior to assist you to do DDR optimization and validation.
Please refer to the attached user guide.
Please create a QCVS DDR project with the default configurations, then modify properties panel according to your DDR datasheet. Then connect to the target board to do optimization and validation to get the final DDR controller configurations.