]> err.no Git - linux-2.6/commitdiff
[AVR32] Move AT32_PM_BASE definition into pm.h
authorHaavard Skinnemoen <hskinnemoen@atmel.com>
Thu, 16 Aug 2007 09:12:47 +0000 (11:12 +0200)
committerHaavard Skinnemoen <hskinnemoen@atmel.com>
Thu, 11 Oct 2007 09:38:41 +0000 (11:38 +0200)
We don't want to redefine this in every file that needs to access
the PM.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
arch/avr32/mach-at32ap/at32ap7000.c
arch/avr32/mach-at32ap/pm.h

index 64cc5583ddfb0a5feb89669d00ce853055421a68..373242aab976eca6656bf7e4bfe6086873c9b534 100644 (file)
 #include "pio.h"
 #include "pm.h"
 
-/*
- * We can reduce the code size a bit by using a constant here. Since
- * this file is completely chip-specific, it's safe to not use
- * ioremap. Generic drivers should of course never do this.
- */
-#define AT32_PM_BASE   0xfff00000
 
 #define PBMEM(base)                                    \
        {                                               \
index a1f8aced0a8c8dd2ff862c4e240ddfd6a351e658..47efd0d1951f41d86c21ddaae1c4c318a75efa08 100644 (file)
@@ -4,6 +4,14 @@
 #ifndef __ARCH_AVR32_MACH_AT32AP_PM_H__
 #define __ARCH_AVR32_MACH_AT32AP_PM_H__
 
+/*
+ * We can reduce the code size a bit by using a constant here. Since
+ * this file is only used on AVR32 AP CPUs with segmentation enabled,
+ * it's safe to not use ioremap. Generic drivers should of course
+ * never do this.
+ */
+#define AT32_PM_BASE   0xfff00000
+
 /* PM register offsets */
 #define PM_MCCTRL                              0x0000
 #define PM_CKSEL                               0x0004