aboutsummaryrefslogtreecommitdiff
path: root/include/asm-arm/arch-at91/hardware.h
diff options
context:
space:
mode:
authorAndrew Victor <andrew@sanpeople.com>2007-05-11 13:21:27 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2007-05-11 17:20:31 +0100
commit030f4810e782e541468d36c27e721b582b7820a4 (patch)
treef1dcab0f3335a2fa8a8cda69b44aa58b82ea0094 /include/asm-arm/arch-at91/hardware.h
parentf7538ac95200fd122fd84c8f85ff1130ee7645b5 (diff)
[ARM] 4369/1: AT91: Fix circular dependency in header files
Resolve the circular dependency in the AT91 header files (io.h and hardware.h) by moving the at91_sys_read() and at91_sys_write() functions to io.h Signed-off-by: Andrew Victor <andrew@sanpeople.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/arch-at91/hardware.h')
-rw-r--r--include/asm-arm/arch-at91/hardware.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/include/asm-arm/arch-at91/hardware.h b/include/asm-arm/arch-at91/hardware.h
index 28133e0154d..1c14382dc3f 100644
--- a/include/asm-arm/arch-at91/hardware.h
+++ b/include/asm-arm/arch-at91/hardware.h
@@ -69,22 +69,5 @@
/* Clocks */
#define AT91_SLOW_CLOCK 32768 /* slow clock */
-#ifndef __ASSEMBLY__
-#include <asm/io.h>
-
-static inline unsigned int at91_sys_read(unsigned int reg_offset)
-{
- void __iomem *addr = (void __iomem *)AT91_VA_BASE_SYS;
-
- return __raw_readl(addr + reg_offset);
-}
-
-static inline void at91_sys_write(unsigned int reg_offset, unsigned long value)
-{
- void __iomem *addr = (void __iomem *)AT91_VA_BASE_SYS;
-
- __raw_writel(value, addr + reg_offset);
-}
-#endif
#endif