]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sh: Fix sh7264 clock speed and related serial setting
authorPhil Edworthy <PHIL.EDWORTHY@renesas.com>
Mon, 13 Feb 2012 02:03:50 +0000 (02:03 +0000)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Thu, 8 Mar 2012 01:26:32 +0000 (10:26 +0900)
The generalised calculation of the serial bit rate reg also applies
to sh7264, it was just the clock speed that was set incorrectly.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
drivers/serial/serial_sh.h
include/configs/rsk7264.h

index 4e16e4803c135b05d79097147df7b4f7a717738d..0b3e779c8e53915c7bb5a305578e36f1dff6fc2e 100644 (file)
@@ -686,8 +686,6 @@ static inline int scbrr_calc(struct uart_port port, int bps, int clk)
 #define SCBRR_VALUE(bps, clk) scbrr_calc(sh_sci, bps, clk)
 #elif defined(__H8300H__) || defined(__H8300S__)
 #define SCBRR_VALUE(bps, clk) (((clk*1000/32)/bps)-1)
-#elif defined(CONFIG_CPU_SH7264)
-#define SCBRR_VALUE(bps, clk) ((clk+16*bps)/(32*bps))
 #else /* Generic SH */
 #define SCBRR_VALUE(bps, clk) ((clk+16*bps)/(32*bps)-1)
 #endif
index c1ffc348f71289f05ce2e6f7537ecaa0942c4419..af9524e8bfca3ac2e90d8d76442ff0fb3067bf8c 100644 (file)
@@ -65,7 +65,7 @@
 #define CONFIG_ENV_SIZE                CONFIG_ENV_SECT_SIZE
 
 /* Board Clock */
-#define CONFIG_SYS_CLK_FREQ    33333333
+#define CONFIG_SYS_CLK_FREQ    36000000
 #define CMT_CLK_DIVIDER                32      /* 8 (default), 32, 128 or 512 */
 #define CONFIG_SYS_HZ          (CONFIG_SYS_CLK_FREQ / CMT_CLK_DIVIDER)