diff options
Diffstat (limited to 'include/asm-arm/arch-at91/hardware.h')
-rw-r--r-- | include/asm-arm/arch-at91/hardware.h | 17 |
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 0e51ad224eaa..46835e945aea 100644 --- a/include/asm-arm/arch-at91/hardware.h +++ b/include/asm-arm/arch-at91/hardware.h | |||
@@ -71,22 +71,5 @@ | |||
71 | /* Clocks */ | 71 | /* Clocks */ |
72 | #define AT91_SLOW_CLOCK 32768 /* slow clock */ | 72 | #define AT91_SLOW_CLOCK 32768 /* slow clock */ |
73 | 73 | ||
74 | #ifndef __ASSEMBLY__ | ||
75 | #include <asm/io.h> | ||
76 | |||
77 | static inline unsigned int at91_sys_read(unsigned int reg_offset) | ||
78 | { | ||
79 | void __iomem *addr = (void __iomem *)AT91_VA_BASE_SYS; | ||
80 | |||
81 | return __raw_readl(addr + reg_offset); | ||
82 | } | ||
83 | |||
84 | static inline void at91_sys_write(unsigned int reg_offset, unsigned long value) | ||
85 | { | ||
86 | void __iomem *addr = (void __iomem *)AT91_VA_BASE_SYS; | ||
87 | |||
88 | __raw_writel(value, addr + reg_offset); | ||
89 | } | ||
90 | #endif | ||
91 | 74 | ||
92 | #endif | 75 | #endif |