u-boot/arch
Icenowy Zheng da2616543a sunxi: add DRAM support to H6
The Allwinner H6 SoC comes with a set of new DRAM controller+PHY combo.
Both the controller and the PHY seem to be originate from DesignWare,
and are similar to the ones in ZynqMP SoCs.

This commit introduces an initial DRAM driver for H6, which contains
only LPDDR3 support. The currently known SBCs with H6 all come with
LPDDR3 memory, including Pine H64 and several Orange Pi's.

The BSP DRAM initialization code is closed source and violates GPL. Code
in this commit is written by experimenting, referring the code/document
of other users of the IPs (mainly the ZynqMP, as it's the only found PHY
reference) and disassebling the BSP blob.

Thanks for Jernej Skrabec for review and fix some issues in this driver
(including the most critical one which made it to work), and rewrite
some code from register dump!

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Acked-by: Jagan Teki <jagan@openedev.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com>
2018-07-31 11:38:13 +05:30
..
arc Kconfig: Sort bool, default, select and imply options 2018-07-30 07:18:48 -04:00
arm sunxi: add DRAM support to H6 2018-07-31 11:38:13 +05:30
m68k m68k: m5253evbe: Remove this board 2018-07-23 14:33:21 -04:00
microblaze dm: Change CMD_DM enabling 2018-07-30 07:18:48 -04:00
mips Kconfig: Sort bool, default, select and imply options 2018-07-30 07:18:48 -04:00
nds32 nds32: Define PLATFORM__CLEAR_BIT for generic_clear_bit() 2018-05-15 21:44:05 -04:00
nios2 .gitignore: move *.dtb and *.dtb.S patterns to the top-level .gitignore 2018-06-18 14:43:12 -04:00
powerpc Kconfig: Sort bool, default, select and imply options 2018-07-30 07:18:48 -04:00
riscv efi_loader: Rename sections to allow for implicit data 2018-07-25 14:57:44 +02:00
sandbox Patch queue for efi - 2018-07-25 2018-07-30 16:02:29 -04:00
sh SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
x86 x86: Add efi_loader bits to x86_64 linker script 2018-07-25 14:57:44 +02:00
xtensa SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00
Kconfig dm: Change CMD_DM enabling 2018-07-30 07:18:48 -04:00