mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
![Thomas Gleixner](/assets/img/avatar_default.png)
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 3029 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070032.746973796@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
42 lines
1 KiB
C
42 lines
1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* 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>
|
|
#include <linux/device.h>
|
|
#include <linux/pm_qos.h>
|
|
|
|
#define OMAP_SERIAL_DRIVER_NAME "omap_uart"
|
|
|
|
/*
|
|
* 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 */
|
|
unsigned int dma_rx_buf_size;
|
|
unsigned int dma_rx_timeout;
|
|
unsigned int autosuspend_timeout;
|
|
unsigned int dma_rx_poll_rate;
|
|
|
|
int (*get_context_loss_count)(struct device *);
|
|
void (*enable_wakeup)(struct device *, bool);
|
|
};
|
|
|
|
#endif /* __OMAP_SERIAL_H__ */
|