diff options
Diffstat (limited to 'arch/arm/mach-omap2/control.c')
-rw-r--r-- | arch/arm/mach-omap2/control.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/arch/arm/mach-omap2/control.c b/arch/arm/mach-omap2/control.c index 44bb4d544dcf..751f3549bf6f 100644 --- a/arch/arm/mach-omap2/control.c +++ b/arch/arm/mach-omap2/control.c | |||
@@ -151,32 +151,32 @@ void __iomem *omap_ctrl_base_get(void) | |||
151 | 151 | ||
152 | u8 omap_ctrl_readb(u16 offset) | 152 | u8 omap_ctrl_readb(u16 offset) |
153 | { | 153 | { |
154 | return __raw_readb(OMAP_CTRL_REGADDR(offset)); | 154 | return readb_relaxed(OMAP_CTRL_REGADDR(offset)); |
155 | } | 155 | } |
156 | 156 | ||
157 | u16 omap_ctrl_readw(u16 offset) | 157 | u16 omap_ctrl_readw(u16 offset) |
158 | { | 158 | { |
159 | return __raw_readw(OMAP_CTRL_REGADDR(offset)); | 159 | return readw_relaxed(OMAP_CTRL_REGADDR(offset)); |
160 | } | 160 | } |
161 | 161 | ||
162 | u32 omap_ctrl_readl(u16 offset) | 162 | u32 omap_ctrl_readl(u16 offset) |
163 | { | 163 | { |
164 | return __raw_readl(OMAP_CTRL_REGADDR(offset)); | 164 | return readl_relaxed(OMAP_CTRL_REGADDR(offset)); |
165 | } | 165 | } |
166 | 166 | ||
167 | void omap_ctrl_writeb(u8 val, u16 offset) | 167 | void omap_ctrl_writeb(u8 val, u16 offset) |
168 | { | 168 | { |
169 | __raw_writeb(val, OMAP_CTRL_REGADDR(offset)); | 169 | writeb_relaxed(val, OMAP_CTRL_REGADDR(offset)); |
170 | } | 170 | } |
171 | 171 | ||
172 | void omap_ctrl_writew(u16 val, u16 offset) | 172 | void omap_ctrl_writew(u16 val, u16 offset) |
173 | { | 173 | { |
174 | __raw_writew(val, OMAP_CTRL_REGADDR(offset)); | 174 | writew_relaxed(val, OMAP_CTRL_REGADDR(offset)); |
175 | } | 175 | } |
176 | 176 | ||
177 | void omap_ctrl_writel(u32 val, u16 offset) | 177 | void omap_ctrl_writel(u32 val, u16 offset) |
178 | { | 178 | { |
179 | __raw_writel(val, OMAP_CTRL_REGADDR(offset)); | 179 | writel_relaxed(val, OMAP_CTRL_REGADDR(offset)); |
180 | } | 180 | } |
181 | 181 | ||
182 | /* | 182 | /* |
@@ -188,12 +188,12 @@ void omap_ctrl_writel(u32 val, u16 offset) | |||
188 | 188 | ||
189 | u32 omap4_ctrl_pad_readl(u16 offset) | 189 | u32 omap4_ctrl_pad_readl(u16 offset) |
190 | { | 190 | { |
191 | return __raw_readl(OMAP4_CTRL_PAD_REGADDR(offset)); | 191 | return readl_relaxed(OMAP4_CTRL_PAD_REGADDR(offset)); |
192 | } | 192 | } |
193 | 193 | ||
194 | void omap4_ctrl_pad_writel(u32 val, u16 offset) | 194 | void omap4_ctrl_pad_writel(u32 val, u16 offset) |
195 | { | 195 | { |
196 | __raw_writel(val, OMAP4_CTRL_PAD_REGADDR(offset)); | 196 | writel_relaxed(val, OMAP4_CTRL_PAD_REGADDR(offset)); |
197 | } | 197 | } |
198 | 198 | ||
199 | #ifdef CONFIG_ARCH_OMAP3 | 199 | #ifdef CONFIG_ARCH_OMAP3 |
@@ -222,7 +222,7 @@ void omap3_ctrl_write_boot_mode(u8 bootmode) | |||
222 | * | 222 | * |
223 | * XXX This should use some omap_ctrl_writel()-type function | 223 | * XXX This should use some omap_ctrl_writel()-type function |
224 | */ | 224 | */ |
225 | __raw_writel(l, OMAP2_L4_IO_ADDRESS(OMAP343X_SCRATCHPAD + 4)); | 225 | writel_relaxed(l, OMAP2_L4_IO_ADDRESS(OMAP343X_SCRATCHPAD + 4)); |
226 | } | 226 | } |
227 | 227 | ||
228 | #endif | 228 | #endif |
@@ -285,7 +285,7 @@ void omap3_clear_scratchpad_contents(void) | |||
285 | if (omap2_prm_read_mod_reg(OMAP3430_GR_MOD, OMAP3_PRM_RSTST_OFFSET) & | 285 | if (omap2_prm_read_mod_reg(OMAP3430_GR_MOD, OMAP3_PRM_RSTST_OFFSET) & |
286 | OMAP3430_GLOBAL_COLD_RST_MASK) { | 286 | OMAP3430_GLOBAL_COLD_RST_MASK) { |
287 | for ( ; offset <= max_offset; offset += 0x4) | 287 | for ( ; offset <= max_offset; offset += 0x4) |
288 | __raw_writel(0x0, (v_addr + offset)); | 288 | writel_relaxed(0x0, (v_addr + offset)); |
289 | omap2_prm_set_mod_reg_bits(OMAP3430_GLOBAL_COLD_RST_MASK, | 289 | omap2_prm_set_mod_reg_bits(OMAP3430_GLOBAL_COLD_RST_MASK, |
290 | OMAP3430_GR_MOD, | 290 | OMAP3430_GR_MOD, |
291 | OMAP3_PRM_RSTST_OFFSET); | 291 | OMAP3_PRM_RSTST_OFFSET); |