serial.h 1.1 KB

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