Thomas Gleixner | 2874c5f | 2019-05-27 08:55:01 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Govindraj.R | b612633 | 2010-09-27 20:20:49 +0530 | [diff] [blame] | 2 | /* |
| 3 | * Driver for OMAP-UART controller. |
| 4 | * Based on drivers/serial/8250.c |
| 5 | * |
| 6 | * Copyright (C) 2010 Texas Instruments. |
| 7 | * |
| 8 | * Authors: |
| 9 | * Govindraj R <govindraj.raja@ti.com> |
| 10 | * Thara Gopinath <thara@ti.com> |
Govindraj.R | b612633 | 2010-09-27 20:20:49 +0530 | [diff] [blame] | 11 | */ |
| 12 | |
| 13 | #ifndef __OMAP_SERIAL_H__ |
| 14 | #define __OMAP_SERIAL_H__ |
| 15 | |
| 16 | #include <linux/serial_core.h> |
Felipe Balbi | d8ee4ea | 2012-09-06 15:45:20 +0300 | [diff] [blame] | 17 | #include <linux/device.h> |
Govindraj.R | 2fd1496 | 2011-11-09 17:41:21 +0530 | [diff] [blame] | 18 | #include <linux/pm_qos.h> |
Govindraj.R | b612633 | 2010-09-27 20:20:49 +0530 | [diff] [blame] | 19 | |
Jean Delvare | 1349ba0 | 2016-01-21 09:46:12 +0100 | [diff] [blame] | 20 | #define OMAP_SERIAL_DRIVER_NAME "omap_uart" |
Govindraj.R | b612633 | 2010-09-27 20:20:49 +0530 | [diff] [blame] | 21 | |
| 22 | /* |
| 23 | * Use tty device name as ttyO, [O -> OMAP] |
| 24 | * in bootargs we specify as console=ttyO0 if uart1 |
| 25 | * is used as console uart. |
| 26 | */ |
| 27 | #define OMAP_SERIAL_NAME "ttyO" |
| 28 | |
Govindraj.R | b612633 | 2010-09-27 20:20:49 +0530 | [diff] [blame] | 29 | struct omap_uart_port_info { |
| 30 | bool dma_enabled; /* To specify DMA Mode */ |
| 31 | unsigned int uartclk; /* UART clock rate */ |
Govindraj.R | b612633 | 2010-09-27 20:20:49 +0530 | [diff] [blame] | 32 | upf_t flags; /* UPF_* flags */ |
Deepak K | c86845db | 2011-11-09 17:33:38 +0530 | [diff] [blame] | 33 | unsigned int dma_rx_buf_size; |
| 34 | unsigned int dma_rx_timeout; |
| 35 | unsigned int autosuspend_timeout; |
Jon Hunter | a9e210e | 2011-11-09 17:34:49 +0530 | [diff] [blame] | 36 | unsigned int dma_rx_poll_rate; |
Govindraj.R | ec3bebc | 2011-10-11 19:11:27 +0530 | [diff] [blame] | 37 | |
| 38 | int (*get_context_loss_count)(struct device *); |
Felipe Balbi | d8ee4ea | 2012-09-06 15:45:20 +0300 | [diff] [blame] | 39 | void (*enable_wakeup)(struct device *, bool); |
Govindraj.R | b612633 | 2010-09-27 20:20:49 +0530 | [diff] [blame] | 40 | }; |
| 41 | |
Govindraj.R | b612633 | 2010-09-27 20:20:49 +0530 | [diff] [blame] | 42 | #endif /* __OMAP_SERIAL_H__ */ |