diff options
author | Rob Herring <rob.herring@calxeda.com> | 2012-02-10 19:29:09 -0500 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2012-03-06 22:34:40 -0500 |
commit | 8a52dd4f94abe147bbd4080664817a389c8b6818 (patch) | |
tree | ea1410f98400ba20dca0224aaf891f0cf823a06c /arch/arm/mach-orion5x/common.h | |
parent | 9675b8840f4059ddd473956320101e80129115ab (diff) |
ARM: orion5x: clean-up mach/io.h
Move orion5x specific mach/io.h parts into common.h.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Lennert Buytenhek <kernel@wantstofly.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Diffstat (limited to 'arch/arm/mach-orion5x/common.h')
-rw-r--r-- | arch/arm/mach-orion5x/common.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-orion5x/common.h b/arch/arm/mach-orion5x/common.h index d2513ac79ff5..2e6454c8d4ba 100644 --- a/arch/arm/mach-orion5x/common.h +++ b/arch/arm/mach-orion5x/common.h | |||
@@ -57,5 +57,14 @@ struct meminfo; | |||
57 | struct tag; | 57 | struct tag; |
58 | extern void __init tag_fixup_mem32(struct tag *, char **, struct meminfo *); | 58 | extern void __init tag_fixup_mem32(struct tag *, char **, struct meminfo *); |
59 | 59 | ||
60 | /***************************************************************************** | ||
61 | * Helpers to access Orion registers | ||
62 | ****************************************************************************/ | ||
63 | /* | ||
64 | * These are not preempt-safe. Locks, if needed, must be taken | ||
65 | * care of by the caller. | ||
66 | */ | ||
67 | #define orion5x_setbits(r, mask) writel(readl(r) | (mask), (r)) | ||
68 | #define orion5x_clrbits(r, mask) writel(readl(r) & ~(mask), (r)) | ||
60 | 69 | ||
61 | #endif | 70 | #endif |