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. #include <linux/config.h>
  11. #ifdef CONFIG_8260
  12. #ifdef CONFIG_EST8260
  13. #include <platforms/est8260.h>
  14. #endif
  15. #ifdef CONFIG_SBC82xx
  16. #include <platforms/sbc82xx.h>
  17. #endif
  18. #ifdef CONFIG_SBS8260
  19. #include <platforms/sbs8260.h>
  20. #endif
  21. #ifdef CONFIG_RPX8260
  22. #include <platforms/rpx8260.h>
  23. #endif
  24. #ifdef CONFIG_WILLOW
  25. #include <platforms/willow.h>
  26. #endif
  27. #ifdef CONFIG_TQM8260
  28. #include <platforms/tqm8260.h>
  29. #endif
  30. #if defined(CONFIG_PQ2ADS) || defined (CONFIG_PQ2FADS)
  31. #include <platforms/pq2ads.h>
  32. #endif
  33. #ifdef CONFIG_PCI_8260
  34. #include <syslib/m82xx_pci.h>
  35. #endif
  36. /* Make sure the memory translation stuff is there if PCI not used.
  37. */
  38. #ifndef _IO_BASE
  39. #define _IO_BASE 0
  40. #endif
  41. #ifndef _ISA_MEM_BASE
  42. #define _ISA_MEM_BASE 0
  43. #endif
  44. #ifndef PCI_DRAM_OFFSET
  45. #define PCI_DRAM_OFFSET 0
  46. #endif
  47. /* Map 256MB I/O region
  48. */
  49. #ifndef IO_PHYS_ADDR
  50. #define IO_PHYS_ADDR 0xe0000000
  51. #endif
  52. #ifndef IO_VIRT_ADDR
  53. #define IO_VIRT_ADDR IO_PHYS_ADDR
  54. #endif
  55. enum ppc_sys_devices {
  56. MPC82xx_CPM_FCC1,
  57. MPC82xx_CPM_FCC2,
  58. MPC82xx_CPM_FCC3,
  59. MPC82xx_CPM_I2C,
  60. MPC82xx_CPM_SCC1,
  61. MPC82xx_CPM_SCC2,
  62. MPC82xx_CPM_SCC3,
  63. MPC82xx_CPM_SCC4,
  64. MPC82xx_CPM_SPI,
  65. MPC82xx_CPM_MCC1,
  66. MPC82xx_CPM_MCC2,
  67. MPC82xx_CPM_SMC1,
  68. MPC82xx_CPM_SMC2,
  69. MPC82xx_CPM_USB,
  70. MPC82xx_SEC1,
  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__ */