serial.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * linux/include/asm-arm/serial.h
  3. *
  4. * Copyright (C) 1996 Russell King.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. *
  10. * Changelog:
  11. * 15-10-1996 RMK Created
  12. */
  13. #ifndef __ASM_SERIAL_H
  14. #define __ASM_SERIAL_H
  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. #if defined(CONFIG_ARCH_A5K)
  25. /* UART CLK PORT IRQ FLAGS */
  26. #define SERIAL_PORT_DFNS \
  27. { 0, BASE_BAUD, 0x3F8, 10, STD_COM_FLAGS }, /* ttyS0 */ \
  28. { 0, BASE_BAUD, 0x2F8, 10, STD_COM_FLAGS }, /* ttyS1 */
  29. #else
  30. #define SERIAL_PORT_DFNS \
  31. { 0, BASE_BAUD, 0 , 0, STD_COM_FLAGS }, /* ttyS0 */ \
  32. { 0, BASE_BAUD, 0 , 0, STD_COM_FLAGS }, /* ttyS1 */
  33. #endif
  34. #endif