]> git.sur5r.net Git - u-boot/commit
sunxi: dram: Derive write recovery delay from DRAM clock speed
authorSiarhei Siamashka <siarhei.siamashka@gmail.com>
Sun, 3 Aug 2014 02:32:53 +0000 (05:32 +0300)
committerHans de Goede <hdegoede@redhat.com>
Tue, 12 Aug 2014 06:42:33 +0000 (08:42 +0200)
commit935758b1d5e58ebd24d8570487455ba286ba4656
treebad5641247a95850bc592633bd393d1f690b7c98
parentb5c71f5f9c1634d72f40b2c17aeff53ef8fdf8e0
sunxi: dram: Derive write recovery delay from DRAM clock speed

The write recovery time is 15ns for all JEDEC DDR3 speed bins. And
instead of hardcoding it to 10 cycles, it is possible to set tighter
timings based on accurate calculations. For example, DRAM clock
frequencies up to 533MHz need only 8 cycles for write recovery.

Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
arch/arm/cpu/armv7/sunxi/dram.c