diff options
Diffstat (limited to 'arch/arm/mach-omap2/mux.c')
-rw-r--r-- | arch/arm/mach-omap2/mux.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c index 0cf7562ff88f..930770012a75 100644 --- a/arch/arm/mach-omap2/mux.c +++ b/arch/arm/mach-omap2/mux.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <asm/io.h> | 29 | #include <asm/io.h> |
30 | #include <linux/spinlock.h> | 30 | #include <linux/spinlock.h> |
31 | 31 | ||
32 | #include <asm/arch/control.h> | ||
32 | #include <asm/arch/mux.h> | 33 | #include <asm/arch/mux.h> |
33 | 34 | ||
34 | #ifdef CONFIG_OMAP_MUX | 35 | #ifdef CONFIG_OMAP_MUX |
@@ -218,18 +219,16 @@ MUX_CFG_24XX("AD13_2430_MCBSP2_DR_OFF", 0x0131, 0, 0, 0, 1) | |||
218 | #define OMAP24XX_PINS_SZ 0 | 219 | #define OMAP24XX_PINS_SZ 0 |
219 | #endif /* CONFIG_ARCH_OMAP24XX */ | 220 | #endif /* CONFIG_ARCH_OMAP24XX */ |
220 | 221 | ||
221 | #define OMAP24XX_L4_BASE 0x48000000 | ||
222 | #define OMAP24XX_PULL_ENA (1 << 3) | 222 | #define OMAP24XX_PULL_ENA (1 << 3) |
223 | #define OMAP24XX_PULL_UP (1 << 4) | 223 | #define OMAP24XX_PULL_UP (1 << 4) |
224 | 224 | ||
225 | /* REVISIT: Convert this code to use ctrl_{read,write}_reg */ | ||
226 | #if defined(CONFIG_OMAP_MUX_DEBUG) || defined(CONFIG_OMAP_MUX_WARNINGS) | 225 | #if defined(CONFIG_OMAP_MUX_DEBUG) || defined(CONFIG_OMAP_MUX_WARNINGS) |
227 | void __init_or_module omap2_cfg_debug(const struct pin_config *cfg, u8 reg) | 226 | void __init_or_module omap2_cfg_debug(const struct pin_config *cfg, u8 reg) |
228 | { | 227 | { |
229 | u16 orig; | 228 | u16 orig; |
230 | u8 warn = 0, debug = 0; | 229 | u8 warn = 0, debug = 0; |
231 | 230 | ||
232 | orig = omap_readb(OMAP24XX_L4_BASE + cfg->mux_reg); | 231 | orig = omap_ctrl_readb(cfg->mux_reg); |
233 | 232 | ||
234 | #ifdef CONFIG_OMAP_MUX_DEBUG | 233 | #ifdef CONFIG_OMAP_MUX_DEBUG |
235 | debug = cfg->debug; | 234 | debug = cfg->debug; |
@@ -238,7 +237,8 @@ void __init_or_module omap2_cfg_debug(const struct pin_config *cfg, u8 reg) | |||
238 | if (debug || warn) | 237 | if (debug || warn) |
239 | printk(KERN_WARNING | 238 | printk(KERN_WARNING |
240 | "MUX: setup %s (0x%08x): 0x%02x -> 0x%02x\n", | 239 | "MUX: setup %s (0x%08x): 0x%02x -> 0x%02x\n", |
241 | cfg->name, omap_readb(OMAP24XX_L4_BASE + cfg->mux_reg)); | 240 | cfg->name, omap_ctrl_base_get() + cfg->mux_reg, |
241 | orig, reg); | ||
242 | } | 242 | } |
243 | #else | 243 | #else |
244 | #define omap2_cfg_debug(x, y) do {} while (0) | 244 | #define omap2_cfg_debug(x, y) do {} while (0) |
@@ -258,7 +258,7 @@ int __init_or_module omap24xx_cfg_reg(const struct pin_config *cfg) | |||
258 | if (cfg->pu_pd_val) | 258 | if (cfg->pu_pd_val) |
259 | reg |= OMAP24XX_PULL_UP; | 259 | reg |= OMAP24XX_PULL_UP; |
260 | omap2_cfg_debug(cfg, reg); | 260 | omap2_cfg_debug(cfg, reg); |
261 | omap_writeb(reg, OMAP24XX_L4_BASE + cfg->mux_reg); | 261 | omap_ctrl_writeb(reg, cfg->mux_reg); |
262 | spin_unlock_irqrestore(&mux_spin_lock, flags); | 262 | spin_unlock_irqrestore(&mux_spin_lock, flags); |
263 | 263 | ||
264 | return 0; | 264 | return 0; |