diff options
author | David McKay <david.mckay@st.com> | 2009-08-24 03:10:40 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-08-24 03:10:40 -0400 |
commit | 15444a8973dcfbd286b3e638cbadac2446a9271a (patch) | |
tree | dacfad06a662291e28eb9cb6d49e37d86e33c4ca /arch/sh/kernel | |
parent | 2fc742f8d64c68b4a175a1dcb28351b112d63315 (diff) |
sh: Allow use of GENERIC_IOMAP
The synopsys PCI cell used in the later STMicro chips requires code to
be run in order to do IO cycles, rather than just memory mapping the IO
space. Rather than extending the existing SH infrastructure to allow
this, use the GENERIC_IOMAP implmentation to save re-inventing the
wheel.
This set of changes allows the SH to be built with GENERIC_IOMAP
enabled, it just ifdef's out the functions provided by the GENERIC_IOMAP
implementation, and provides a few required missing functions.
Signed-off-by: David McKay <david.mckay@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel')
-rw-r--r-- | arch/sh/kernel/io.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sh/kernel/io.c b/arch/sh/kernel/io.c index 4f85fffaa557..d0ca9684b781 100644 --- a/arch/sh/kernel/io.c +++ b/arch/sh/kernel/io.c | |||
@@ -62,6 +62,8 @@ void memset_io(volatile void __iomem *dst, int c, unsigned long count) | |||
62 | } | 62 | } |
63 | EXPORT_SYMBOL(memset_io); | 63 | EXPORT_SYMBOL(memset_io); |
64 | 64 | ||
65 | #ifndef CONFIG_GENERIC_IOMAP | ||
66 | |||
65 | void __iomem *ioport_map(unsigned long port, unsigned int nr) | 67 | void __iomem *ioport_map(unsigned long port, unsigned int nr) |
66 | { | 68 | { |
67 | void __iomem *ret; | 69 | void __iomem *ret; |
@@ -79,3 +81,5 @@ void ioport_unmap(void __iomem *addr) | |||
79 | sh_mv.mv_ioport_unmap(addr); | 81 | sh_mv.mv_ioport_unmap(addr); |
80 | } | 82 | } |
81 | EXPORT_SYMBOL(ioport_unmap); | 83 | EXPORT_SYMBOL(ioport_unmap); |
84 | |||
85 | #endif /* CONFIG_GENERIC_IOMAP */ | ||