summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/sirfsoc_uart.h
diff options
context:
space:
mode:
authorBarry Song <Baohua.Song@csr.com>2013-01-16 14:49:27 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-17 17:18:55 -0800
commitac4ce718893c546f7a2d34ab55a8f75842399f86 (patch)
treed858a4fa3c2b9dca0e383324b00cfad96aebc893 /drivers/tty/serial/sirfsoc_uart.h
parente27a7d7977b07d701ba247e2ddb95466d95c898f (diff)
downloadop-kernel-dev-ac4ce718893c546f7a2d34ab55a8f75842399f86.zip
op-kernel-dev-ac4ce718893c546f7a2d34ab55a8f75842399f86.tar.gz
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>
Diffstat (limited to 'drivers/tty/serial/sirfsoc_uart.h')
-rw-r--r--drivers/tty/serial/sirfsoc_uart.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/sirfsoc_uart.h b/drivers/tty/serial/sirfsoc_uart.h
index 6431640..85328ba 100644
--- a/drivers/tty/serial/sirfsoc_uart.h
+++ b/drivers/tty/serial/sirfsoc_uart.h
@@ -163,6 +163,7 @@ struct sirfsoc_uart_port {
struct uart_port port;
struct pinctrl *p;
+ struct clk *clk;
};
/* Hardware Flow Control */
OpenPOWER on IntegriCloud