diff options
Diffstat (limited to 'arch/arm/mach-omap2/io.c')
-rw-r--r-- | arch/arm/mach-omap2/io.c | 58 |
1 files changed, 8 insertions, 50 deletions
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 2d19efbbc52d..cd47a71297b9 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c | |||
@@ -23,25 +23,23 @@ | |||
23 | #include <linux/clk.h> | 23 | #include <linux/clk.h> |
24 | 24 | ||
25 | #include <asm/tlb.h> | 25 | #include <asm/tlb.h> |
26 | |||
27 | #include <asm/mach/map.h> | 26 | #include <asm/mach/map.h> |
28 | 27 | ||
29 | #include <plat/sram.h> | 28 | #include <plat/sram.h> |
30 | #include <plat/sdrc.h> | 29 | #include <plat/sdrc.h> |
31 | #include <plat/serial.h> | 30 | #include <plat/serial.h> |
32 | |||
33 | #include "clock2xxx.h" | ||
34 | #include "clock3xxx.h" | ||
35 | #include "clock44xx.h" | ||
36 | |||
37 | #include "common.h" | ||
38 | #include <plat/omap-pm.h> | 31 | #include <plat/omap-pm.h> |
32 | #include <plat/omap_hwmod.h> | ||
33 | #include <plat/multi.h> | ||
34 | |||
35 | #include "iomap.h" | ||
39 | #include "voltage.h" | 36 | #include "voltage.h" |
40 | #include "powerdomain.h" | 37 | #include "powerdomain.h" |
41 | |||
42 | #include "clockdomain.h" | 38 | #include "clockdomain.h" |
43 | #include <plat/omap_hwmod.h> | 39 | #include "common.h" |
44 | #include <plat/multi.h> | 40 | #include "clock2xxx.h" |
41 | #include "clock3xxx.h" | ||
42 | #include "clock44xx.h" | ||
45 | 43 | ||
46 | /* | 44 | /* |
47 | * The machine specific code may provide the extra mapping besides the | 45 | * The machine specific code may provide the extra mapping besides the |
@@ -489,43 +487,3 @@ void __init omap_sdrc_init(struct omap_sdrc_params *sdrc_cs0, | |||
489 | _omap2_init_reprogram_sdrc(); | 487 | _omap2_init_reprogram_sdrc(); |
490 | } | 488 | } |
491 | } | 489 | } |
492 | |||
493 | /* | ||
494 | * NOTE: Please use ioremap + __raw_read/write where possible instead of these | ||
495 | */ | ||
496 | |||
497 | u8 omap_readb(u32 pa) | ||
498 | { | ||
499 | return __raw_readb(OMAP2_L4_IO_ADDRESS(pa)); | ||
500 | } | ||
501 | EXPORT_SYMBOL(omap_readb); | ||
502 | |||
503 | u16 omap_readw(u32 pa) | ||
504 | { | ||
505 | return __raw_readw(OMAP2_L4_IO_ADDRESS(pa)); | ||
506 | } | ||
507 | EXPORT_SYMBOL(omap_readw); | ||
508 | |||
509 | u32 omap_readl(u32 pa) | ||
510 | { | ||
511 | return __raw_readl(OMAP2_L4_IO_ADDRESS(pa)); | ||
512 | } | ||
513 | EXPORT_SYMBOL(omap_readl); | ||
514 | |||
515 | void omap_writeb(u8 v, u32 pa) | ||
516 | { | ||
517 | __raw_writeb(v, OMAP2_L4_IO_ADDRESS(pa)); | ||
518 | } | ||
519 | EXPORT_SYMBOL(omap_writeb); | ||
520 | |||
521 | void omap_writew(u16 v, u32 pa) | ||
522 | { | ||
523 | __raw_writew(v, OMAP2_L4_IO_ADDRESS(pa)); | ||
524 | } | ||
525 | EXPORT_SYMBOL(omap_writew); | ||
526 | |||
527 | void omap_writel(u32 v, u32 pa) | ||
528 | { | ||
529 | __raw_writel(v, OMAP2_L4_IO_ADDRESS(pa)); | ||
530 | } | ||
531 | EXPORT_SYMBOL(omap_writel); | ||