mpc8260.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /*
  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 MPC8260 configuration, they all include
  5. * this one and the configuration switching is done here.
  6. */
  7. #ifdef __KERNEL__
  8. #ifndef __ASM_PPC_MPC8260_H__
  9. #define __ASM_PPC_MPC8260_H__
  10. #ifdef CONFIG_8260
  11. #ifdef CONFIG_EST8260
  12. #include <platforms/est8260.h>
  13. #endif
  14. #ifdef CONFIG_SBC82xx
  15. #include <platforms/sbc82xx.h>
  16. #endif
  17. #ifdef CONFIG_SBS8260
  18. #include <platforms/sbs8260.h>
  19. #endif
  20. #ifdef CONFIG_RPX8260
  21. #include <platforms/rpx8260.h>
  22. #endif
  23. #ifdef CONFIG_WILLOW
  24. #include <platforms/willow.h>
  25. #endif
  26. #ifdef CONFIG_TQM8260
  27. #include <platforms/tqm8260.h>
  28. #endif
  29. #if defined(CONFIG_PQ2ADS) || defined (CONFIG_PQ2FADS)
  30. #include <platforms/pq2ads.h>
  31. #endif
  32. #ifdef CONFIG_PCI_8260
  33. #include <syslib/m82xx_pci.h>
  34. #endif
  35. /* Make sure the memory translation stuff is there if PCI not used.
  36. */
  37. #ifndef _IO_BASE
  38. #define _IO_BASE 0
  39. #endif
  40. #ifndef _ISA_MEM_BASE
  41. #define _ISA_MEM_BASE 0
  42. #endif
  43. #ifndef PCI_DRAM_OFFSET
  44. #define PCI_DRAM_OFFSET 0
  45. #endif
  46. /* Map 256MB I/O region
  47. */
  48. #ifndef IO_PHYS_ADDR
  49. #define IO_PHYS_ADDR 0xe0000000
  50. #endif
  51. #ifndef IO_VIRT_ADDR
  52. #define IO_VIRT_ADDR IO_PHYS_ADDR
  53. #endif
  54. enum ppc_sys_devices {
  55. MPC82xx_CPM_FCC1,
  56. MPC82xx_CPM_FCC2,
  57. MPC82xx_CPM_FCC3,
  58. MPC82xx_CPM_I2C,
  59. MPC82xx_CPM_SCC1,
  60. MPC82xx_CPM_SCC2,
  61. MPC82xx_CPM_SCC3,
  62. MPC82xx_CPM_SCC4,
  63. MPC82xx_CPM_SPI,
  64. MPC82xx_CPM_MCC1,
  65. MPC82xx_CPM_MCC2,
  66. MPC82xx_CPM_SMC1,
  67. MPC82xx_CPM_SMC2,
  68. MPC82xx_CPM_USB,
  69. MPC82xx_SEC1,
  70. MPC82xx_MDIO_BB,
  71. NUM_PPC_SYS_DEVS,
  72. };
  73. #ifndef __ASSEMBLY__
  74. /* The "residual" data board information structure the boot loader
  75. * hands to us.
  76. */
  77. extern unsigned char __res[];
  78. #endif
  79. #ifndef BOARD_CHIP_NAME
  80. #define BOARD_CHIP_NAME ""
  81. #endif
  82. #endif /* CONFIG_8260 */
  83. #endif /* !__ASM_PPC_MPC8260_H__ */
  84. #endif /* __KERNEL__ */