u-boot/arch
Philipp Tomsich 403e9cbcd5 rockchip: rk3368: add DRAM controller driver with DRAM initialisation
This adds a DRAM controller driver for the RK3368 and places it in
drivers/ram/rockchip (where the other DM-enabled DRAM controller
drivers for rockchip devices should also be moved eventually).

At this stage, only the following feature-set is supported:
 - DDR3
 - 32-bit configuration (i.e. fully populated)
 - dual-rank (i.e. no auto-detection of ranks)
 - DDR3-1600K speed-bin

This driver expects to run from a TPL stage that will later return to
the RK3368 BROM.  It communicates with later stages through the
os_reg2 in the pmugrf (i.e. using the same mechanism as Rockchip's DDR
init code).

Unlike other DMC drivers for RK32xx and RK33xx parts, the required
timings are calculated within the driver based on a target frequency
and a DDR3 speed-bin (only the DDR3-1600K speed-bin is support at this
time).

The RK3368 also has the DDRC0_CON0 (DDR ch. 0, control-register 0)
register for controlling the operation of its (single-channel) DRAM
controller in the GRF block.  This provides for selecting DDR3, mobile
DDR modes, and control low-power operation.
As part of this change, DDRC0_CON0 is also added to the GRF structure
definition (at offset 0x600).

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-08-13 17:12:33 +02:00
..
arc arc: Add support for HS Development Kit board 2017-06-29 19:34:10 +03:00
arm rockchip: rk3368: add DRAM controller driver with DRAM initialisation 2017-08-13 17:12:33 +02:00
m68k Convert CONFIG_ENV_IS_IN_FLASH to Kconfig 2017-07-25 21:20:02 -04:00
microblaze microblaze: spl: configure SYS_MALLOC_F_LEN independently for SPL and full U-Boot 2017-07-27 14:59:03 +02:00
mips mips: spl: configure SYS_MALLOC_F_LEN independently for SPL and full U-Boot 2017-07-27 14:59:03 +02:00
nds32 nds32: Remove include files from common.h 2017-06-05 11:02:36 -04:00
nios2 fdt: Move fdt_fixup_ethernet to a common place 2017-05-01 09:11:59 -04:00
powerpc Convert CONFIG_CMD_REGINFO to Kconfig 2017-08-11 15:41:53 -04:00
sandbox sandbox: remove os_putc() and os_puts() 2017-07-28 12:02:47 -06:00
sh Convert CONFIG_CMD_SH_ZIMAGEBOOT to Kconfig 2017-08-11 15:41:57 -04:00
x86 x86: acpi: Fix build error with certain configuration 2017-08-08 21:13:05 +08:00
xtensa board_f: Rename initdram() to dram_init() 2017-04-13 09:40:57 -04:00
.gitignore
Kconfig Convert CONFIG_CMD_ZBOOT to Kconfig 2017-08-11 17:44:53 -04:00