1/*
2 * Header file for the Atmel RAM Controller
3 *
4 * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
5 *
6 * Under GPLv2 only
7 */
8
9#ifndef __AT91_RAMC_H__
10#define __AT91_RAMC_H__
11
12#ifndef __ASSEMBLY__
13extern void __iomem *at91_ramc_base[];
14
15#define at91_ramc_read(id, field) \
16	__raw_readl(at91_ramc_base[id] + field)
17
18#define at91_ramc_write(id, field, value) \
19	__raw_writel(value, at91_ramc_base[id] + field)
20#else
21.extern at91_ramc_base
22#endif
23
24#include <soc/at91/at91rm9200_sdramc.h>
25#include <soc/at91/at91sam9_ddrsdr.h>
26#include <soc/at91/at91sam9_sdramc.h>
27
28#endif /* __AT91_RAMC_H__ */
29