]>
Commit | Line | Data |
---|---|---|
286c3c3a IC |
1 | /* |
2 | * (C) Copyright 2007-2012 | |
3 | * Allwinner Technology Co., Ltd. <www.allwinnertech.com> | |
4 | * Berg Xing <bergxing@allwinnertech.com> | |
5 | * Tom Cubie <tangliang@allwinnertech.com> | |
6 | * | |
7 | * Sunxi platform dram register definition. | |
8 | * | |
9 | * SPDX-License-Identifier: GPL-2.0+ | |
10 | */ | |
11 | ||
12 | #ifndef _SUNXI_DRAM_H | |
13 | #define _SUNXI_DRAM_H | |
14 | ||
07f4fe7d | 15 | #include <asm/io.h> |
286c3c3a IC |
16 | #include <linux/types.h> |
17 | ||
bec72c79 | 18 | /* dram regs definition */ |
9a07eb0b HG |
19 | #if defined(CONFIG_MACH_SUN6I) |
20 | #include <asm/arch/dram_sun6i.h> | |
5e6bacdb HG |
21 | #elif defined(CONFIG_MACH_SUN8I_A23) |
22 | #include <asm/arch/dram_sun8i_a23.h> | |
ffc0ae0c VP |
23 | #elif defined(CONFIG_MACH_SUN8I_A33) |
24 | #include <asm/arch/dram_sun8i_a33.h> | |
81f50d93 | 25 | #elif defined(CONFIG_MACH_SUN8I_A83T) |
26 | #include <asm/arch/dram_sun8i_a83t.h> | |
1bc464be | 27 | #elif defined(CONFIG_MACH_SUN8I_H3) || defined(CONFIG_MACH_SUN50I) |
0404d53f | 28 | #include <asm/arch/dram_sun8i_h3.h> |
297bb9e0 PT |
29 | #elif defined(CONFIG_MACH_SUN9I) |
30 | #include <asm/arch/dram_sun9i.h> | |
9a07eb0b | 31 | #else |
bec72c79 | 32 | #include <asm/arch/dram_sun4i.h> |
9a07eb0b | 33 | #endif |
286c3c3a IC |
34 | |
35 | unsigned long sunxi_dram_init(void); | |
51637afe HG |
36 | void mctl_await_completion(u32 *reg, u32 mask, u32 val); |
37 | bool mctl_mem_matches(u32 offset); | |
5665f50e | 38 | |
286c3c3a | 39 | #endif /* _SUNXI_DRAM_H */ |