uart_clk on Rt3352F is always 40MHz
authorJohn Crispin <john@openwrt.org>
Tue, 24 Jul 2012 20:37:50 +0000 (20:37 +0000)
committerJohn Crispin <john@openwrt.org>
Tue, 24 Jul 2012 20:37:50 +0000 (20:37 +0000)
Currently, sys_clk/10 is used which is just wrong.
cpu_clk/10 would work for systems with 400MHz CPU clock.

Signed-off-by: Daniel Golle <dgolle@allnet.de>
SVN-Revision: 32812

target/linux/ramips/files/arch/mips/ralink/rt305x/clock.c

index 4a99cf39e2b08bb0dff5a192117110423cb68ced..958547611b24f3f41d90128398781b6379b2bae8 100644 (file)
@@ -60,7 +60,7 @@ void __init rt305x_clocks_init(void)
                        break;
                }
                rt305x_sys_clk.rate = rt305x_cpu_clk.rate / 3;
-               rt305x_uart_clk.rate = rt305x_sys_clk.rate / 10;
+               rt305x_uart_clk.rate = 40000000;
                rt305x_wdt_clk.rate = rt305x_sys_clk.rate;
        } else {
                BUG();