sandpoint.h 2.5 KB

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