serial.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * Copyright (C) 1999 by Ralf Baechle
  7. * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
  8. */
  9. #include <linux/config.h>
  10. #ifdef CONFIG_RTE_CB_ME2
  11. #include <asm/rte_me2_cb.h>
  12. #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
  13. #define irq_cannonicalize(x) (x)
  14. #define BASE_BAUD 250000 /* (16MHz / (16 * 38400)) * 9600 */
  15. #define SERIAL_PORT_DFNS \
  16. { 0, BASE_BAUD, CB_UART_BASE, IRQ_CB_EXTSIO, STD_COM_FLAGS },
  17. /* Redefine UART register offsets. */
  18. #undef UART_RX
  19. #undef UART_TX
  20. #undef UART_DLL
  21. #undef UART_TRG
  22. #undef UART_DLM
  23. #undef UART_IER
  24. #undef UART_FCTR
  25. #undef UART_IIR
  26. #undef UART_FCR
  27. #undef UART_EFR
  28. #undef UART_LCR
  29. #undef UART_MCR
  30. #undef UART_LSR
  31. #undef UART_MSR
  32. #undef UART_SCR
  33. #undef UART_EMSR
  34. #define UART_RX (0 * CB_UART_REG_GAP)
  35. #define UART_TX (0 * CB_UART_REG_GAP)
  36. #define UART_DLL (0 * CB_UART_REG_GAP)
  37. #define UART_TRG (0 * CB_UART_REG_GAP)
  38. #define UART_DLM (1 * CB_UART_REG_GAP)
  39. #define UART_IER (1 * CB_UART_REG_GAP)
  40. #define UART_FCTR (1 * CB_UART_REG_GAP)
  41. #define UART_IIR (2 * CB_UART_REG_GAP)
  42. #define UART_FCR (2 * CB_UART_REG_GAP)
  43. #define UART_EFR (2 * CB_UART_REG_GAP)
  44. #define UART_LCR (3 * CB_UART_REG_GAP)
  45. #define UART_MCR (4 * CB_UART_REG_GAP)
  46. #define UART_LSR (5 * CB_UART_REG_GAP)
  47. #define UART_MSR (6 * CB_UART_REG_GAP)
  48. #define UART_SCR (7 * CB_UART_REG_GAP)
  49. #define UART_EMSR (7 * CB_UART_REG_GAP)
  50. #endif /* CONFIG_RTE_CB_ME2 */