aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/tegra_uart.h
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-22 10:38:37 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-22 10:38:37 -0500
commitfcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch)
treea57612d1888735a2ec7972891b68c1ac5ec8faea /include/linux/tegra_uart.h
parent8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff)
Added missing tegra files.HEADmaster
Diffstat (limited to 'include/linux/tegra_uart.h')
-rw-r--r--include/linux/tegra_uart.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/include/linux/tegra_uart.h b/include/linux/tegra_uart.h
new file mode 100644
index 00000000000..38912ea9706
--- /dev/null
+++ b/include/linux/tegra_uart.h
@@ -0,0 +1,44 @@
1/* include/linux/tegra_uart.h
2 *
3 * Copyright (C) 2011 NVIDIA Corporation
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19
20#ifndef _TEGRA_UART_H_
21#define _TEGRA_UART_H_
22
23#include <linux/clk.h>
24
25struct uart_clk_parent {
26 const char *name;
27 struct clk *parent_clk;
28 unsigned long fixed_clk_rate;
29};
30
31struct tegra_uart_platform_data {
32 void (*wake_peer)(struct uart_port *);
33 struct uart_clk_parent *parent_clk_list;
34 int parent_clk_count;
35 bool is_loopback;
36};
37
38int tegra_uart_is_tx_empty(struct uart_port *);
39void tegra_uart_request_clock_on(struct uart_port *);
40void tegra_uart_set_mctrl(struct uart_port *, unsigned int);
41void tegra_uart_request_clock_off(struct uart_port *uport);
42
43#endif /* _TEGRA_UART_H_ */
44