diff options
author | Dan Williams <dan.j.williams@intel.com> | 2007-02-13 11:11:04 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-02-14 10:21:21 -0500 |
commit | 6df26700c0884cb3cce2b9fa4795888f86ca4d8f (patch) | |
tree | 30444218ed615b3eb0569d8602be3e522a2d8895 /include/asm-arm/arch-iop33x/io.h | |
parent | ae0a846e411dc0b568e8ccda584896310ee5f369 (diff) |
[ARM] 4182/1: iop3xx: fix the ioremap implementation to not remap static ranges
Implement a custom ioremap implementation for iop3xx. This saves
establishing new mappings. It also cleans up the PCI IO resource to be a
physical address rather than a virtual address as Russell pointed out on
the original iop13xx port.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/arch-iop33x/io.h')
-rw-r--r-- | include/asm-arm/arch-iop33x/io.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/asm-arm/arch-iop33x/io.h b/include/asm-arm/arch-iop33x/io.h index c017402bab96..1bb5071e1fa8 100644 --- a/include/asm-arm/arch-iop33x/io.h +++ b/include/asm-arm/arch-iop33x/io.h | |||
@@ -13,9 +13,16 @@ | |||
13 | 13 | ||
14 | #include <asm/hardware.h> | 14 | #include <asm/hardware.h> |
15 | 15 | ||
16 | extern void __iomem * __ioremap(unsigned long, size_t, unsigned long); | ||
17 | extern void __iomem *__iop3xx_ioremap(unsigned long cookie, size_t size, | ||
18 | unsigned long flags); | ||
19 | extern void __iop3xx_iounmap(void __iomem *addr); | ||
20 | |||
16 | #define IO_SPACE_LIMIT 0xffffffff | 21 | #define IO_SPACE_LIMIT 0xffffffff |
17 | #define __io(p) ((void __iomem *)(p)) | 22 | #define __io(p) ((void __iomem *)IOP3XX_PCI_IO_PHYS_TO_VIRT(p)) |
18 | #define __mem_pci(a) (a) | 23 | #define __mem_pci(a) (a) |
19 | 24 | ||
25 | #define __arch_ioremap(a, s, f) __iop3xx_ioremap(a, s, f) | ||
26 | #define __arch_iounmap(a) __iop3xx_iounmap(a) | ||
20 | 27 | ||
21 | #endif | 28 | #endif |