bfin_serial_5xx.h 962 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Copyright 2006-2009 Analog Devices Inc.
  3. *
  4. * Licensed under the GPL-2 or later
  5. */
  6. #include <asm/dma.h>
  7. #include <asm/portmux.h>
  8. #ifdef CONFIG_BFIN_UART0_CTSRTS
  9. # define CONFIG_SERIAL_BFIN_CTSRTS
  10. # ifndef CONFIG_UART0_CTS_PIN
  11. # define CONFIG_UART0_CTS_PIN -1
  12. # endif
  13. # ifndef CONFIG_UART0_RTS_PIN
  14. # define CONFIG_UART0_RTS_PIN -1
  15. # endif
  16. #endif
  17. struct bfin_serial_res {
  18. unsigned long uart_base_addr;
  19. int uart_irq;
  20. int uart_status_irq;
  21. #ifdef CONFIG_SERIAL_BFIN_DMA
  22. unsigned int uart_tx_dma_channel;
  23. unsigned int uart_rx_dma_channel;
  24. #endif
  25. #ifdef CONFIG_SERIAL_BFIN_CTSRTS
  26. int uart_cts_pin;
  27. int uart_rts_pin;
  28. #endif
  29. };
  30. struct bfin_serial_res bfin_serial_resource[] = {
  31. {
  32. 0xFFC00400,
  33. IRQ_UART0_RX,
  34. IRQ_UART0_ERROR,
  35. #ifdef CONFIG_SERIAL_BFIN_DMA
  36. CH_UART0_TX,
  37. CH_UART0_RX,
  38. #endif
  39. #ifdef CONFIG_SERIAL_BFIN_CTSRTS
  40. CONFIG_UART0_CTS_PIN,
  41. CONFIG_UART0_RTS_PIN,
  42. #endif
  43. }
  44. };
  45. #define DRIVER_NAME "bfin-uart"
  46. #include <asm/bfin_serial.h>