aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/io.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2012-02-24 13:34:36 -0500
committerTony Lindgren <tony@atomide.com>2012-02-24 13:34:36 -0500
commitacea7c7b81e8f67513aebade8cb99c7789c44d8c (patch)
tree98d6dd2fb5a3f947e1ebc90e6496ec757d918a4d /arch/arm/mach-omap2/io.c
parent2c799cef4d145af2182594a41cb5e5b42f2535c5 (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/io.c')
-rw-r--r--arch/arm/mach-omap2/io.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c
index 0119807016f9..3203128eef7d 100644
--- a/arch/arm/mach-omap2/io.c
+++ b/arch/arm/mach-omap2/io.c
@@ -487,43 +487,3 @@ void __init omap_sdrc_init(struct omap_sdrc_params *sdrc_cs0,
487 _omap2_init_reprogram_sdrc(); 487 _omap2_init_reprogram_sdrc();
488 } 488 }
489} 489}
490
491/*
492 * NOTE: Please use ioremap + __raw_read/write where possible instead of these
493 */
494
495u8 omap_readb(u32 pa)
496{
497 return __raw_readb(OMAP2_L4_IO_ADDRESS(pa));
498}
499EXPORT_SYMBOL(omap_readb);
500
501u16 omap_readw(u32 pa)
502{
503 return __raw_readw(OMAP2_L4_IO_ADDRESS(pa));
504}
505EXPORT_SYMBOL(omap_readw);
506
507u32 omap_readl(u32 pa)
508{
509 return __raw_readl(OMAP2_L4_IO_ADDRESS(pa));
510}
511EXPORT_SYMBOL(omap_readl);
512
513void omap_writeb(u8 v, u32 pa)
514{
515 __raw_writeb(v, OMAP2_L4_IO_ADDRESS(pa));
516}
517EXPORT_SYMBOL(omap_writeb);
518
519void omap_writew(u16 v, u32 pa)
520{
521 __raw_writew(v, OMAP2_L4_IO_ADDRESS(pa));
522}
523EXPORT_SYMBOL(omap_writew);
524
525void omap_writel(u32 v, u32 pa)
526{
527 __raw_writel(v, OMAP2_L4_IO_ADDRESS(pa));
528}
529EXPORT_SYMBOL(omap_writel);