Commit | Line | Data |
---|---|---|
b612633b G |
1 | /* |
2 | * Driver for OMAP-UART controller. | |
3 | * Based on drivers/serial/8250.c | |
4 | * | |
5 | * Copyright (C) 2010 Texas Instruments. | |
6 | * | |
7 | * Authors: | |
8 | * Govindraj R <govindraj.raja@ti.com> | |
9 | * Thara Gopinath <thara@ti.com> | |
10 | * | |
11 | * This program is free software; you can redistribute it and/or modify | |
12 | * it under the terms of the GNU General Public License as published by | |
13 | * the Free Software Foundation; either version 2 of the License, or | |
14 | * (at your option) any later version. | |
15 | */ | |
16 | ||
17 | #ifndef __OMAP_SERIAL_H__ | |
18 | #define __OMAP_SERIAL_H__ | |
19 | ||
20 | #include <linux/serial_core.h> | |
d8ee4ea6 | 21 | #include <linux/device.h> |
2fd14964 | 22 | #include <linux/pm_qos.h> |
b612633b | 23 | |
374b8cfd | 24 | #define DRIVER_NAME "omap_uart" |
b612633b G |
25 | |
26 | /* | |
27 | * Use tty device name as ttyO, [O -> OMAP] | |
28 | * in bootargs we specify as console=ttyO0 if uart1 | |
29 | * is used as console uart. | |
30 | */ | |
31 | #define OMAP_SERIAL_NAME "ttyO" | |
32 | ||
b612633b G |
33 | struct omap_uart_port_info { |
34 | bool dma_enabled; /* To specify DMA Mode */ | |
35 | unsigned int uartclk; /* UART clock rate */ | |
b612633b | 36 | upf_t flags; /* UPF_* flags */ |
c86845db D |
37 | unsigned int dma_rx_buf_size; |
38 | unsigned int dma_rx_timeout; | |
39 | unsigned int autosuspend_timeout; | |
a9e210e0 | 40 | unsigned int dma_rx_poll_rate; |
9574f36f N |
41 | int DTR_gpio; |
42 | int DTR_inverted; | |
43 | int DTR_present; | |
ec3bebc6 G |
44 | |
45 | int (*get_context_loss_count)(struct device *); | |
d8ee4ea6 | 46 | void (*enable_wakeup)(struct device *, bool); |
b612633b G |
47 | }; |
48 | ||
b612633b | 49 | #endif /* __OMAP_SERIAL_H__ */ |