diff options
Diffstat (limited to 'arch/arm/mach-at91/include/mach/io.h')
-rw-r--r-- | arch/arm/mach-at91/include/mach/io.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/arch/arm/mach-at91/include/mach/io.h b/arch/arm/mach-at91/include/mach/io.h index 4ca09ef7ca29..4003001eca3d 100644 --- a/arch/arm/mach-at91/include/mach/io.h +++ b/arch/arm/mach-at91/include/mach/io.h | |||
@@ -28,22 +28,4 @@ | |||
28 | #define __io(a) __typesafe_io(a) | 28 | #define __io(a) __typesafe_io(a) |
29 | #define __mem_pci(a) (a) | 29 | #define __mem_pci(a) (a) |
30 | 30 | ||
31 | #ifndef __ASSEMBLY__ | ||
32 | |||
33 | static inline unsigned int at91_sys_read(unsigned int reg_offset) | ||
34 | { | ||
35 | void __iomem *addr = (void __iomem *)AT91_VA_BASE_SYS; | ||
36 | |||
37 | return __raw_readl(addr + reg_offset); | ||
38 | } | ||
39 | |||
40 | static inline void at91_sys_write(unsigned int reg_offset, unsigned long value) | ||
41 | { | ||
42 | void __iomem *addr = (void __iomem *)AT91_VA_BASE_SYS; | ||
43 | |||
44 | __raw_writel(value, addr + reg_offset); | ||
45 | } | ||
46 | |||
47 | #endif | ||
48 | |||
49 | #endif | 31 | #endif |