]> git.karo-electronics.de Git - linux-beck.git/commit
serial: sh-sci: Correct SCIF type on RZ/A1H
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 10 Nov 2015 15:16:54 +0000 (16:16 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 17 Dec 2015 10:18:49 +0000 (11:18 +0100)
commitf443ff80d02d74be6c3930e325a6573eb06347ea
tree72b9c6f0eb4b252617ce388a48b7339aa4fcd4ec
parentbd2238fb84df6054d966364d07e0414b54ef8e19
serial: sh-sci: Correct SCIF type on RZ/A1H

The "renesas,scif" compatible value is currently used for the SCIF
variant in all Renesas SoCs of the R-Car and RZ families.  However, the
variant used in the RZ family is not the common "SH-4(A)" variant, but
the "SH-2(A) with FIFO data count register" variant, as it has the
"Serial Extension Mode Register" (SCEMR), just like on sh7203, sh7263,
sh7264, and sh7269.

Use the (already documented) SoC-specific "renesas,scif-r7s72100"
compatible value to differentiate.  The "renesas,scif" compatible value
can still be used as a common denominator for SCIF variants with the
"SH-4(A)" register layout (i.e. ignoring the SCEMR register).
Note that currently both variants are treated the same, but this may
change if support for the SCEMR register is ever added.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c