Merge branch 'master' of git://git.denx.de/u-boot-video
[oweals/u-boot.git] / arch / arm / include / asm / arch-sunxi / dram.h
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
15 #include <asm/io.h>
16 #include <linux/types.h>
17
18 /* dram regs definition */
19 #if defined(CONFIG_MACH_SUN6I)
20 #include <asm/arch/dram_sun6i.h>
21 #elif defined(CONFIG_MACH_SUN8I_A23)
22 #include <asm/arch/dram_sun8i_a23.h>
23 #elif defined(CONFIG_MACH_SUN8I_A33)
24 #include <asm/arch/dram_sun8i_a33.h>
25 #elif defined(CONFIG_MACH_SUN8I_H3)
26 #include <asm/arch/dram_sun8i_h3.h>
27 #else
28 #include <asm/arch/dram_sun4i.h>
29 #endif
30
31 unsigned long sunxi_dram_init(void);
32 void mctl_await_completion(u32 *reg, u32 mask, u32 val);
33 bool mctl_mem_matches(u32 offset);
34
35 #endif /* _SUNXI_DRAM_H */