sh: Allow use of GENERIC_IOMAP
authorDavid McKay <david.mckay@st.com>
Mon, 24 Aug 2009 07:10:40 +0000 (16:10 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 24 Aug 2009 07:10:40 +0000 (16:10 +0900)
commit15444a8973dcfbd286b3e638cbadac2446a9271a
treedacfad06a662291e28eb9cb6d49e37d86e33c4ca
parent2fc742f8d64c68b4a175a1dcb28351b112d63315
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>
arch/sh/drivers/pci/pci.c
arch/sh/include/asm/io.h
arch/sh/kernel/io.c