sandpoint.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * Definitions for Motorola SPS Sandpoint Test Platform
  3. *
  4. * Author: Mark A. Greer
  5. * mgreer@mvista.com
  6. *
  7. * 2000-2003 (c) MontaVista, Software, Inc. This file is licensed under
  8. * the terms of the GNU General Public License version 2. This program
  9. * is licensed "as is" without any warranty of any kind, whether express
  10. * or implied.
  11. */
  12. /*
  13. * Sandpoint uses the CHRP map (Map B).
  14. */
  15. #ifndef __PPC_PLATFORMS_SANDPOINT_H
  16. #define __PPC_PLATFORMS_SANDPOINT_H
  17. #include <asm/ppcboot.h>
  18. #if 0
  19. /* The Sandpoint X3 allows the IDE interrupt to be directly connected
  20. * from the Windbond (PCI INTC or INTD) to the serial EPIC. Someday
  21. * we should try this, but it was easier to use the existing 83c553
  22. * initialization than change it to route the different interrupts :-).
  23. * -- Dan
  24. */
  25. #define SANDPOINT_IDE_INT0 23 /* EPIC 7 */
  26. #define SANDPOINT_IDE_INT1 24 /* EPIC 8 */
  27. #else
  28. #define SANDPOINT_IDE_INT0 14 /* 8259 Test */
  29. #define SANDPOINT_IDE_INT1 15 /* 8259 Test */
  30. #endif
  31. /*
  32. * The sandpoint boards have processor modules that either have an 8240 or
  33. * an MPC107 host bridge on them. These bridges have an IDSEL line that allows
  34. * them to respond to PCI transactions as if they were a normal PCI devices.
  35. * However, the processor on the processor side of the bridge can not reach
  36. * out onto the PCI bus and then select the bridge or bad things will happen
  37. * (documented in the 8240 and 107 manuals).
  38. * Because of this, we always skip the bridge PCI device when accessing the
  39. * PCI bus. The PCI slot that the bridge occupies is defined by the macro
  40. * below.
  41. */
  42. #define SANDPOINT_HOST_BRIDGE_IDSEL 12
  43. /*
  44. * Serial defines.
  45. */
  46. #define SANDPOINT_SERIAL_0 0xfe0003f8
  47. #define SANDPOINT_SERIAL_1 0xfe0002f8
  48. #define RS_TABLE_SIZE 2
  49. /* Rate for the 1.8432 Mhz clock for the onboard serial chip */
  50. #define BASE_BAUD ( 1843200 / 16 )
  51. #define UART_CLK 1843200
  52. #ifdef CONFIG_SERIAL_DETECT_IRQ
  53. #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_AUTO_IRQ)
  54. #else
  55. #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF)
  56. #endif
  57. #define STD_SERIAL_PORT_DFNS \
  58. { 0, BASE_BAUD, SANDPOINT_SERIAL_0, 4, STD_COM_FLAGS, /* ttyS0 */ \
  59. iomem_base: (u8 *)SANDPOINT_SERIAL_0, \
  60. io_type: SERIAL_IO_MEM }, \
  61. { 0, BASE_BAUD, SANDPOINT_SERIAL_1, 3, STD_COM_FLAGS, /* ttyS1 */ \
  62. iomem_base: (u8 *)SANDPOINT_SERIAL_1, \
  63. io_type: SERIAL_IO_MEM },
  64. #define SERIAL_PORT_DFNS \
  65. STD_SERIAL_PORT_DFNS
  66. #endif /* __PPC_PLATFORMS_SANDPOINT_H */