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

sh: Don't set the sh-sci platform data scscr CKE0 bit

The bit is only set by platforms that also set the CKE1 but, in which
case its value is ignored by the device. Don't set it, this simplifies
platform data and only leaves the CKE1 bit to be handled.
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 bcce9daa
...@@ -70,7 +70,7 @@ static DECLARE_INTC_DESC(intc_desc, "sh7705", vectors, NULL, ...@@ -70,7 +70,7 @@ static DECLARE_INTC_DESC(intc_desc, "sh7705", vectors, NULL,
NULL, prio_registers, NULL); NULL, prio_registers, NULL);
static struct plat_sci_port scif0_platform_data = { static struct plat_sci_port scif0_platform_data = {
.scscr = SCSCR_CKE1 | SCSCR_CKE0, .scscr = SCSCR_CKE1,
.type = PORT_SCIF, .type = PORT_SCIF,
.ops = &sh770x_sci_port_ops, .ops = &sh770x_sci_port_ops,
.regtype = SCIx_SH7705_SCIF_REGTYPE, .regtype = SCIx_SH7705_SCIF_REGTYPE,
......
...@@ -98,7 +98,7 @@ static struct platform_device rtc_device = { ...@@ -98,7 +98,7 @@ static struct platform_device rtc_device = {
}; };
static struct plat_sci_port scif0_platform_data = { static struct plat_sci_port scif0_platform_data = {
.scscr = SCSCR_REIE | SCSCR_CKE1 | SCSCR_CKE0, .scscr = SCSCR_REIE | SCSCR_CKE1,
.type = PORT_SCIF, .type = PORT_SCIF,
}; };
...@@ -118,7 +118,7 @@ static struct platform_device scif0_device = { ...@@ -118,7 +118,7 @@ static struct platform_device scif0_device = {
}; };
static struct plat_sci_port scif1_platform_data = { static struct plat_sci_port scif1_platform_data = {
.scscr = SCSCR_REIE | SCSCR_CKE1 | SCSCR_CKE0, .scscr = SCSCR_REIE | SCSCR_CKE1,
.type = PORT_SCIF, .type = PORT_SCIF,
}; };
......
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