diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2011-06-21 16:08:08 +0530 |
---|---|---|
committer | Niket Sirsi <nsirsi@nvidia.com> | 2011-06-23 23:16:04 -0700 |
commit | 03bd2760d2ee22b8905f929630e9aaa41018594a (patch) | |
tree | e5c1b8c159ef3a7f9a5e473d2fccb8b76ec8ba46 /include | |
parent | 14af0fbc52f067347da0b649f688bb5cebf7fd85 (diff) |
serial: tegra: Support for best clock source
Finding the best clock source for uart controller which can
generate the clock rate having minimum error between requested
baudrate and configured baudrate.
bug 837140
bug 836059
Change-Id: I4e751b238612a21d894ee8e6611886ab6e832a36
Reviewed-on: http://git-master/r/37635
Tested-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/tegra_uart.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/tegra_uart.h b/include/linux/tegra_uart.h index 435b4198e4be..3d35e217cbca 100644 --- a/include/linux/tegra_uart.h +++ b/include/linux/tegra_uart.h @@ -20,8 +20,18 @@ #ifndef _TEGRA_UART_H_ #define _TEGRA_UART_H_ +#include <linux/clk.h> + +struct uart_clk_parent { + const char *name; + struct clk *parent_clk; + unsigned long fixed_clk_rate; +}; + struct tegra_uart_platform_data { void (*wake_peer)(struct uart_port *); + struct uart_clk_parent *parent_clk_list; + int parent_clk_count; }; int tegra_uart_is_tx_empty(struct uart_port *); |