Skip to content

Commit

Permalink
[AVR32] Move AT32_PM_BASE definition into pm.h
Browse files Browse the repository at this point in the history
We don't want to redefine this in every file that needs to access
the PM.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
  • Loading branch information
Haavard Skinnemoen committed Oct 11, 2007
1 parent bbf2501 commit 2417a13
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 0 additions & 6 deletions arch/avr32/mach-at32ap/at32ap7000.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@
#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) \
{ \
Expand Down
8 changes: 8 additions & 0 deletions arch/avr32/mach-at32ap/pm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2417a13

Please sign in to comment.