mpc8xx.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /* This is the single file included by all MPC8xx build options.
  2. * Since there are many different boards and no standard configuration,
  3. * we have a unique include file for each. Rather than change every
  4. * file that has to include MPC8xx configuration, they all include
  5. * this one and the configuration switching is done here.
  6. */
  7. #ifdef __KERNEL__
  8. #ifndef __CONFIG_8xx_DEFS
  9. #define __CONFIG_8xx_DEFS
  10. #ifdef CONFIG_8xx
  11. #ifdef CONFIG_MBX
  12. #include <platforms/mbx.h>
  13. #endif
  14. #ifdef CONFIG_FADS
  15. #include <platforms/fads.h>
  16. #endif
  17. #ifdef CONFIG_RPXLITE
  18. #include <platforms/rpxlite.h>
  19. #endif
  20. #ifdef CONFIG_BSEIP
  21. #include <platforms/bseip.h>
  22. #endif
  23. #ifdef CONFIG_RPXCLASSIC
  24. #include <platforms/rpxclassic.h>
  25. #endif
  26. #if defined(CONFIG_TQM8xxL)
  27. #include <platforms/tqm8xx.h>
  28. #endif
  29. #if defined(CONFIG_IVMS8) || defined(CONFIG_IVML24)
  30. #include <platforms/ivms8.h>
  31. #endif
  32. #if defined(CONFIG_HERMES_PRO)
  33. #include <platforms/hermes.h>
  34. #endif
  35. #if defined(CONFIG_IP860)
  36. #include <platforms/ip860.h>
  37. #endif
  38. #if defined(CONFIG_LWMON)
  39. #include <platforms/lwmon.h>
  40. #endif
  41. #if defined(CONFIG_PCU_E)
  42. #include <platforms/pcu_e.h>
  43. #endif
  44. #if defined(CONFIG_CCM)
  45. #include <platforms/ccm.h>
  46. #endif
  47. #if defined(CONFIG_LANTEC)
  48. #include <platforms/lantec.h>
  49. #endif
  50. #if defined(CONFIG_MPC885ADS)
  51. #include <platforms/mpc885ads.h>
  52. #endif
  53. /* Currently, all 8xx boards that support a processor to PCI/ISA bridge
  54. * use the same memory map.
  55. */
  56. #if 0
  57. #if defined(CONFIG_PCI) && defined(PCI_ISA_IO_ADDR)
  58. #define _IO_BASE PCI_ISA_IO_ADDR
  59. #define _ISA_MEM_BASE PCI_ISA_MEM_ADDR
  60. #define PCI_DRAM_OFFSET 0x80000000
  61. #else
  62. #define _IO_BASE 0
  63. #define _ISA_MEM_BASE 0
  64. #define PCI_DRAM_OFFSET 0
  65. #endif
  66. #else
  67. #if !defined(_IO_BASE) /* defined in board specific header */
  68. #define _IO_BASE 0
  69. #endif
  70. #define _ISA_MEM_BASE 0
  71. #define PCI_DRAM_OFFSET 0
  72. #endif
  73. #ifndef __ASSEMBLY__
  74. /* The "residual" data board information structure the boot loader
  75. * hands to us.
  76. */
  77. extern unsigned char __res[];
  78. struct pt_regs;
  79. enum ppc_sys_devices {
  80. MPC8xx_CPM_FEC1,
  81. MPC8xx_CPM_FEC2,
  82. MPC8xx_CPM_I2C,
  83. MPC8xx_CPM_SCC1,
  84. MPC8xx_CPM_SCC2,
  85. MPC8xx_CPM_SCC3,
  86. MPC8xx_CPM_SCC4,
  87. MPC8xx_CPM_SPI,
  88. MPC8xx_CPM_MCC1,
  89. MPC8xx_CPM_MCC2,
  90. MPC8xx_CPM_SMC1,
  91. MPC8xx_CPM_SMC2,
  92. MPC8xx_CPM_USB,
  93. MPC8xx_MDIO_FEC,
  94. NUM_PPC_SYS_DEVS,
  95. };
  96. #define PPC_PIN_SIZE (24 * 1024 * 1024) /* 24Mbytes of data pinned */
  97. #ifndef BOARD_CHIP_NAME
  98. #define BOARD_CHIP_NAME ""
  99. #endif
  100. #endif /* !__ASSEMBLY__ */
  101. #endif /* CONFIG_8xx */
  102. #endif /* __CONFIG_8xx_DEFS */
  103. #endif /* __KERNEL__ */