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