]> code.ossystems Code Review - bsp/u-boot.git/commit
arm: mx6: Clamp MMDC and DDR3 clocks for timing calculations
authorNikolay Dimitrov <picmaster@mail.bg>
Wed, 22 Apr 2015 15:37:31 +0000 (18:37 +0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 29 Apr 2015 20:58:09 +0000 (17:58 -0300)
commitf1b4690d09d1b061dd9f9ebd404360130f97ce72
treeb3c3719b6671243f0f901ff62bc3daaa0414ba37
parent8afedb279c675ca3b21ecd4376790eeb2a45d74d
arm: mx6: Clamp MMDC and DDR3 clocks for timing calculations

This is proposal for clamping the MMDC/DDR3 clocks to the maximum supported
frequencies as per imx6 SOC models, and for dynamically calculating valid
clock value based on mem_speed.

Currently the code uses impossible values for mem_speed (1333, 1600 MT/s) for
calculating the DDR timings, and uses fixed clock (528 or 400 MHz) which
doesn't take into account DDR3 memory limitations.

Signed-off-by: Nikolay Dimitrov <picmaster@mail.bg>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Tim Harvey <tharvey@gateworks.com>
Cc: Eric Nelson <eric.nelson@boundarydevices.com>
arch/arm/cpu/armv7/mx6/ddr.c