]> git.kernelconcepts.de Git - karo-tx-uboot.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:43:51 +0000 (14:43 +0200)
commit43f92797e89ac1a06acff4a9f0c6dfb3bd3b20d4
tree89aacfff4d0d63ce3aa95fdf9fe0c04e237495a3
parente4722567cf070b61f081e47b300dc36115243bce
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