serial-omap.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Driver for OMAP-UART controller.
  3. * Based on drivers/serial/8250.c
  4. *
  5. * Copyright (C) 2010 Texas Instruments.
  6. *
  7. * Authors:
  8. * Govindraj R <govindraj.raja@ti.com>
  9. * Thara Gopinath <thara@ti.com>
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License as published by
  13. * the Free Software Foundation; either version 2 of the License, or
  14. * (at your option) any later version.
  15. */
  16. #ifndef __OMAP_SERIAL_H__
  17. #define __OMAP_SERIAL_H__
  18. #include <linux/serial_core.h>
  19. #include <linux/device.h>
  20. #include <linux/pm_qos.h>
  21. #define DRIVER_NAME "omap_uart"
  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. struct omap_uart_port_info {
  29. bool dma_enabled; /* To specify DMA Mode */
  30. unsigned int uartclk; /* UART clock rate */
  31. upf_t flags; /* UPF_* flags */
  32. unsigned int dma_rx_buf_size;
  33. unsigned int dma_rx_timeout;
  34. unsigned int autosuspend_timeout;
  35. unsigned int dma_rx_poll_rate;
  36. int (*get_context_loss_count)(struct device *);
  37. void (*enable_wakeup)(struct device *, bool);
  38. };
  39. #endif /* __OMAP_SERIAL_H__ */