From 2417a130bd4013f804983c62cb116bc9ec7f8e2d Mon Sep 17 00:00:00 2001 From: Haavard Skinnemoen Date: Thu, 16 Aug 2007 11:12:47 +0200 Subject: [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 --- arch/avr32/mach-at32ap/pm.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'arch/avr32/mach-at32ap/pm.h') 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 @@ #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 -- cgit v1.2.2