immap_85xx.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /*
  2. * include/asm-ppc/immap_85xx.h
  3. *
  4. * MPC85xx Internal Memory Map
  5. *
  6. * Maintainer: Kumar Gala <galak@kernel.crashing.org>
  7. *
  8. * Copyright 2004 Freescale Semiconductor, Inc
  9. *
  10. * This program is free software; you can redistribute it and/or modify it
  11. * under the terms of the GNU General Public License as published by the
  12. * Free Software Foundation; either version 2 of the License, or (at your
  13. * option) any later version.
  14. *
  15. */
  16. #ifdef __KERNEL__
  17. #ifndef __ASM_IMMAP_85XX_H__
  18. #define __ASM_IMMAP_85XX_H__
  19. /* Eventually this should define all the IO block registers in 85xx */
  20. /* PCI Registers */
  21. typedef struct ccsr_pci {
  22. uint cfg_addr; /* 0x.000 - PCI Configuration Address Register */
  23. uint cfg_data; /* 0x.004 - PCI Configuration Data Register */
  24. uint int_ack; /* 0x.008 - PCI Interrupt Acknowledge Register */
  25. char res1[3060];
  26. uint potar0; /* 0x.c00 - PCI Outbound Transaction Address Register 0 */
  27. uint potear0; /* 0x.c04 - PCI Outbound Translation Extended Address Register 0 */
  28. uint powbar0; /* 0x.c08 - PCI Outbound Window Base Address Register 0 */
  29. char res2[4];
  30. uint powar0; /* 0x.c10 - PCI Outbound Window Attributes Register 0 */
  31. char res3[12];
  32. uint potar1; /* 0x.c20 - PCI Outbound Transaction Address Register 1 */
  33. uint potear1; /* 0x.c24 - PCI Outbound Translation Extended Address Register 1 */
  34. uint powbar1; /* 0x.c28 - PCI Outbound Window Base Address Register 1 */
  35. char res4[4];
  36. uint powar1; /* 0x.c30 - PCI Outbound Window Attributes Register 1 */
  37. char res5[12];
  38. uint potar2; /* 0x.c40 - PCI Outbound Transaction Address Register 2 */
  39. uint potear2; /* 0x.c44 - PCI Outbound Translation Extended Address Register 2 */
  40. uint powbar2; /* 0x.c48 - PCI Outbound Window Base Address Register 2 */
  41. char res6[4];
  42. uint powar2; /* 0x.c50 - PCI Outbound Window Attributes Register 2 */
  43. char res7[12];
  44. uint potar3; /* 0x.c60 - PCI Outbound Transaction Address Register 3 */
  45. uint potear3; /* 0x.c64 - PCI Outbound Translation Extended Address Register 3 */
  46. uint powbar3; /* 0x.c68 - PCI Outbound Window Base Address Register 3 */
  47. char res8[4];
  48. uint powar3; /* 0x.c70 - PCI Outbound Window Attributes Register 3 */
  49. char res9[12];
  50. uint potar4; /* 0x.c80 - PCI Outbound Transaction Address Register 4 */
  51. uint potear4; /* 0x.c84 - PCI Outbound Translation Extended Address Register 4 */
  52. uint powbar4; /* 0x.c88 - PCI Outbound Window Base Address Register 4 */
  53. char res10[4];
  54. uint powar4; /* 0x.c90 - PCI Outbound Window Attributes Register 4 */
  55. char res11[268];
  56. uint pitar3; /* 0x.da0 - PCI Inbound Translation Address Register 3 */
  57. char res12[4];
  58. uint piwbar3; /* 0x.da8 - PCI Inbound Window Base Address Register 3 */
  59. uint piwbear3; /* 0x.dac - PCI Inbound Window Base Extended Address Register 3 */
  60. uint piwar3; /* 0x.db0 - PCI Inbound Window Attributes Register 3 */
  61. char res13[12];
  62. uint pitar2; /* 0x.dc0 - PCI Inbound Translation Address Register 2 */
  63. char res14[4];
  64. uint piwbar2; /* 0x.dc8 - PCI Inbound Window Base Address Register 2 */
  65. uint piwbear2; /* 0x.dcc - PCI Inbound Window Base Extended Address Register 2 */
  66. uint piwar2; /* 0x.dd0 - PCI Inbound Window Attributes Register 2 */
  67. char res15[12];
  68. uint pitar1; /* 0x.de0 - PCI Inbound Translation Address Register 1 */
  69. char res16[4];
  70. uint piwbar1; /* 0x.de8 - PCI Inbound Window Base Address Register 1 */
  71. char res17[4];
  72. uint piwar1; /* 0x.df0 - PCI Inbound Window Attributes Register 1 */
  73. char res18[12];
  74. uint err_dr; /* 0x.e00 - PCI Error Detect Register */
  75. uint err_cap_dr; /* 0x.e04 - PCI Error Capture Disable Register */
  76. uint err_en; /* 0x.e08 - PCI Error Enable Register */
  77. uint err_attrib; /* 0x.e0c - PCI Error Attributes Capture Register */
  78. uint err_addr; /* 0x.e10 - PCI Error Address Capture Register */
  79. uint err_ext_addr; /* 0x.e14 - PCI Error Extended Address Capture Register */
  80. uint err_dl; /* 0x.e18 - PCI Error Data Low Capture Register */
  81. uint err_dh; /* 0x.e1c - PCI Error Data High Capture Register */
  82. uint gas_timr; /* 0x.e20 - PCI Gasket Timer Register */
  83. uint pci_timr; /* 0x.e24 - PCI Timer Register */
  84. char res19[472];
  85. } ccsr_pci_t;
  86. /* Global Utility Registers */
  87. typedef struct ccsr_guts {
  88. uint porpllsr; /* 0x.0000 - POR PLL Ratio Status Register */
  89. uint porbmsr; /* 0x.0004 - POR Boot Mode Status Register */
  90. uint porimpscr; /* 0x.0008 - POR I/O Impedance Status and Control Register */
  91. uint pordevsr; /* 0x.000c - POR I/O Device Status Register */
  92. uint pordbgmsr; /* 0x.0010 - POR Debug Mode Status Register */
  93. char res1[12];
  94. uint gpporcr; /* 0x.0020 - General-Purpose POR Configuration Register */
  95. char res2[12];
  96. uint gpiocr; /* 0x.0030 - GPIO Control Register */
  97. char res3[12];
  98. uint gpoutdr; /* 0x.0040 - General-Purpose Output Data Register */
  99. char res4[12];
  100. uint gpindr; /* 0x.0050 - General-Purpose Input Data Register */
  101. char res5[12];
  102. uint pmuxcr; /* 0x.0060 - Alternate Function Signal Multiplex Control */
  103. char res6[12];
  104. uint devdisr; /* 0x.0070 - Device Disable Control */
  105. char res7[12];
  106. uint powmgtcsr; /* 0x.0080 - Power Management Status and Control Register */
  107. char res8[12];
  108. uint mcpsumr; /* 0x.0090 - Machine Check Summary Register */
  109. char res9[12];
  110. uint pvr; /* 0x.00a0 - Processor Version Register */
  111. uint svr; /* 0x.00a4 - System Version Register */
  112. char res10[3416];
  113. uint clkocr; /* 0x.0e00 - Clock Out Select Register */
  114. char res11[12];
  115. uint ddrdllcr; /* 0x.0e10 - DDR DLL Control Register */
  116. char res12[12];
  117. uint lbcdllcr; /* 0x.0e20 - LBC DLL Control Register */
  118. char res13[61916];
  119. } ccsr_guts_t;
  120. #endif /* __ASM_IMMAP_85XX_H__ */
  121. #endif /* __KERNEL__ */