Skip to content

Commit

Permalink
sh: se7206: Handle non-SuperIO I/O ports.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Sep 21, 2007
1 parent c3fae6d commit 8f3dc13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/sh/boards/se/7206/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ port2adr(unsigned int port)
return (volatile __u16 *) (PA_MRSHPC + (port - 0x2000));
else if (port >= 0x300 && port < 0x310)
return (volatile __u16 *) (PA_SMSC + (port - 0x300));

return (volatile __u16 *)port;
}

unsigned char se7206_inb(unsigned long port)
Expand Down

0 comments on commit 8f3dc13

Please sign in to comment.