mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-26 03:00:19 +02:00
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 <andy@openmoko.com>
This commit is contained in:
parent
c8d5147d6f
commit
2c16e47344
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
void serial_init_115200_s3c24xx(const int uart, const int pclk_MHz)
|
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)
|
switch(uart)
|
||||||
{
|
{
|
||||||
case UART0:
|
case UART0:
|
||||||
|
Loading…
Reference in New Issue
Block a user