diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-09-18 02:41:39 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-09-20 22:57:54 -0400 |
commit | 8f3dc1371efb5fd5f1dc02b2a01da589f2d220a0 (patch) | |
tree | a66783a0e58d2233788546183beb57e1a15f0798 /arch/sh/boards | |
parent | c3fae6d163f4647e9390eac3f2a1201e91cd6669 (diff) |
sh: se7206: Handle non-SuperIO I/O ports.
This fixes up the port calculation logic for non-SuperIO accesses,
before these were always matching the MRSHPC base, now just make
sure the original port is handed back if it's not in the I/O port
range.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards')
-rw-r--r-- | arch/sh/boards/se/7206/io.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/boards/se/7206/io.c b/arch/sh/boards/se/7206/io.c index eb30dc2df96f..1308e618e044 100644 --- a/arch/sh/boards/se/7206/io.c +++ b/arch/sh/boards/se/7206/io.c | |||
@@ -30,6 +30,8 @@ port2adr(unsigned int port) | |||
30 | return (volatile __u16 *) (PA_MRSHPC + (port - 0x2000)); | 30 | return (volatile __u16 *) (PA_MRSHPC + (port - 0x2000)); |
31 | else if (port >= 0x300 && port < 0x310) | 31 | else if (port >= 0x300 && port < 0x310) |
32 | return (volatile __u16 *) (PA_SMSC + (port - 0x300)); | 32 | return (volatile __u16 *) (PA_SMSC + (port - 0x300)); |
33 | |||
34 | return (volatile __u16 *)port; | ||
33 | } | 35 | } |
34 | 36 | ||
35 | unsigned char se7206_inb(unsigned long port) | 37 | unsigned char se7206_inb(unsigned long port) |