serial.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * include/asm-sh/serial.h
  3. *
  4. * Configuration details for 8250, 16450, 16550, etc. serial ports
  5. */
  6. #ifndef _ASM_SERIAL_H
  7. #define _ASM_SERIAL_H
  8. #include <linux/config.h>
  9. #include <linux/kernel.h>
  10. #ifdef CONFIG_SH_EC3104
  11. #include <asm/serial-ec3104.h>
  12. #elif defined (CONFIG_SH_BIGSUR)
  13. #include <asm/serial-bigsur.h>
  14. #else
  15. /*
  16. * This assumes you have a 1.8432 MHz clock for your UART.
  17. *
  18. * It'd be nice if someone built a serial card with a 24.576 MHz
  19. * clock, since the 16550A is capable of handling a top speed of 1.5
  20. * megabits/second; but this requires the faster clock.
  21. */
  22. #define BASE_BAUD ( 1843200 / 16 )
  23. #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST)
  24. #ifdef CONFIG_HD64465
  25. #include <asm/hd64465.h>
  26. #define SERIAL_PORT_DFNS \
  27. /* UART CLK PORT IRQ FLAGS */ \
  28. { 0, BASE_BAUD, 0x3F8, HD64465_IRQ_UART, STD_COM_FLAGS } /* ttyS0 */
  29. #else
  30. #define SERIAL_PORT_DFNS \
  31. /* UART CLK PORT IRQ FLAGS */ \
  32. { 0, BASE_BAUD, 0x3F8, 4, STD_COM_FLAGS }, /* ttyS0 */ \
  33. { 0, BASE_BAUD, 0x2F8, 3, STD_COM_FLAGS } /* ttyS1 */
  34. #endif
  35. #endif
  36. #endif /* _ASM_SERIAL_H */