serial.h 849 B

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