2019-05-27 14:55:01 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2010-09-27 22:50:49 +08:00
|
|
|
/*
|
|
|
|
* Driver for OMAP-UART controller.
|
|
|
|
* Based on drivers/serial/8250.c
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010 Texas Instruments.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Govindraj R <govindraj.raja@ti.com>
|
|
|
|
* Thara Gopinath <thara@ti.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __OMAP_SERIAL_H__
|
|
|
|
#define __OMAP_SERIAL_H__
|
|
|
|
|
|
|
|
#include <linux/serial_core.h>
|
2012-09-06 20:45:20 +08:00
|
|
|
#include <linux/device.h>
|
2011-11-09 20:11:21 +08:00
|
|
|
#include <linux/pm_qos.h>
|
2010-09-27 22:50:49 +08:00
|
|
|
|
2016-01-21 16:46:12 +08:00
|
|
|
#define OMAP_SERIAL_DRIVER_NAME "omap_uart"
|
2010-09-27 22:50:49 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Use tty device name as ttyO, [O -> OMAP]
|
|
|
|
* in bootargs we specify as console=ttyO0 if uart1
|
|
|
|
* is used as console uart.
|
|
|
|
*/
|
|
|
|
#define OMAP_SERIAL_NAME "ttyO"
|
|
|
|
|
|
|
|
struct omap_uart_port_info {
|
|
|
|
bool dma_enabled; /* To specify DMA Mode */
|
|
|
|
unsigned int uartclk; /* UART clock rate */
|
|
|
|
upf_t flags; /* UPF_* flags */
|
2011-11-09 20:03:38 +08:00
|
|
|
unsigned int dma_rx_buf_size;
|
|
|
|
unsigned int dma_rx_timeout;
|
|
|
|
unsigned int autosuspend_timeout;
|
2011-11-09 20:04:49 +08:00
|
|
|
unsigned int dma_rx_poll_rate;
|
2011-10-11 21:41:27 +08:00
|
|
|
|
|
|
|
int (*get_context_loss_count)(struct device *);
|
2012-09-06 20:45:20 +08:00
|
|
|
void (*enable_wakeup)(struct device *, bool);
|
2010-09-27 22:50:49 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __OMAP_SERIAL_H__ */
|