sbc8560.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * arch/ppc/platforms/85xx/sbc8560.h
  3. *
  4. * Wind River SBC8560 board definitions
  5. *
  6. * Copyright 2003 Motorola Inc.
  7. *
  8. * This program is free software; you can redistribute it and/or modify it
  9. * under the terms of the GNU General Public License as published by the
  10. * Free Software Foundation; either version 2 of the License, or (at your
  11. * option) any later version.
  12. *
  13. */
  14. #ifndef __MACH_SBC8560_H__
  15. #define __MACH_SBC8560_H__
  16. #include <linux/config.h>
  17. #include <platforms/85xx/sbc85xx.h>
  18. #define CPM_MAP_ADDR (CCSRBAR + MPC85xx_CPM_OFFSET)
  19. #ifdef CONFIG_SERIAL_MANY_PORTS
  20. #define RS_TABLE_SIZE 64
  21. #else
  22. #define RS_TABLE_SIZE 2
  23. #endif
  24. /* Rate for the 1.8432 Mhz clock for the onboard serial chip */
  25. #define BASE_BAUD ( 1843200 / 16 )
  26. #ifdef CONFIG_SERIAL_DETECT_IRQ
  27. #define STD_COM_FLAGS (ASYNC_SKIP_TEST|ASYNC_AUTO_IRQ)
  28. #else
  29. #define STD_COM_FLAGS (ASYNC_SKIP_TEST)
  30. #endif
  31. #define STD_SERIAL_PORT_DFNS \
  32. { 0, BASE_BAUD, UARTA_ADDR, MPC85xx_IRQ_EXT9, STD_COM_FLAGS, /* ttyS0 */ \
  33. iomem_base: (u8 *)UARTA_ADDR, \
  34. io_type: SERIAL_IO_MEM }, \
  35. { 0, BASE_BAUD, UARTB_ADDR, MPC85xx_IRQ_EXT10, STD_COM_FLAGS, /* ttyS1 */ \
  36. iomem_base: (u8 *)UARTB_ADDR, \
  37. io_type: SERIAL_IO_MEM },
  38. #define SERIAL_PORT_DFNS \
  39. STD_SERIAL_PORT_DFNS
  40. #endif /* __MACH_SBC8560_H__ */