Commit 2417a130 authored by Haavard Skinnemoen's avatar Haavard Skinnemoen

[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: default avatarHaavard Skinnemoen <hskinnemoen@atmel.com>
parent bbf25010
...@@ -25,12 +25,6 @@ ...@@ -25,12 +25,6 @@
#include "pio.h" #include "pio.h"
#include "pm.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) \ #define PBMEM(base) \
{ \ { \
......
...@@ -4,6 +4,14 @@ ...@@ -4,6 +4,14 @@
#ifndef __ARCH_AVR32_MACH_AT32AP_PM_H__ #ifndef __ARCH_AVR32_MACH_AT32AP_PM_H__
#define __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 */ /* PM register offsets */
#define PM_MCCTRL 0x0000 #define PM_MCCTRL 0x0000
#define PM_CKSEL 0x0004 #define PM_CKSEL 0x0004
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment