Commit bcce9daa authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Greg Kroah-Hartman

sh: Don't set sh-sci port_reg

The driver considers all negative or zero values of the port_reg field
as invalid. The four platforms that set the field to a register address
all use an address higher than 0x7fffffff, which is thus considered by
the driver as invalid. The feature is thus never used, remove it.

The feature could be implemented properly in the future using the
pinctrl and GPIO APIs if desired.

While at it, don't set the field to SCIx_NOT_SUPPORTED (-1) either,
leaving it unset leads to the same result. This will allow removing the
SCIx_NOT_SUPPORTED macro.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9c21ac50
...@@ -109,7 +109,6 @@ static struct platform_device rtc_device = { ...@@ -109,7 +109,6 @@ static struct platform_device rtc_device = {
}; };
static struct plat_sci_port scif0_platform_data = { static struct plat_sci_port scif0_platform_data = {
.port_reg = 0xa4000136,
.type = PORT_SCI, .type = PORT_SCI,
.ops = &sh770x_sci_port_ops, .ops = &sh770x_sci_port_ops,
.regshift = 1, .regshift = 1,
...@@ -156,7 +155,6 @@ static struct platform_device scif1_device = { ...@@ -156,7 +155,6 @@ static struct platform_device scif1_device = {
#if defined(CONFIG_CPU_SUBTYPE_SH7707) || \ #if defined(CONFIG_CPU_SUBTYPE_SH7707) || \
defined(CONFIG_CPU_SUBTYPE_SH7709) defined(CONFIG_CPU_SUBTYPE_SH7709)
static struct plat_sci_port scif2_platform_data = { static struct plat_sci_port scif2_platform_data = {
.port_reg = SCIx_NOT_SUPPORTED,
.type = PORT_IRDA, .type = PORT_IRDA,
.ops = &sh770x_sci_port_ops, .ops = &sh770x_sci_port_ops,
.regshift = 1, .regshift = 1,
......
...@@ -38,7 +38,6 @@ static struct platform_device rtc_device = { ...@@ -38,7 +38,6 @@ static struct platform_device rtc_device = {
}; };
static struct plat_sci_port sci_platform_data = { static struct plat_sci_port sci_platform_data = {
.port_reg = 0xffe0001C,
.type = PORT_SCI, .type = PORT_SCI,
.regshift = 2, .regshift = 2,
}; };
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include <asm/clock.h> #include <asm/clock.h>
static struct plat_sci_port scif0_platform_data = { static struct plat_sci_port scif0_platform_data = {
.port_reg = 0xa405013e,
.scscr = SCSCR_REIE, .scscr = SCSCR_REIE,
.type = PORT_SCIF, .type = PORT_SCIF,
}; };
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
/* Serial */ /* Serial */
static struct plat_sci_port scif0_platform_data = { static struct plat_sci_port scif0_platform_data = {
.port_reg = 0xa4050160,
.scscr = SCSCR_REIE, .scscr = SCSCR_REIE,
.type = PORT_SCIF, .type = PORT_SCIF,
.regtype = SCIx_SH4_SCIF_NO_SCSPTR_REGTYPE, .regtype = SCIx_SH4_SCIF_NO_SCSPTR_REGTYPE,
...@@ -45,7 +44,6 @@ static struct platform_device scif0_device = { ...@@ -45,7 +44,6 @@ static struct platform_device scif0_device = {
}; };
static struct plat_sci_port scif1_platform_data = { static struct plat_sci_port scif1_platform_data = {
.port_reg = SCIx_NOT_SUPPORTED,
.scscr = SCSCR_REIE, .scscr = SCSCR_REIE,
.type = PORT_SCIF, .type = PORT_SCIF,
.regtype = SCIx_SH4_SCIF_NO_SCSPTR_REGTYPE, .regtype = SCIx_SH4_SCIF_NO_SCSPTR_REGTYPE,
...@@ -67,7 +65,6 @@ static struct platform_device scif1_device = { ...@@ -67,7 +65,6 @@ static struct platform_device scif1_device = {
}; };
static struct plat_sci_port scif2_platform_data = { static struct plat_sci_port scif2_platform_data = {
.port_reg = SCIx_NOT_SUPPORTED,
.scscr = SCSCR_REIE, .scscr = SCSCR_REIE,
.type = PORT_SCIF, .type = PORT_SCIF,
.regtype = SCIx_SH4_SCIF_NO_SCSPTR_REGTYPE, .regtype = SCIx_SH4_SCIF_NO_SCSPTR_REGTYPE,
...@@ -89,7 +86,6 @@ static struct platform_device scif2_device = { ...@@ -89,7 +86,6 @@ static struct platform_device scif2_device = {
}; };
static struct plat_sci_port scif3_platform_data = { static struct plat_sci_port scif3_platform_data = {
.port_reg = SCIx_NOT_SUPPORTED,
.scscr = SCSCR_REIE, .scscr = SCSCR_REIE,
.sampling_rate = 8, .sampling_rate = 8,
.type = PORT_SCIFA, .type = PORT_SCIFA,
...@@ -111,7 +107,6 @@ static struct platform_device scif3_device = { ...@@ -111,7 +107,6 @@ static struct platform_device scif3_device = {
}; };
static struct plat_sci_port scif4_platform_data = { static struct plat_sci_port scif4_platform_data = {
.port_reg = SCIx_NOT_SUPPORTED,
.scscr = SCSCR_REIE, .scscr = SCSCR_REIE,
.sampling_rate = 8, .sampling_rate = 8,
.type = PORT_SCIFA, .type = PORT_SCIFA,
...@@ -133,7 +128,6 @@ static struct platform_device scif4_device = { ...@@ -133,7 +128,6 @@ static struct platform_device scif4_device = {
}; };
static struct plat_sci_port scif5_platform_data = { static struct plat_sci_port scif5_platform_data = {
.port_reg = SCIx_NOT_SUPPORTED,
.scscr = SCSCR_REIE, .scscr = SCSCR_REIE,
.sampling_rate = 8, .sampling_rate = 8,
.type = PORT_SCIFA, .type = PORT_SCIFA,
......
...@@ -290,7 +290,6 @@ static struct platform_device dma1_device = { ...@@ -290,7 +290,6 @@ static struct platform_device dma1_device = {
/* Serial */ /* Serial */
static struct plat_sci_port scif0_platform_data = { static struct plat_sci_port scif0_platform_data = {
.port_reg = SCIx_NOT_SUPPORTED,
.scscr = SCSCR_REIE, .scscr = SCSCR_REIE,
.type = PORT_SCIF, .type = PORT_SCIF,
.regtype = SCIx_SH4_SCIF_NO_SCSPTR_REGTYPE, .regtype = SCIx_SH4_SCIF_NO_SCSPTR_REGTYPE,
...@@ -312,7 +311,6 @@ static struct platform_device scif0_device = { ...@@ -312,7 +311,6 @@ static struct platform_device scif0_device = {
}; };
static struct plat_sci_port scif1_platform_data = { static struct plat_sci_port scif1_platform_data = {
.port_reg = SCIx_NOT_SUPPORTED,
.scscr = SCSCR_REIE, .scscr = SCSCR_REIE,
.type = PORT_SCIF, .type = PORT_SCIF,
.regtype = SCIx_SH4_SCIF_NO_SCSPTR_REGTYPE, .regtype = SCIx_SH4_SCIF_NO_SCSPTR_REGTYPE,
...@@ -334,7 +332,6 @@ static struct platform_device scif1_device = { ...@@ -334,7 +332,6 @@ static struct platform_device scif1_device = {
}; };
static struct plat_sci_port scif2_platform_data = { static struct plat_sci_port scif2_platform_data = {
.port_reg = SCIx_NOT_SUPPORTED,
.scscr = SCSCR_REIE, .scscr = SCSCR_REIE,
.type = PORT_SCIF, .type = PORT_SCIF,
.regtype = SCIx_SH4_SCIF_NO_SCSPTR_REGTYPE, .regtype = SCIx_SH4_SCIF_NO_SCSPTR_REGTYPE,
...@@ -356,7 +353,6 @@ static struct platform_device scif2_device = { ...@@ -356,7 +353,6 @@ static struct platform_device scif2_device = {
}; };
static struct plat_sci_port scif3_platform_data = { static struct plat_sci_port scif3_platform_data = {
.port_reg = SCIx_NOT_SUPPORTED,
.sampling_rate = 8, .sampling_rate = 8,
.type = PORT_SCIFA, .type = PORT_SCIFA,
}; };
...@@ -377,7 +373,6 @@ static struct platform_device scif3_device = { ...@@ -377,7 +373,6 @@ static struct platform_device scif3_device = {
}; };
static struct plat_sci_port scif4_platform_data = { static struct plat_sci_port scif4_platform_data = {
.port_reg = SCIx_NOT_SUPPORTED,
.sampling_rate = 8, .sampling_rate = 8,
.type = PORT_SCIFA, .type = PORT_SCIFA,
}; };
...@@ -398,7 +393,6 @@ static struct platform_device scif4_device = { ...@@ -398,7 +393,6 @@ static struct platform_device scif4_device = {
}; };
static struct plat_sci_port scif5_platform_data = { static struct plat_sci_port scif5_platform_data = {
.port_reg = SCIx_NOT_SUPPORTED,
.sampling_rate = 8, .sampling_rate = 8,
.type = PORT_SCIFA, .type = PORT_SCIFA,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment