ARM: at91/pm: move AT91_MEMCTRL_* to pm.h
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 16 Mar 2015 22:44:38 +0000 (23:44 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Sun, 5 Apr 2015 19:59:52 +0000 (21:59 +0200)
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>
arch/arm/mach-at91/include/mach/at91_ramc.h
arch/arm/mach-at91/pm.h

index e4492b151fee6b80b5bd9ec238d796e80437577a..493bc486e85834c0f6c37e82b772b833f95ffbb3 100644 (file)
@@ -21,10 +21,6 @@ extern void __iomem *at91_ramc_base[];
 .extern at91_ramc_base
 #endif
 
-#define AT91_MEMCTRL_MC                0
-#define AT91_MEMCTRL_SDRAMC    1
-#define AT91_MEMCTRL_DDRSDR    2
-
 #include <soc/at91/at91rm9200_sdramc.h>
 #include <soc/at91/at91sam9_ddrsdr.h>
 #include <soc/at91/at91sam9_sdramc.h>
index 3223967d346030beacf30119604b14df55dd2e23..ecd875a91d5218281049b6b4b36924ddcc62b1d3 100644 (file)
 
 #include <mach/at91_ramc.h>
 
+#define AT91_MEMCTRL_MC                0
+#define AT91_MEMCTRL_SDRAMC    1
+#define AT91_MEMCTRL_DDRSDR    2
+
 #define        AT91_PM_MEMTYPE_MASK    0x0f
 
 #define        AT91_PM_MODE_OFFSET     4