pixis.h 2.3 KB

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