sunxi: dram: Optionally use standard JEDEC timings for sun[457]i
authorSiarhei Siamashka <siarhei.siamashka@gmail.com>
Sat, 31 Jan 2015 22:27:05 +0000 (00:27 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 2 Feb 2015 13:04:15 +0000 (14:04 +0100)
commitd133647af4d4fdaaf2dfb6a9e757c7aebd00a29e
tree34cd14a0422fd91a3068edaf24bfceba3300618d
parentfb75d972eaf5c887ada28e73d3e84d52931d4cb0
sunxi: dram: Optionally use standard JEDEC timings for sun[457]i

In addition to the current Android magic settings, allow to optionally use
DDR3 timing parameters, which are tailored for different clock frequencies
and JEDEC speed bins. This should improve reliability and performance.

Adding '+S:CONFIG_DRAM_TIMINGS_DDR3_1066F_1333H=y' to the board defconfig
allows to use timings, which are calculated for the DDR3-1066F speed bin.
A lot of DDR3 chips, which are used in real Allwinner based devices,
support DDR3-1066F speed bin timings.

And adding '+S:CONFIG_DRAM_TIMINGS_DDR3_800E_1066G_1333J=y' should work
with any DDR3 chips, because this targets the slowest JEDEC speed bins.

The vendor magic values are still used by default for DRAM, but board
maintainers now have more flexibility in DRAM timings selection.

Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
board/sunxi/Kconfig
board/sunxi/dram_sun4i_auto.c
board/sunxi/dram_sun5i_auto.c
board/sunxi/dram_timings_sun4i.h [new file with mode: 0644]