diff options
author | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2007-08-16 05:12:47 -0400 |
---|---|---|
committer | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2007-10-11 05:38:41 -0400 |
commit | 2417a130bd4013f804983c62cb116bc9ec7f8e2d (patch) | |
tree | 7b87c05ca3ff524990c2e5d98e69f02283728a51 /arch | |
parent | bbf25010f1a6b761914430f5fca081ec8c7accd1 (diff) |
[AVR32] Move AT32_PM_BASE definition into pm.h
We don't want to redefine this in every file that needs to access
the PM.
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/avr32/mach-at32ap/at32ap7000.c | 6 | ||||
-rw-r--r-- | arch/avr32/mach-at32ap/pm.h | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/arch/avr32/mach-at32ap/at32ap7000.c b/arch/avr32/mach-at32ap/at32ap7000.c index 64cc5583ddfb..373242aab976 100644 --- a/arch/avr32/mach-at32ap/at32ap7000.c +++ b/arch/avr32/mach-at32ap/at32ap7000.c | |||
@@ -25,12 +25,6 @@ | |||
25 | #include "pio.h" | 25 | #include "pio.h" |
26 | #include "pm.h" | 26 | #include "pm.h" |
27 | 27 | ||
28 | /* | ||
29 | * We can reduce the code size a bit by using a constant here. Since | ||
30 | * this file is completely chip-specific, it's safe to not use | ||
31 | * ioremap. Generic drivers should of course never do this. | ||
32 | */ | ||
33 | #define AT32_PM_BASE 0xfff00000 | ||
34 | 28 | ||
35 | #define PBMEM(base) \ | 29 | #define PBMEM(base) \ |
36 | { \ | 30 | { \ |
diff --git a/arch/avr32/mach-at32ap/pm.h b/arch/avr32/mach-at32ap/pm.h index a1f8aced0a8c..47efd0d1951f 100644 --- a/arch/avr32/mach-at32ap/pm.h +++ b/arch/avr32/mach-at32ap/pm.h | |||
@@ -4,6 +4,14 @@ | |||
4 | #ifndef __ARCH_AVR32_MACH_AT32AP_PM_H__ | 4 | #ifndef __ARCH_AVR32_MACH_AT32AP_PM_H__ |
5 | #define __ARCH_AVR32_MACH_AT32AP_PM_H__ | 5 | #define __ARCH_AVR32_MACH_AT32AP_PM_H__ |
6 | 6 | ||
7 | /* | ||
8 | * We can reduce the code size a bit by using a constant here. Since | ||
9 | * this file is only used on AVR32 AP CPUs with segmentation enabled, | ||
10 | * it's safe to not use ioremap. Generic drivers should of course | ||
11 | * never do this. | ||
12 | */ | ||
13 | #define AT32_PM_BASE 0xfff00000 | ||
14 | |||
7 | /* PM register offsets */ | 15 | /* PM register offsets */ |
8 | #define PM_MCCTRL 0x0000 | 16 | #define PM_MCCTRL 0x0000 |
9 | #define PM_CKSEL 0x0004 | 17 | #define PM_CKSEL 0x0004 |