mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-19 19:28:36 +00:00
1bc464be1f
The A64 DRAM controller is very similar to the H3 one, so the code can be reused with some small changes. This refactoring does not change the code size for the existing H3 part. [Andre: rework from #ifdefs to using socid parameters in static functions, minor fixes, merging in fixes from Jens] Signed-off-by: Jens Kuske <jenskuske@gmail.com> Signed-off-by: Andre Przywara <andre.przywara@arm.com> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Reviewed-by: Jagan Teki <jagan@openedev.com>
19 lines
334 B
C
19 lines
334 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
|
|
|
|
#endif /* _SUNXI_CPU_H */
|