diff options
author | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 02:16:42 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 02:16:42 -0400 |
commit | d7cdc9e8ac82c43fdcd4fde6b5b53d2dcba7f707 (patch) | |
tree | 2489b1831a1b5818af0927e4d3c8933bf7d05f31 /arch/sh/boards/renesas | |
parent | 26ff6c11ef38e08990c1e417c299246e6ab18ff7 (diff) |
sh: ioremap() overhaul.
ioremap() overhaul. Add support for transparent PMB mapping, get rid of
p3_ioremap(), etc. Also drop ioremap() and iounmap() routines from the
machvec, as everyone can use the generic ioremap() API instead. For PCI
memory apertures and other special cases, use the pci_iomap() API, as
boards are already required to get the mapping right there.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards/renesas')
-rw-r--r-- | arch/sh/boards/renesas/hs7751rvoip/io.c | 9 | ||||
-rw-r--r-- | arch/sh/boards/renesas/hs7751rvoip/setup.c | 1 | ||||
-rw-r--r-- | arch/sh/boards/renesas/rts7751r2d/io.c | 9 | ||||
-rw-r--r-- | arch/sh/boards/renesas/rts7751r2d/mach.c | 2 |
4 files changed, 0 insertions, 21 deletions
diff --git a/arch/sh/boards/renesas/hs7751rvoip/io.c b/arch/sh/boards/renesas/hs7751rvoip/io.c index 09fb77ffb835..edecf107fc13 100644 --- a/arch/sh/boards/renesas/hs7751rvoip/io.c +++ b/arch/sh/boards/renesas/hs7751rvoip/io.c | |||
@@ -294,15 +294,6 @@ void hs7751rvoip_outsl(unsigned long port, const void *addr, unsigned long count | |||
294 | maybebadio(outsl, port); | 294 | maybebadio(outsl, port); |
295 | } | 295 | } |
296 | 296 | ||
297 | void *hs7751rvoip_ioremap(unsigned long offset, unsigned long size) | ||
298 | { | ||
299 | if (offset >= 0xfd000000) | ||
300 | return (void *)offset; | ||
301 | else | ||
302 | return (void *)P2SEGADDR(offset); | ||
303 | } | ||
304 | EXPORT_SYMBOL(hs7751rvoip_ioremap); | ||
305 | |||
306 | unsigned long hs7751rvoip_isa_port2addr(unsigned long offset) | 297 | unsigned long hs7751rvoip_isa_port2addr(unsigned long offset) |
307 | { | 298 | { |
308 | return port2adr(offset); | 299 | return port2adr(offset); |
diff --git a/arch/sh/boards/renesas/hs7751rvoip/setup.c b/arch/sh/boards/renesas/hs7751rvoip/setup.c index 813fc4d5862a..aa51bda931f6 100644 --- a/arch/sh/boards/renesas/hs7751rvoip/setup.c +++ b/arch/sh/boards/renesas/hs7751rvoip/setup.c | |||
@@ -60,7 +60,6 @@ struct sh_machine_vector mv_hs7751rvoip __initmv = { | |||
60 | .mv_outsw = hs7751rvoip_outsw, | 60 | .mv_outsw = hs7751rvoip_outsw, |
61 | .mv_outsl = hs7751rvoip_outsl, | 61 | .mv_outsl = hs7751rvoip_outsl, |
62 | 62 | ||
63 | .mv_ioremap = hs7751rvoip_ioremap, | ||
64 | .mv_isa_port2addr = hs7751rvoip_isa_port2addr, | 63 | .mv_isa_port2addr = hs7751rvoip_isa_port2addr, |
65 | .mv_init_irq = hs7751rvoip_init_irq, | 64 | .mv_init_irq = hs7751rvoip_init_irq, |
66 | }; | 65 | }; |
diff --git a/arch/sh/boards/renesas/rts7751r2d/io.c b/arch/sh/boards/renesas/rts7751r2d/io.c index 9e7fa726a86d..8dc2a2e2e5df 100644 --- a/arch/sh/boards/renesas/rts7751r2d/io.c +++ b/arch/sh/boards/renesas/rts7751r2d/io.c | |||
@@ -321,15 +321,6 @@ void rts7751r2d_outsl(unsigned long port, const void *addr, unsigned long count) | |||
321 | maybebadio(port); | 321 | maybebadio(port); |
322 | } | 322 | } |
323 | 323 | ||
324 | void *rts7751r2d_ioremap(unsigned long offset, unsigned long size) | ||
325 | { | ||
326 | if (offset >= 0xfd000000) | ||
327 | return (void *)offset; | ||
328 | else | ||
329 | return (void *)P2SEGADDR(offset); | ||
330 | } | ||
331 | EXPORT_SYMBOL(rts7751r2d_ioremap); | ||
332 | |||
333 | unsigned long rts7751r2d_isa_port2addr(unsigned long offset) | 324 | unsigned long rts7751r2d_isa_port2addr(unsigned long offset) |
334 | { | 325 | { |
335 | return port2adr(offset); | 326 | return port2adr(offset); |
diff --git a/arch/sh/boards/renesas/rts7751r2d/mach.c b/arch/sh/boards/renesas/rts7751r2d/mach.c index 175a93d726e8..fe3e8735e9f8 100644 --- a/arch/sh/boards/renesas/rts7751r2d/mach.c +++ b/arch/sh/boards/renesas/rts7751r2d/mach.c | |||
@@ -19,7 +19,6 @@ | |||
19 | 19 | ||
20 | extern void heartbeat_rts7751r2d(void); | 20 | extern void heartbeat_rts7751r2d(void); |
21 | extern void init_rts7751r2d_IRQ(void); | 21 | extern void init_rts7751r2d_IRQ(void); |
22 | extern void *rts7751r2d_ioremap(unsigned long, unsigned long); | ||
23 | extern int rts7751r2d_irq_demux(int irq); | 22 | extern int rts7751r2d_irq_demux(int irq); |
24 | 23 | ||
25 | extern void *voyagergx_consistent_alloc(struct device *, size_t, dma_addr_t *, gfp_t); | 24 | extern void *voyagergx_consistent_alloc(struct device *, size_t, dma_addr_t *, gfp_t); |
@@ -53,7 +52,6 @@ struct sh_machine_vector mv_rts7751r2d __initmv = { | |||
53 | .mv_outsw = rts7751r2d_outsw, | 52 | .mv_outsw = rts7751r2d_outsw, |
54 | .mv_outsl = rts7751r2d_outsl, | 53 | .mv_outsl = rts7751r2d_outsl, |
55 | 54 | ||
56 | .mv_ioremap = rts7751r2d_ioremap, | ||
57 | .mv_init_irq = init_rts7751r2d_IRQ, | 55 | .mv_init_irq = init_rts7751r2d_IRQ, |
58 | #ifdef CONFIG_HEARTBEAT | 56 | #ifdef CONFIG_HEARTBEAT |
59 | .mv_heartbeat = heartbeat_rts7751r2d, | 57 | .mv_heartbeat = heartbeat_rts7751r2d, |