diff options
author | Tero Kristo <t-kristo@ti.com> | 2015-02-20 03:08:52 -0500 |
---|---|---|
committer | Tero Kristo <t-kristo@ti.com> | 2015-03-31 14:26:58 -0400 |
commit | efde234674d9db08b762d9faef4dbbaa2eba3a2e (patch) | |
tree | 8ee5483eeca28398f39d526d3438b4678f4b56b5 /arch/arm/mach-omap2/control.c | |
parent | 23d34981c7e36fb609d3eaacf0a52a05d75ae008 (diff) |
ARM: OMAP4+: control: remove support for legacy pad read/write
omap4_ctrl_pad_readl/writel are no longer used by anybody, so remove
these. Syscon / pinctrl should be used to access the padconf area
instead.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/control.c')
-rw-r--r-- | arch/arm/mach-omap2/control.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/arch/arm/mach-omap2/control.c b/arch/arm/mach-omap2/control.c index 404778449ef7..c8565d3dbefe 100644 --- a/arch/arm/mach-omap2/control.c +++ b/arch/arm/mach-omap2/control.c | |||
@@ -36,7 +36,6 @@ | |||
36 | 36 | ||
37 | static void __iomem *omap2_ctrl_base; | 37 | static void __iomem *omap2_ctrl_base; |
38 | static s16 omap2_ctrl_offset; | 38 | static s16 omap2_ctrl_offset; |
39 | static void __iomem *omap4_ctrl_pad_base; | ||
40 | static struct regmap *omap2_ctrl_syscon; | 39 | static struct regmap *omap2_ctrl_syscon; |
41 | 40 | ||
42 | #if defined(CONFIG_ARCH_OMAP3) && defined(CONFIG_PM) | 41 | #if defined(CONFIG_ARCH_OMAP3) && defined(CONFIG_PM) |
@@ -139,13 +138,9 @@ struct omap3_control_regs { | |||
139 | static struct omap3_control_regs control_context; | 138 | static struct omap3_control_regs control_context; |
140 | #endif /* CONFIG_ARCH_OMAP3 && CONFIG_PM */ | 139 | #endif /* CONFIG_ARCH_OMAP3 && CONFIG_PM */ |
141 | 140 | ||
142 | #define OMAP4_CTRL_PAD_REGADDR(reg) (omap4_ctrl_pad_base + (reg)) | 141 | void __init omap2_set_globals_control(void __iomem *ctrl) |
143 | |||
144 | void __init omap2_set_globals_control(void __iomem *ctrl, | ||
145 | void __iomem *ctrl_pad) | ||
146 | { | 142 | { |
147 | omap2_ctrl_base = ctrl; | 143 | omap2_ctrl_base = ctrl; |
148 | omap4_ctrl_pad_base = ctrl_pad; | ||
149 | } | 144 | } |
150 | 145 | ||
151 | u8 omap_ctrl_readb(u16 offset) | 146 | u8 omap_ctrl_readb(u16 offset) |
@@ -218,23 +213,6 @@ void omap_ctrl_writel(u32 val, u16 offset) | |||
218 | val); | 213 | val); |
219 | } | 214 | } |
220 | 215 | ||
221 | /* | ||
222 | * On OMAP4 control pad are not addressable from control | ||
223 | * core base. So the common omap_ctrl_read/write APIs breaks | ||
224 | * Hence export separate APIs to manage the omap4 pad control | ||
225 | * registers. This APIs will work only for OMAP4 | ||
226 | */ | ||
227 | |||
228 | u32 omap4_ctrl_pad_readl(u16 offset) | ||
229 | { | ||
230 | return readl_relaxed(OMAP4_CTRL_PAD_REGADDR(offset)); | ||
231 | } | ||
232 | |||
233 | void omap4_ctrl_pad_writel(u32 val, u16 offset) | ||
234 | { | ||
235 | writel_relaxed(val, OMAP4_CTRL_PAD_REGADDR(offset)); | ||
236 | } | ||
237 | |||
238 | #ifdef CONFIG_ARCH_OMAP3 | 216 | #ifdef CONFIG_ARCH_OMAP3 |
239 | 217 | ||
240 | /** | 218 | /** |