u-boot/arch/arm/include/asm/arch-sunxi
Siarhei Siamashka 5c18384dea sunxi: dram: Re-introduce the impedance calibration ond ODT
The DRAM controller allows to configure impedance either by using the
calibration against an external high precision 240 ohm resistor, or
by skipping the calibration and loading pre-defined data. The DRAM
controller register guide is available here:

    http://linux-sunxi.org/A10_DRAM_Controller_Register_Guide#SDR_ZQCR0

The new code supports both of the impedance configuration modes:
   - If the higher bits of the 'zq' parameter in the 'dram_para' struct
     are zero, then the lowest 8 bits are used as the ZPROG value, where
     two divisors encoded in lower and higher 4 bits. One divisor is
     used for calibrating the termination impedance, and another is used
     for the output impedance.
   - If bits 27:8 in the 'zq' parameters are non-zero, then they are
     used as the pre-defined ZDATA value instead of performing the ZQ
     calibration.

Two lowest bits in the 'odt_en' parameter enable ODT for the DQ and DQS
lines individually. Enabling ODT for both DQ and DQS means that the
'odt_en' parameter needs to be set to 3.

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>
2014-08-12 08:42:33 +02:00
..
clock.h sunxi: add sun7i clocks and timer support. 2014-05-25 16:12:12 +02:00
clock_sun4i.h sunxi: add defines to control USB Host clocks/resets 2014-07-31 15:37:22 +02:00
cpu.h sunxi: add sun7i cpu, board and start of day support 2014-05-25 16:12:40 +02:00
dram.h sunxi: dram: Re-introduce the impedance calibration ond ODT 2014-08-12 08:42:33 +02:00
gpio.h sunxi: add gpio driver 2014-07-18 19:42:25 +01:00
i2c.h sunxi: Add i2c support 2014-07-18 19:41:30 +01:00
mmc.h sunxi: mmc support 2014-05-25 16:26:43 +02:00
spl.h arm: spl: fix include guard 2014-07-05 09:28:21 +02:00
sys_proto.h sunxi: add sun7i clocks and timer support. 2014-05-25 16:12:12 +02:00
timer.h sunxi: Implement reset_cpu 2014-07-06 20:12:44 +01:00