serial: sh-sci: Consolidate RXD pin handling.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 8 Jun 2011 09:51:32 +0000 (18:51 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 8 Jun 2011 09:51:32 +0000 (18:51 +0900)
commit514820eb982eb85677ed2ecef9710e90e24fbdab
tree656eb4a0d96ec3e6ac843109cccec862bfcc988e
parentdebf9507166eede1e676d27d3298cdfb27399cb4
serial: sh-sci: Consolidate RXD pin handling.

Non-SCI parts do not have the special port reg necessary for cases where
the RX and SCI pins are muxed and need to be manually polled, so these
like always fall back on the normal FIFO processing paths. SH7760 is in a
class in and of itself with regards to mapping its SIM card interface via
the SCI port class despite not having any of the RXD lines wired up and
so implicitly behaving more like a SCIF in this regard. Out of the other
CPUs, some support the port check via the same block while others do it
through an external SuperI/O, so it's not even possible to perform the
check relative to the ioremapped cookie offset, so the separate read
semantics are preserved here, too.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/sh3/setup-sh770x.c
arch/sh/kernel/cpu/sh4/setup-sh7750.c
drivers/tty/serial/sh-sci.c
drivers/tty/serial/sh-sci.h
include/linux/serial_sci.h