aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-orion5x
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2008-05-28 10:43:48 -0400
committerLennert Buytenhek <buytenh@marvell.com>2008-06-22 16:44:57 -0400
commit79e90dd5aa95adfdc3117db8a559da3d0195ba58 (patch)
treebe2a760b39e8f295aca136da03c05490c77a0b48 /include/asm-arm/arch-orion5x
parent0e3bc0503f7e7b5b0bd4416f43eeeca1b661e66e (diff)
[ARM] Orion: nuke orion5x_{read,write}
Nuke the Orion-specific orion5x_{read,write} wrappers. Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Diffstat (limited to 'include/asm-arm/arch-orion5x')
-rw-r--r--include/asm-arm/arch-orion5x/io.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/asm-arm/arch-orion5x/io.h b/include/asm-arm/arch-orion5x/io.h
index d9a4b2065e53..59f1bc96a23b 100644
--- a/include/asm-arm/arch-orion5x/io.h
+++ b/include/asm-arm/arch-orion5x/io.h
@@ -52,15 +52,12 @@ static inline void __iomem *__io(unsigned long addr)
52/***************************************************************************** 52/*****************************************************************************
53 * Helpers to access Orion registers 53 * Helpers to access Orion registers
54 ****************************************************************************/ 54 ****************************************************************************/
55#define orion5x_read(r) __raw_readl(r)
56#define orion5x_write(r, val) __raw_writel(val, r)
57
58/* 55/*
59 * These are not preempt-safe. Locks, if needed, must be taken 56 * These are not preempt-safe. Locks, if needed, must be taken
60 * care of by the caller. 57 * care of by the caller.
61 */ 58 */
62#define orion5x_setbits(r, mask) orion5x_write((r), orion5x_read(r) | (mask)) 59#define orion5x_setbits(r, mask) writel(readl(r) | (mask), (r))
63#define orion5x_clrbits(r, mask) orion5x_write((r), orion5x_read(r) & ~(mask)) 60#define orion5x_clrbits(r, mask) writel(readl(r) & ~(mask), (r))
64 61
65 62
66#endif 63#endif