pal4_serial.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Definitions for SBS PalomarIV serial support
  3. *
  4. * Author: Dan Cox
  5. *
  6. * 2002 (c) MontaVista, Software, Inc. This file is licensed under
  7. * the terms of the GNU General Public License version 2. This program
  8. * is licensed "as is" without any warranty of any kind, whether express
  9. * or implied.
  10. */
  11. #ifndef __PPC_PAL4_SERIAL_H
  12. #define __PPC_PAL4_SERIAL_H
  13. #define CPC700_SERIAL_1 0xff600300
  14. #define CPC700_SERIAL_2 0xff600400
  15. #define RS_TABLE_SIZE 2
  16. #define BASE_BAUD (33333333 / 4 / 16)
  17. #ifdef CONFIG_SERIAL_DETECT_IRQ
  18. #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST|ASYNC_AUTO_IRQ)
  19. #define STD_COM4_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_AUTO_IRQ)
  20. #else
  21. #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST)
  22. #define STD_COM4_FLAGS (ASYNC_BOOT_AUTOCONF)
  23. #endif
  24. #define SERIAL_PORT_DFNS \
  25. {0, BASE_BAUD, CPC700_SERIAL_1, 3, STD_COM_FLAGS, \
  26. iomem_base: (unsigned char *) CPC700_SERIAL_1, \
  27. io_type: SERIAL_IO_MEM}, /* ttyS0 */ \
  28. {0, BASE_BAUD, CPC700_SERIAL_2, 4, STD_COM_FLAGS, \
  29. iomem_base: (unsigned char *) CPC700_SERIAL_2, \
  30. io_type: SERIAL_IO_MEM}
  31. #endif