diff options
author | Andrew Victor <andrew@sanpeople.com> | 2006-06-20 14:30:20 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-06-20 14:30:20 -0400 |
commit | 5c3fddced9f62f4b175ce400bb96b23f47626e50 (patch) | |
tree | 52bad626b8b5111eb727f4a5fcc586f60c88c426 /include/asm-arm/arch-at91rm9200/hardware.h | |
parent | 907d6deb625cd7ff5fea3ef4b20dfb6c1c19c3ee (diff) |
[ARM] 3607/1: AT91RM9200 misc fixes
Patch from Andrew Victor
This final patch includes some general fixes.
1. Link in pm.o if CONFIG_PM is enabled. [Should have been included in
patch 3605/1].
2. Use __raw_readl()/__raw_writel() when accessing System Peripheral
registers.
3. Removed some unnecessary includes
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-at91rm9200/hardware.h')
-rw-r--r-- | include/asm-arm/arch-at91rm9200/hardware.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-arm/arch-at91rm9200/hardware.h b/include/asm-arm/arch-at91rm9200/hardware.h index 87f40df57140..235d39d91107 100644 --- a/include/asm-arm/arch-at91rm9200/hardware.h +++ b/include/asm-arm/arch-at91rm9200/hardware.h | |||
@@ -84,14 +84,14 @@ static inline unsigned int at91_sys_read(unsigned int reg_offset) | |||
84 | { | 84 | { |
85 | void __iomem *addr = (void __iomem *)AT91_VA_BASE_SYS; | 85 | void __iomem *addr = (void __iomem *)AT91_VA_BASE_SYS; |
86 | 86 | ||
87 | return readl(addr + reg_offset); | 87 | return __raw_readl(addr + reg_offset); |
88 | } | 88 | } |
89 | 89 | ||
90 | static inline void at91_sys_write(unsigned int reg_offset, unsigned long value) | 90 | static inline void at91_sys_write(unsigned int reg_offset, unsigned long value) |
91 | { | 91 | { |
92 | void __iomem *addr = (void __iomem *)AT91_VA_BASE_SYS; | 92 | void __iomem *addr = (void __iomem *)AT91_VA_BASE_SYS; |
93 | 93 | ||
94 | writel(value, addr + reg_offset); | 94 | __raw_writel(value, addr + reg_offset); |
95 | } | 95 | } |
96 | #endif | 96 | #endif |
97 | 97 | ||