From 2c16e47344b92eaa786d08a9b5412c0bc3afb124 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 28 Nov 2008 10:16:39 +0000 Subject: [PATCH] qi-fix-baud-for-200MHz-1-3-6.patch Baud rate for 115200 at 33MHz PCLK wasn't calculated right Signed-off-by: Andy Green --- qiboot/src/drivers/serial-s3c24xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qiboot/src/drivers/serial-s3c24xx.c b/qiboot/src/drivers/serial-s3c24xx.c index 206f0a1..0f4ba22 100644 --- a/qiboot/src/drivers/serial-s3c24xx.c +++ b/qiboot/src/drivers/serial-s3c24xx.c @@ -25,7 +25,7 @@ void serial_init_115200_s3c24xx(const int uart, const int pclk_MHz) { - int div = (((54 * pclk_MHz) + (pclk_MHz / 2)) / 100) -1; + int div = (((54 * pclk_MHz) + 26) / 100) -1; switch(uart) { case UART0: