new file mode 100644
@@ -0,0 +1,31 @@
+/*
+ * 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
+
+#define AT91_MEMCTRL_MC 0
+#define AT91_MEMCTRL_SDRAMC 1
+#define AT91_MEMCTRL_DDRSDR 2
+
+#include <mach/at91sam9_ddrsdr.h>
+#include <mach/at91sam9_sdramc.h>
+
+#endif /* __AT91_RAMC_H__ */
@@ -15,7 +15,7 @@
#include <linux/linkage.h>
#include <mach/hardware.h>
-#include <mach/at91_ramc.h>
+#include "at91_ramc.h"
#include "at91_rstc.h"
.arm
@@ -12,7 +12,7 @@
#include <linux/linkage.h>
#include <mach/hardware.h>
-#include <mach/at91_ramc.h>
+#include "at91_ramc.h"
#include "at91_rstc.h"
.arm
@@ -36,8 +36,6 @@
#include <asm/mach/map.h>
#include <asm/mach/irq.h>
-#include <mach/at91rm9200_mc.h>
-#include <mach/at91_ramc.h>
#include <mach/cpu.h>
#include "at91_aic.h"
@@ -36,8 +36,6 @@
#include <asm/mach/irq.h>
#include <mach/cpu.h>
-#include <mach/at91rm9200_mc.h>
-#include <mach/at91_ramc.h>
#include "at91_aic.h"
#include "board.h"
@@ -37,9 +37,6 @@
#include <asm/mach/map.h>
#include <asm/mach/irq.h>
-#include <mach/at91rm9200_mc.h>
-#include <mach/at91_ramc.h>
-
#include "at91_aic.h"
#include "board.h"
#include "generic.h"
@@ -39,8 +39,6 @@
#include <asm/mach/irq.h>
#include <mach/hardware.h>
-#include <mach/at91rm9200_mc.h>
-#include <mach/at91_ramc.h>
#include "at91_aic.h"
#include "board.h"
@@ -39,8 +39,6 @@
#include <asm/mach/irq.h>
#include <mach/hardware.h>
-#include <mach/at91rm9200_mc.h>
-#include <mach/at91_ramc.h>
#include "at91_aic.h"
#include "board.h"
deleted file mode 100644
@@ -1,31 +0,0 @@
-/*
- * 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
-
-#define AT91_MEMCTRL_MC 0
-#define AT91_MEMCTRL_SDRAMC 1
-#define AT91_MEMCTRL_DDRSDR 2
-
-#include <mach/at91sam9_ddrsdr.h>
-#include <mach/at91sam9_sdramc.h>
-
-#endif /* __AT91_RAMC_H__ */
@@ -11,7 +11,7 @@
#ifndef __ARCH_ARM_MACH_AT91_PM
#define __ARCH_ARM_MACH_AT91_PM
-#include <mach/at91_ramc.h>
+#include "at91_ramc.h"
/*
* The AT91RM9200 goes into self-refresh mode with this command, and will
@@ -15,7 +15,7 @@
#include <linux/linkage.h>
#include <mach/hardware.h>
#include <mach/at91_pmc.h>
-#include <mach/at91_ramc.h>
+#include "at91_ramc.h"
#ifdef CONFIG_SOC_AT91SAM9263
Now that the ebi interface isn't handled by ramc, make ramc private to mach-at91. And while at it clean up some unnecessary ramc includes in the RM9200 board files. Signed-off-by: Joachim Eastwood <manabian@gmail.com> --- arch/arm/mach-at91/at91_ramc.h | 31 +++++++++++++++++++++++++++++ arch/arm/mach-at91/at91sam9_alt_reset.S | 2 +- arch/arm/mach-at91/at91sam9g45_reset.S | 2 +- arch/arm/mach-at91/board-cpuat91.c | 2 -- arch/arm/mach-at91/board-kb9202.c | 2 -- arch/arm/mach-at91/board-picotux200.c | 3 --- arch/arm/mach-at91/board-rm9200dk.c | 2 -- arch/arm/mach-at91/board-rm9200ek.c | 2 -- arch/arm/mach-at91/include/mach/at91_ramc.h | 31 ----------------------------- arch/arm/mach-at91/pm.h | 2 +- arch/arm/mach-at91/pm_slowclock.S | 2 +- 11 files changed, 35 insertions(+), 46 deletions(-) create mode 100644 arch/arm/mach-at91/at91_ramc.h delete mode 100644 arch/arm/mach-at91/include/mach/at91_ramc.h