From af1a266670d040d2f4083ff309d732d648afba2a Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Tue, 10 Oct 2023 14:33:42 +0000 Subject: Add submodule dependency files Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec --- roms/u-boot/arch/arm/include/asm/arch-sunxi/dram.h | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 roms/u-boot/arch/arm/include/asm/arch-sunxi/dram.h (limited to 'roms/u-boot/arch/arm/include/asm/arch-sunxi/dram.h') diff --git a/roms/u-boot/arch/arm/include/asm/arch-sunxi/dram.h b/roms/u-boot/arch/arm/include/asm/arch-sunxi/dram.h new file mode 100644 index 000000000..c3b3e1f51 --- /dev/null +++ b/roms/u-boot/arch/arm/include/asm/arch-sunxi/dram.h @@ -0,0 +1,42 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * (C) Copyright 2007-2012 + * Allwinner Technology Co., Ltd. + * Berg Xing + * Tom Cubie + * + * Sunxi platform dram register definition. + */ + +#ifndef _SUNXI_DRAM_H +#define _SUNXI_DRAM_H + +#include +#include + +/* dram regs definition */ +#if defined(CONFIG_MACH_SUN6I) +#include +#elif defined(CONFIG_MACH_SUN8I_A23) +#include +#elif defined(CONFIG_MACH_SUN8I_A33) +#include +#elif defined(CONFIG_MACH_SUN8I_A83T) +#include +#elif defined(CONFIG_SUNXI_DRAM_DW) +#include +#elif defined(CONFIG_MACH_SUN9I) +#include +#elif defined(CONFIG_MACH_SUN50I_H6) +#include +#elif defined(CONFIG_MACH_SUN50I_H616) +#include +#else +#include +#endif + +unsigned long sunxi_dram_init(void); +void mctl_await_completion(u32 *reg, u32 mask, u32 val); +bool mctl_mem_matches(u32 offset); + +#endif /* _SUNXI_DRAM_H */ -- cgit 1.2.3-korg