sbc8560.h 1.4 KB

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