Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Driver for OMAP-UART controller.
0004  * Based on drivers/serial/8250.c
0005  *
0006  * Copyright (C) 2010 Texas Instruments.
0007  *
0008  * Authors:
0009  *  Govindraj R <govindraj.raja@ti.com>
0010  *  Thara Gopinath  <thara@ti.com>
0011  */
0012 
0013 #ifndef __OMAP_SERIAL_H__
0014 #define __OMAP_SERIAL_H__
0015 
0016 #include <linux/serial_core.h>
0017 #include <linux/device.h>
0018 #include <linux/pm_qos.h>
0019 
0020 #define OMAP_SERIAL_DRIVER_NAME "omap_uart"
0021 
0022 /*
0023  * Use tty device name as ttyO, [O -> OMAP]
0024  * in bootargs we specify as console=ttyO0 if uart1
0025  * is used as console uart.
0026  */
0027 #define OMAP_SERIAL_NAME    "ttyO"
0028 
0029 struct omap_uart_port_info {
0030     bool            dma_enabled;    /* To specify DMA Mode */
0031     unsigned int        uartclk;    /* UART clock rate */
0032     upf_t           flags;      /* UPF_* flags */
0033     unsigned int        dma_rx_buf_size;
0034     unsigned int        dma_rx_timeout;
0035     unsigned int        autosuspend_timeout;
0036     unsigned int        dma_rx_poll_rate;
0037 
0038     int (*get_context_loss_count)(struct device *);
0039     void (*enable_wakeup)(struct device *, bool);
0040 };
0041 
0042 #endif /* __OMAP_SERIAL_H__ */