cpucfg_sun6i.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * Sunxi A31 CPUCFG register definition.
  3. *
  4. * (C) Copyright 2014 Hans de Goede <hdegoede@redhat.com
  5. *
  6. * SPDX-License-Identifier: GPL-2.0+
  7. */
  8. #ifndef _SUNXI_CPUCFG_H
  9. #define _SUNXI_CPUCFG_H
  10. #ifndef __ASSEMBLY__
  11. struct sunxi_cpucfg_reg {
  12. u8 res0[0x40]; /* 0x000 */
  13. u32 cpu0_rst; /* 0x040 */
  14. u32 cpu0_ctrl; /* 0x044 */
  15. u32 cpu0_status; /* 0x048 */
  16. u8 res1[0x34]; /* 0x04c */
  17. u32 cpu1_rst; /* 0x080 */
  18. u32 cpu1_ctrl; /* 0x084 */
  19. u32 cpu1_status; /* 0x088 */
  20. u8 res2[0x34]; /* 0x08c */
  21. u32 cpu2_rst; /* 0x0c0 */
  22. u32 cpu2_ctrl; /* 0x0c4 */
  23. u32 cpu2_status; /* 0x0c8 */
  24. u8 res3[0x34]; /* 0x0cc */
  25. u32 cpu3_rst; /* 0x100 */
  26. u32 cpu3_ctrl; /* 0x104 */
  27. u32 cpu3_status; /* 0x108 */
  28. u8 res4[0x78]; /* 0x10c */
  29. u32 gen_ctrl; /* 0x184 */
  30. u32 l2_status; /* 0x188 */
  31. u8 res5[0x4]; /* 0x18c */
  32. u32 event_in; /* 0x190 */
  33. u8 res6[0xc]; /* 0x194 */
  34. u32 super_standy_flag; /* 0x1a0 */
  35. u32 priv0; /* 0x1a4 */
  36. u32 priv1; /* 0x1a8 */
  37. u8 res7[0x54]; /* 0x1ac */
  38. u32 idle_cnt0_low; /* 0x200 */
  39. u32 idle_cnt0_high; /* 0x204 */
  40. u32 idle_cnt0_ctrl; /* 0x208 */
  41. u8 res8[0x4]; /* 0x20c */
  42. u32 idle_cnt1_low; /* 0x210 */
  43. u32 idle_cnt1_high; /* 0x214 */
  44. u32 idle_cnt1_ctrl; /* 0x218 */
  45. u8 res9[0x4]; /* 0x21c */
  46. u32 idle_cnt2_low; /* 0x220 */
  47. u32 idle_cnt2_high; /* 0x224 */
  48. u32 idle_cnt2_ctrl; /* 0x228 */
  49. u8 res10[0x4]; /* 0x22c */
  50. u32 idle_cnt3_low; /* 0x230 */
  51. u32 idle_cnt3_high; /* 0x234 */
  52. u32 idle_cnt3_ctrl; /* 0x238 */
  53. u8 res11[0x4]; /* 0x23c */
  54. u32 idle_cnt4_low; /* 0x240 */
  55. u32 idle_cnt4_high; /* 0x244 */
  56. u32 idle_cnt4_ctrl; /* 0x248 */
  57. u8 res12[0x34]; /* 0x24c */
  58. u32 cnt64_ctrl; /* 0x280 */
  59. u32 cnt64_low; /* 0x284 */
  60. u32 cnt64_high; /* 0x288 */
  61. };
  62. #endif /* __ASSEMBLY__ */
  63. #endif /* _SUNXI_CPUCFG_H */