Govindraj.R | b612633 | 2010-09-27 20:20:49 +0530 | [diff] [blame] | 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> |
Felipe Balbi | d8ee4ea | 2012-09-06 15:45:20 +0300 | [diff] [blame] | 21 | #include <linux/device.h> |
Govindraj.R | 2fd1496 | 2011-11-09 17:41:21 +0530 | [diff] [blame] | 22 | #include <linux/pm_qos.h> |
Govindraj.R | b612633 | 2010-09-27 20:20:49 +0530 | [diff] [blame] | 23 | |
Jean Delvare | 1349ba0 | 2016-01-21 09:46:12 +0100 | [diff] [blame] | 24 | #define OMAP_SERIAL_DRIVER_NAME "omap_uart" |
Govindraj.R | b612633 | 2010-09-27 20:20:49 +0530 | [diff] [blame] | 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 | |
Govindraj.R | b612633 | 2010-09-27 20:20:49 +0530 | [diff] [blame] | 33 | struct omap_uart_port_info { |
| 34 | bool dma_enabled; /* To specify DMA Mode */ |
| 35 | unsigned int uartclk; /* UART clock rate */ |
Govindraj.R | b612633 | 2010-09-27 20:20:49 +0530 | [diff] [blame] | 36 | upf_t flags; /* UPF_* flags */ |
Deepak K | c86845db | 2011-11-09 17:33:38 +0530 | [diff] [blame] | 37 | unsigned int dma_rx_buf_size; |
| 38 | unsigned int dma_rx_timeout; |
| 39 | unsigned int autosuspend_timeout; |
Jon Hunter | a9e210e | 2011-11-09 17:34:49 +0530 | [diff] [blame] | 40 | unsigned int dma_rx_poll_rate; |
Govindraj.R | ec3bebc | 2011-10-11 19:11:27 +0530 | [diff] [blame] | 41 | |
| 42 | int (*get_context_loss_count)(struct device *); |
Felipe Balbi | d8ee4ea | 2012-09-06 15:45:20 +0300 | [diff] [blame] | 43 | void (*enable_wakeup)(struct device *, bool); |
Govindraj.R | b612633 | 2010-09-27 20:20:49 +0530 | [diff] [blame] | 44 | }; |
| 45 | |
Govindraj.R | b612633 | 2010-09-27 20:20:49 +0530 | [diff] [blame] | 46 | #endif /* __OMAP_SERIAL_H__ */ |