pixis.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright 2010 Freescale Semiconductor, Inc.
  4. */
  5. #ifndef __PIXIS_H_
  6. #define __PIXIS_H_ 1
  7. /* PIXIS register set. */
  8. #if defined(CONFIG_TARGET_MPC8536DS)
  9. typedef struct pixis {
  10. u8 id;
  11. u8 ver;
  12. u8 pver;
  13. u8 csr;
  14. u8 rst;
  15. u8 rst2;
  16. u8 aux1;
  17. u8 spd;
  18. u8 aux2;
  19. u8 csr2;
  20. u8 watch;
  21. u8 led;
  22. u8 pwr;
  23. u8 res[3];
  24. u8 vctl;
  25. u8 vstat;
  26. u8 vcfgen0;
  27. u8 vcfgen1;
  28. u8 vcore0;
  29. u8 res1;
  30. u8 vboot;
  31. u8 vspeed[3];
  32. u8 sclk[3];
  33. u8 dclk[3];
  34. u8 i2cdacr;
  35. u8 vcoreacc[4];
  36. u8 vcorecnt[3];
  37. u8 vcoremax[2];
  38. u8 vplatacc[4];
  39. u8 vplatcnt[3];
  40. u8 vplatmax[2];
  41. u8 vtempacc[4];
  42. u8 vtempcnt[3];
  43. u8 vtempmax[2];
  44. u8 res2[4];
  45. } __attribute__ ((packed)) pixis_t;
  46. #elif defined(CONFIG_TARGET_MPC8544DS)
  47. typedef struct pixis {
  48. u8 id;
  49. u8 ver;
  50. u8 pver;
  51. u8 csr;
  52. u8 rst;
  53. u8 pwr;
  54. u8 aux1;
  55. u8 spd;
  56. u8 res[8];
  57. u8 vctl;
  58. u8 vstat;
  59. u8 vcfgen0;
  60. u8 vcfgen1;
  61. u8 vcore0;
  62. u8 res1;
  63. u8 vboot;
  64. u8 vspeed[2];
  65. u8 vclkh;
  66. u8 vclkl;
  67. u8 watch;
  68. u8 led;
  69. u8 vspeed2;
  70. u8 res2[34];
  71. } __attribute__ ((packed)) pixis_t;
  72. #elif defined(CONFIG_TARGET_MPC8572DS)
  73. typedef struct pixis {
  74. u8 id;
  75. u8 ver;
  76. u8 pver;
  77. u8 csr;
  78. u8 rst;
  79. u8 pwr1;
  80. u8 aux1;
  81. u8 spd;
  82. u8 aux2;
  83. u8 res[7];
  84. u8 vctl;
  85. u8 vstat;
  86. u8 vcfgen0;
  87. u8 vcfgen1;
  88. u8 vcore0;
  89. u8 res1;
  90. u8 vboot;
  91. u8 vspeed[3];
  92. u8 res2[2];
  93. u8 sclk[3];
  94. u8 dclk[3];
  95. u8 res3[2];
  96. u8 watch;
  97. u8 led;
  98. u8 res4[25];
  99. } __attribute__ ((packed)) pixis_t;
  100. #elif defined(CONFIG_TARGET_MPC8610HPCD)
  101. typedef struct pixis {
  102. u8 id;
  103. u8 ver; /* also called arch */
  104. u8 pver;
  105. u8 csr;
  106. u8 rst;
  107. u8 pwr;
  108. u8 aux;
  109. u8 spd;
  110. u8 brdcfg0;
  111. u8 brdcfg1;
  112. u8 res[4];
  113. u8 led;
  114. u8 serno;
  115. u8 vctl;
  116. u8 vstat;
  117. u8 vcfgen0;
  118. u8 vcfgen1;
  119. u8 vcore0;
  120. u8 res1;
  121. u8 vboot;
  122. u8 vspeed[2];
  123. u8 res2;
  124. u8 sclk[3];
  125. u8 res3;
  126. u8 watch;
  127. u8 res4[33];
  128. } __attribute__ ((packed)) pixis_t;
  129. #elif defined(CONFIG_TARGET_MPC8641HPCN)
  130. typedef struct pixis {
  131. u8 id;
  132. u8 ver;
  133. u8 pver;
  134. u8 csr;
  135. u8 rst;
  136. u8 pwr;
  137. u8 aux;
  138. u8 spd;
  139. u8 res[8];
  140. u8 vctl;
  141. u8 vstat;
  142. u8 vcfgen0;
  143. u8 vcfgen1;
  144. u8 vcore0;
  145. u8 res1;
  146. u8 vboot;
  147. u8 vspeed[2];
  148. u8 vclkh;
  149. u8 vclkl;
  150. u8 watch;
  151. u8 res3[36];
  152. } __attribute__ ((packed)) pixis_t;
  153. #else
  154. #error Need to define pixis_t for this board
  155. #endif
  156. /* Pointer to the PIXIS register set */
  157. #define pixis ((pixis_t *)PIXIS_BASE)
  158. #endif /* __PIXIS_H_ */