blob: d51e29b19eeaf27b34c7208b8858eba6a004b14e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
|
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* (C) Copyright 2017 Rockchip Electronics Co., Ltd.
*/
#ifndef _ASM_ARCH_GRF_px30_H
#define _ASM_ARCH_GRF_px30_H
struct px30_grf {
unsigned int gpio1al_iomux;
unsigned int gpio1ah_iomux;
unsigned int gpio1bl_iomux;
unsigned int gpio1bh_iomux;
unsigned int gpio1cl_iomux;
unsigned int gpio1ch_iomux;
unsigned int gpio1dl_iomux;
unsigned int gpio1dh_iomux;
unsigned int gpio2al_iomux;
unsigned int gpio2ah_iomux;
unsigned int gpio2bl_iomux;
unsigned int gpio2bh_iomux;
unsigned int gpio2cl_iomux;
unsigned int gpio2ch_iomux;
unsigned int gpio2dl_iomux;
unsigned int gpio2dh_iomux;
unsigned int gpio3al_iomux;
unsigned int gpio3ah_iomux;
unsigned int gpio3bl_iomux;
unsigned int gpio3bh_iomux;
unsigned int gpio3cl_iomux;
unsigned int gpio3ch_iomux;
unsigned int gpio3dl_iomux;
unsigned int gpio3dh_iomux;
unsigned int gpio1a_p;
unsigned int gpio1b_p;
unsigned int gpio1c_p;
unsigned int gpio1d_p;
unsigned int gpio2a_p;
unsigned int gpio2b_p;
unsigned int gpio2c_p;
unsigned int gpio2d_p;
unsigned int gpio3a_p;
unsigned int gpio3b_p;
unsigned int gpio3c_p;
unsigned int gpio3d_p;
unsigned int gpio1a_sr;
unsigned int gpio1b_sr;
unsigned int gpio1c_sr;
unsigned int gpio1d_sr;
unsigned int gpio2a_sr;
unsigned int gpio2b_sr;
unsigned int gpio2c_sr;
unsigned int gpio2d_sr;
unsigned int gpio3a_sr;
unsigned int gpio3b_sr;
unsigned int gpio3c_sr;
unsigned int gpio3d_sr;
unsigned int gpio1a_smt;
unsigned int gpio1b_smt;
unsigned int gpio1c_smt;
unsigned int gpio1d_smt;
unsigned int gpio2a_smt;
unsigned int gpio2b_smt;
unsigned int gpio2c_smt;
unsigned int gpio2d_smt;
unsigned int gpio3a_smt;
unsigned int gpio3b_smt;
unsigned int gpio3c_smt;
unsigned int gpio3d_smt;
unsigned int gpio1a_e;
unsigned int gpio1b_e;
unsigned int gpio1c_e;
unsigned int gpio1d_e;
unsigned int gpio2a_e;
unsigned int gpio2b_e;
unsigned int gpio2c_e;
unsigned int gpio2d_e;
unsigned int gpio3a_e;
unsigned int gpio3b_e;
unsigned int gpio3c_e;
unsigned int gpio3d_e;
unsigned int reserved0[(0x180 - 0x11C) / 4 - 1];
unsigned int io_vsel;
unsigned int iofunc_con0;
unsigned int reserved1[(0x400 - 0x184) / 4 - 1];
unsigned int soc_con[6];
unsigned int reserved2[(0x480 - 0x414) / 4 - 1];
unsigned int soc_status0;
unsigned int reserved3[(0x500 - 0x480) / 4 - 1];
unsigned int cpu_con[3];
unsigned int reserved4[5];
unsigned int cpu_status[2];
unsigned int reserved5[2];
unsigned int soc_noc_con[2];
unsigned int reserved6[6];
unsigned int ddr_bankhash[4];
unsigned int reserved7[(0x700 - 0x55c) / 4 - 1];
unsigned int host0_con[2];
unsigned int reserved8[(0x880 - 0x704) / 4 - 1];
unsigned int otg_con3;
unsigned int reserved9[3];
unsigned int host0_status4;
unsigned int reserved10[(0x904 - 0x890) / 4 - 1];
unsigned int mac_con1;
};
check_member(px30_grf, mac_con1, 0x904);
struct px30_pmugrf {
unsigned int gpio0al_iomux;
unsigned int gpio0bl_iomux;
unsigned int gpio0cl_iomux;
unsigned int gpio0dl_iomux;
unsigned int gpio0a_p;
unsigned int gpio0b_p;
unsigned int gpio0c_p;
unsigned int gpio0d_p;
unsigned int gpio0a_e;
unsigned int gpio0b_e;
unsigned int gpio0c_e;
unsigned int gpio0d_e;
unsigned int gpio0l_sr;
unsigned int gpio0h_sr;
unsigned int gpio0l_smt;
unsigned int gpio0h_smt;
unsigned int reserved1[(0x100 - 0x3c) / 4 - 1];
unsigned int soc_con[4];
unsigned int reserved2[(0x180 - 0x10c) / 4 - 1];
unsigned int pvtm_con[2];
unsigned int reserved3[2];
unsigned int pvtm_status[2];
unsigned int reserved4[(0x200 - 0x194) / 4 - 1];
unsigned int os_reg[12];
unsigned int reset_function_status;
};
check_member(px30_pmugrf, reset_function_status, 0x230);
#endif
|