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