serial: sirf: only use lookup table to set baudrate when ioclk=150MHz
The fast lookup table to set baudrate is only right when ioclk is 150MHz. for most platforms, ioclk is 150MHz, but some boards might set ioclk to other frequency. so re-calc the clk_div_reg when ioclk is not 150MHz. this patch also gets clk in probe and puts it in remove. Signed-off-by: Barry Song <Baohua.Song@csr.com> Cc: Russell King <linux@arm.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
e27a7d7977
commit
ac4ce71889
@@ -163,6 +163,7 @@ struct sirfsoc_uart_port {
|
||||
|
||||
struct uart_port port;
|
||||
struct pinctrl *p;
|
||||
struct clk *clk;
|
||||
};
|
||||
|
||||
/* Hardware Flow Control */
|
||||
|
Reference in New Issue
Block a user