]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sh: sh7734: Correct SCIF type for BRG
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 10 Nov 2015 17:59:28 +0000 (18:59 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 17 Dec 2015 10:19:08 +0000 (11:19 +0100)
The SCIF variant in the sh7734 SoC is not the common "SH-4(A)" variant,
but a derivative with added "Baud Rate Generator for External Clock"
(BRG). Correct the regtype value in platform data to fix this.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/sh/kernel/cpu/sh4a/setup-sh7734.c

index f617bcb734dfeb76a507965c58dad6c3211a3ef2..69b8a50310d9a23f5727aeebe7197aa66bad2cdc 100644 (file)
@@ -28,7 +28,7 @@ static struct plat_sci_port scif0_platform_data = {
        .flags          = UPF_BOOT_AUTOCONF,
        .scscr          = SCSCR_RE | SCSCR_TE | SCSCR_REIE,
        .type           = PORT_SCIF,
-       .regtype        = SCIx_SH4_SCIF_REGTYPE,
+       .regtype        = SCIx_SH4_SCIF_BRG_REGTYPE,
 };
 
 static struct resource scif0_resources[] = {
@@ -50,7 +50,7 @@ static struct plat_sci_port scif1_platform_data = {
        .flags          = UPF_BOOT_AUTOCONF,
        .scscr          = SCSCR_RE | SCSCR_TE | SCSCR_REIE,
        .type           = PORT_SCIF,
-       .regtype        = SCIx_SH4_SCIF_REGTYPE,
+       .regtype        = SCIx_SH4_SCIF_BRG_REGTYPE,
 };
 
 static struct resource scif1_resources[] = {
@@ -72,7 +72,7 @@ static struct plat_sci_port scif2_platform_data = {
        .flags          = UPF_BOOT_AUTOCONF,
        .scscr          = SCSCR_RE | SCSCR_TE | SCSCR_REIE,
        .type           = PORT_SCIF,
-       .regtype        = SCIx_SH4_SCIF_REGTYPE,
+       .regtype        = SCIx_SH4_SCIF_BRG_REGTYPE,
 };
 
 static struct resource scif2_resources[] = {
@@ -94,7 +94,7 @@ static struct plat_sci_port scif3_platform_data = {
        .flags          = UPF_BOOT_AUTOCONF,
        .scscr          = SCSCR_RE | SCSCR_TE | SCSCR_REIE | SCSCR_TOIE,
        .type           = PORT_SCIF,
-       .regtype        = SCIx_SH4_SCIF_REGTYPE,
+       .regtype        = SCIx_SH4_SCIF_BRG_REGTYPE,
 };
 
 static struct resource scif3_resources[] = {
@@ -116,7 +116,7 @@ static struct plat_sci_port scif4_platform_data = {
        .flags          = UPF_BOOT_AUTOCONF,
        .scscr          = SCSCR_RE | SCSCR_TE | SCSCR_REIE,
        .type           = PORT_SCIF,
-       .regtype        = SCIx_SH4_SCIF_REGTYPE,
+       .regtype        = SCIx_SH4_SCIF_BRG_REGTYPE,
 };
 
 static struct resource scif4_resources[] = {
@@ -138,7 +138,7 @@ static struct plat_sci_port scif5_platform_data = {
        .flags          = UPF_BOOT_AUTOCONF,
        .scscr          = SCSCR_RE | SCSCR_TE | SCSCR_REIE,
        .type           = PORT_SCIF,
-       .regtype                = SCIx_SH4_SCIF_REGTYPE,
+       .regtype        = SCIx_SH4_SCIF_BRG_REGTYPE,
 };
 
 static struct resource scif5_resources[] = {