the AT91_MEMCTRL_* defines are only used by the pm code, move them to pm.h Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
29 lines
621 B
C
29 lines
621 B
C
/*
|
|
* Header file for the Atmel RAM Controller
|
|
*
|
|
* Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
|
*
|
|
* Under GPLv2 only
|
|
*/
|
|
|
|
#ifndef __AT91_RAMC_H__
|
|
#define __AT91_RAMC_H__
|
|
|
|
#ifndef __ASSEMBLY__
|
|
extern void __iomem *at91_ramc_base[];
|
|
|
|
#define at91_ramc_read(id, field) \
|
|
__raw_readl(at91_ramc_base[id] + field)
|
|
|
|
#define at91_ramc_write(id, field, value) \
|
|
__raw_writel(value, at91_ramc_base[id] + field)
|
|
#else
|
|
.extern at91_ramc_base
|
|
#endif
|
|
|
|
#include <soc/at91/at91rm9200_sdramc.h>
|
|
#include <soc/at91/at91sam9_ddrsdr.h>
|
|
#include <soc/at91/at91sam9_sdramc.h>
|
|
|
|
#endif /* __AT91_RAMC_H__ */
|