diff options
author | Tony Lindgren <tony@atomide.com> | 2012-02-24 13:34:36 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-02-24 13:34:36 -0500 |
commit | acea7c7b81e8f67513aebade8cb99c7789c44d8c (patch) | |
tree | 98d6dd2fb5a3f947e1ebc90e6496ec757d918a4d /arch/arm/mach-omap2/common.h | |
parent | 2c799cef4d145af2182594a41cb5e5b42f2535c5 (diff) |
ARM: OMAP2+: Limit omap_read/write usage to legacy USB drivers
Drivers should no longer use omap_read/write functions
but instead use ioremap + read/write functions.
As some USB legacy code is still shared between omap1 and
omap2420, let's limit the omap_read/write to plat/usb.h.
Note that the long term fix is to update the drivers to
use ioremap and read/write functions. That can now be
done as a separate patch series that is limited to the
USB drivers.
Also make sure the legacy omap1-keypad.c driver builds
if selected for 2420 based systems.
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/common.h')
-rw-r--r-- | arch/arm/mach-omap2/common.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h index 09ca9e9cc176..f78ec4e6a5c7 100644 --- a/arch/arm/mach-omap2/common.h +++ b/arch/arm/mach-omap2/common.h | |||
@@ -242,15 +242,5 @@ struct omap_sdrc_params; | |||
242 | extern void omap_sdrc_init(struct omap_sdrc_params *sdrc_cs0, | 242 | extern void omap_sdrc_init(struct omap_sdrc_params *sdrc_cs0, |
243 | struct omap_sdrc_params *sdrc_cs1); | 243 | struct omap_sdrc_params *sdrc_cs1); |
244 | 244 | ||
245 | /* | ||
246 | * NOTE: Please use ioremap + __raw_read/write where possible instead of these | ||
247 | */ | ||
248 | extern u8 omap_readb(u32 pa); | ||
249 | extern u16 omap_readw(u32 pa); | ||
250 | extern u32 omap_readl(u32 pa); | ||
251 | extern void omap_writeb(u8 v, u32 pa); | ||
252 | extern void omap_writew(u16 v, u32 pa); | ||
253 | extern void omap_writel(u32 v, u32 pa); | ||
254 | |||
255 | #endif /* __ASSEMBLER__ */ | 245 | #endif /* __ASSEMBLER__ */ |
256 | #endif /* __ARCH_ARM_MACH_OMAP2PLUS_COMMON_H */ | 246 | #endif /* __ARCH_ARM_MACH_OMAP2PLUS_COMMON_H */ |