mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-18 10:48:51 +00:00
170817a497
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>
20 lines
358 B
C
20 lines
358 B
C
/*
|
|
* (C) Copyright 2015 Hans de Goede <hdegoede@redhat.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef _SUNXI_CPU_H
|
|
#define _SUNXI_CPU_H
|
|
|
|
#if defined(CONFIG_MACH_SUN9I)
|
|
#include <asm/arch/cpu_sun9i.h>
|
|
#else
|
|
#include <asm/arch/cpu_sun4i.h>
|
|
#endif
|
|
|
|
#define SOCID_A64 0x1689
|
|
#define SOCID_H3 0x1680
|
|
#define SOCID_H5 0x1718
|
|
|
|
#endif /* _SUNXI_CPU_H */
|