]> git.baikalelectronics.ru Git - uboot.git/commit
sunxi: DRAM: add Allwinner H5 support
authorAndre Przywara <andre.przywara@arm.com>
Thu, 16 Feb 2017 01:20:26 +0000 (01:20 +0000)
committerJagan Teki <jagan@amarulasolutions.com>
Wed, 5 Apr 2017 09:33:17 +0000 (15:03 +0530)
commit5ef404c5f8b69ecc8329a5cdfbeea6a556b69e87
treebddbd4031267fb6999a6c33c49d141395f3d8038
parent2358c5dfefedbbe7873233f507b8b910503e0f4a
sunxi: DRAM: add Allwinner H5 support

The DRAM controller in the Allwinner H5 SoC is again very similar to
the one in the H3 and A64.
Based on the existing socid parameter, add support for this controller
by reusing the bulk of the code and only deviating where needed.
These new bits set or cleared here and there have been mostly found by
looking at DRAM register dumps after using the H5 boot0 and comparing
them to what we set in the code. So for now it's mostly unclear what
those bits actually mean - hence the missing names and comments.
Also add the delay line parameters taken from the boot0 and libdram
disassembly.
Register setup differences between H5 and H3 are courtesy of Jens Kuske.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/include/asm/arch-sunxi/cpu.h
arch/arm/mach-sunxi/dram_sun8i_h3.c