serial-omap.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  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 <[email protected]>
  10. * Thara Gopinath <[email protected]>
  11. */
  12. #ifndef __OMAP_SERIAL_H__
  13. #define __OMAP_SERIAL_H__
  14. #include <linux/serial_core.h>
  15. #include <linux/device.h>
  16. #include <linux/pm_qos.h>
  17. #define OMAP_SERIAL_DRIVER_NAME "omap_uart"
  18. /*
  19. * Use tty device name as ttyO, [O -> OMAP]
  20. * in bootargs we specify as console=ttyO0 if uart1
  21. * is used as console uart.
  22. */
  23. #define OMAP_SERIAL_NAME "ttyO"
  24. struct omap_uart_port_info {
  25. bool dma_enabled; /* To specify DMA Mode */
  26. unsigned int uartclk; /* UART clock rate */
  27. upf_t flags; /* UPF_* flags */
  28. unsigned int dma_rx_buf_size;
  29. unsigned int dma_rx_timeout;
  30. unsigned int autosuspend_timeout;
  31. unsigned int dma_rx_poll_rate;
  32. int (*get_context_loss_count)(struct device *);
  33. void (*enable_wakeup)(struct device *, bool);
  34. };
  35. #endif /* __OMAP_SERIAL_H__ */