2 * Header file for the Atmel RAM Controller
4 * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
9 #ifndef __AT91_RAMC_H__
10 #define __AT91_RAMC_H__
13 extern void __iomem
*at91_ramc_base
[];
15 #define at91_ramc_read(id, field) \
16 __raw_readl(at91_ramc_base[id] + field)
18 #define at91_ramc_write(id, field, value) \
19 __raw_writel(value, at91_ramc_base[id] + field)
21 .extern at91_ramc_base
24 #define AT91_MEMCTRL_MC 0
25 #define AT91_MEMCTRL_SDRAMC 1
26 #define AT91_MEMCTRL_DDRSDR 2
28 #include <mach/at91rm9200_sdramc.h>
29 #include <mach/at91sam9_ddrsdr.h>
30 #include <mach/at91sam9_sdramc.h>
32 #endif /* __AT91_RAMC_H__ */