U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 1/4] serial: sh: Change The definition of clock of SCIF
@ 2013-09-30  1:30 Nobuhiro Iwamatsu
  2013-09-30  1:30 ` [U-Boot] [PATCH v2 2/4] sh: boards: Change clock definition of SCIF and TMU Nobuhiro Iwamatsu
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Nobuhiro Iwamatsu @ 2013-09-30  1:30 UTC (permalink / raw)
  To: u-boot

The former SH/SCIF driver had calculated baudrate based on CONFIG_SYS_CLK_FREQ.
The newest SH/SCIF needs calculation of the clock for SCIF.
This patch defines clock CONFIG_SH_SCIF_CLK_FREQ for SCIF and changes it to
CONFIG_SH_SCIF_CLK_FREQ from CONFIG_SYS_CLK_FREQ.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
CC: Albert Aribaud <albert.u.boot@aribaud.net>
---
 v2: no changes.
     re-send as further series.

 drivers/serial/serial_sh.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/serial/serial_sh.c b/drivers/serial/serial_sh.c
index ff2cdc5..67cc0dc 100644
--- a/drivers/serial/serial_sh.c
+++ b/drivers/serial/serial_sh.c
@@ -48,7 +48,9 @@ static struct uart_port sh_sci = {
 static void sh_serial_setbrg(void)
 {
 	DECLARE_GLOBAL_DATA_PTR;
-	sci_out(&sh_sci, SCBRR, SCBRR_VALUE(gd->baudrate, CONFIG_SYS_CLK_FREQ));
+
+	sci_out(&sh_sci, SCBRR,
+		SCBRR_VALUE(gd->baudrate, CONFIG_SH_SCIF_CLK_FREQ));
 }
 
 static int sh_serial_init(void)
-- 
1.8.4.rc3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-10-24  1:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-30  1:30 [U-Boot] [PATCH v2 1/4] serial: sh: Change The definition of clock of SCIF Nobuhiro Iwamatsu
2013-09-30  1:30 ` [U-Boot] [PATCH v2 2/4] sh: boards: Change clock definition of SCIF and TMU Nobuhiro Iwamatsu
2013-09-30  1:30 ` [U-Boot] [PATCH v2 3/4] arm: rmobile: kzm9g: Change clock definition of SCIF from CONFIG_SYS_CLK_FREQ to CONFIG_SH_SCIF_CLK_FREQ Nobuhiro Iwamatsu
2013-10-24  1:21   ` [U-Boot] [U-Boot, v2, " Tom Rini
2013-09-30  1:30 ` [U-Boot] [PATCH v2 4/4] arm: rmobile: armadillo-800eva: Change clock definition of SCIF and TMU Nobuhiro Iwamatsu
2013-10-24  1:21   ` [U-Boot] [U-Boot, v2, " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox