~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: 146391bcd6a411bedf8e2f38287479aad47a6654 (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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
/*
 * arch/arm/cpu/armv8/common/firmware/plat/gxb/ddr/ddr_pctl_define.h
 *
 * Copyright (C) 2015 Amlogic, Inc. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

#define DDR0_PCTL_SCFG						0xc8839000
#define DDR0_PCTL_SCTL						0xc8839004
#define DDR0_PCTL_STAT						0xc8839008
#define DDR0_PCTL_INTRSTAT					0xc883900c
#define DDR0_PCTL_POWSTAT					0xc8839048
#define DDR0_PCTL_MRRSTAT0					0xc8839064
#define DDR0_PCTL_CMDTSTAT					0xc883904c
#define DDR0_PCTL_MCMD						0xc8839040
#define DDR0_PCTL_MRRSTAT1					0xc8839068
#define DDR0_PCTL_MRRCFG0					0xc8839060
#define DDR0_PCTL_CMDTSTATEN				0xc8839050
#define DDR0_PCTL_POWCTL					0xc8839044
#define DDR0_PCTL_PPCFG						0xc8839084
#define DDR0_PCTL_LPDDR23ZQCFG				0xc883908c
#define DDR0_PCTL_MCFG1						0xc883907c
#define DDR0_PCTL_MSTAT						0xc8839088
#define DDR0_PCTL_MCFG						0xc8839080
#define DDR0_PCTL_DTUAWDT					0xc88390b0
#define DDR0_PCTL_DTUPRD2					0xc88390a8
#define DDR0_PCTL_DTUPRD3					0xc88390ac
#define DDR0_PCTL_DTUNE						0xc883909c
#define DDR0_PCTL_DTUPDES					0xc8839094
#define DDR0_PCTL_DTUNA						0xc8839098
#define DDR0_PCTL_DTUPRD0					0xc88390a0
#define DDR0_PCTL_DTUPRD1					0xc88390a4
#define DDR0_PCTL_TCKSRE					0xc8839124
#define DDR0_PCTL_TZQCSI					0xc883911c
#define DDR0_PCTL_TINIT						0xc88390c4
#define DDR0_PCTL_TDPD						0xc8839144
#define DDR0_PCTL_TOGCNT1U					0xc88390c0
#define DDR0_PCTL_TCKE						0xc883912c
#define DDR0_PCTL_TMOD						0xc8839130
#define DDR0_PCTL_TEXSR						0xc883910c
#define DDR0_PCTL_TAL						0xc88390e4
#define DDR0_PCTL_TRTP						0xc8839100
#define DDR0_PCTL_TCKSRX					0xc8839128
#define DDR0_PCTL_TRTW						0xc88390e0
#define DDR0_PCTL_TCWL						0xc88390ec
#define DDR0_PCTL_TWR						0xc8839104
#define DDR0_PCTL_TCL						0xc88390e8
#define DDR0_PCTL_TDQS						0xc8839120
#define DDR0_PCTL_TRSTH						0xc88390c8
#define DDR0_PCTL_TRCD						0xc88390f8
#define DDR0_PCTL_TXP						0xc8839110
#define DDR0_PCTL_TOGCNT100N				0xc88390cc
#define DDR0_PCTL_TMRD						0xc88390d4
#define DDR0_PCTL_TRSTL						0xc8839134
#define DDR0_PCTL_TREFI						0xc88390d0
#define DDR0_PCTL_TRAS						0xc88390f0
#define DDR0_PCTL_TREFI_MEM_DDR3			0xc8839148
#define DDR0_PCTL_TWTR						0xc8839108
#define DDR0_PCTL_TRC						0xc88390f4
#define DDR0_PCTL_TRFC						0xc88390d8
#define DDR0_PCTL_TMRR						0xc883913c
#define DDR0_PCTL_TCKESR					0xc8839140
#define DDR0_PCTL_TZQCL						0xc8839138
#define DDR0_PCTL_TRRD						0xc88390fc
#define DDR0_PCTL_TRP						0xc88390dc
#define DDR0_PCTL_TZQCS						0xc8839118
#define DDR0_PCTL_TXPDLL					0xc8839114
#define DDR0_PCTL_ECCCFG					0xc8839180
#define DDR0_PCTL_ECCLOG					0xc883918c
#define DDR0_PCTL_ECCCLR					0xc8839188
#define DDR0_PCTL_ECCTST					0xc8839184
#define DDR0_PCTL_DTUWD0					0xc8839210
#define DDR0_PCTL_DTUWD1					0xc8839214
#define DDR0_PCTL_DTUWACTL					0xc8839200
#define DDR0_PCTL_DTULFSRRD					0xc8839238
#define DDR0_PCTL_DTUWD2					0xc8839218
#define DDR0_PCTL_DTUWD3					0xc883921c
#define DDR0_PCTL_DTULFSRWD					0xc8839234
#define DDR0_PCTL_DTURACTL					0xc8839204
#define DDR0_PCTL_DTUWDM					0xc8839220
#define DDR0_PCTL_DTURD0					0xc8839224
#define DDR0_PCTL_DTURD1					0xc8839228
#define DDR0_PCTL_DTURD2					0xc883922c
#define DDR0_PCTL_DTURD3					0xc8839230
#define DDR0_PCTL_DTUCFG					0xc8839208
#define DDR0_PCTL_DTUEAF					0xc883923c
#define DDR0_PCTL_DTUECTL					0xc883920c
#define DDR0_PCTL_DFIODTCFG1				0xc8839248
#define DDR0_PCTL_DFITCTRLDELAY				0xc8839240
#define DDR0_PCTL_DFIODTRANKMAP				0xc883924c
#define DDR0_PCTL_DFIODTCFG					0xc8839244
#define DDR0_PCTL_DFITPHYWRLAT				0xc8839254
#define DDR0_PCTL_DFITPHYWRDATA				0xc8839250
#define DDR0_PCTL_DFITRDDATAEN				0xc8839260
#define DDR0_PCTL_DFITPHYRDLAT				0xc8839264
#define DDR0_PCTL_DFITREFMSKI				0xc8839294
#define DDR0_PCTL_DFITPHYUPDTYPE0			0xc8839270
#define DDR0_PCTL_DFITPHYUPDTYPE1			0xc8839274
#define DDR0_PCTL_DFITCTRLUPDDLY			0xc8839288
#define DDR0_PCTL_DFITPHYUPDTYPE2			0xc8839278
#define DDR0_PCTL_DFITCTRLUPDMIN			0xc8839280
#define DDR0_PCTL_DFITPHYUPDTYPE3			0xc883927c
#define DDR0_PCTL_DFIUPDCFG					0xc8839290
#define DDR0_PCTL_DFITCTRLUPDMAX			0xc8839284
#define DDR0_PCTL_DFITCTRLUPDI				0xc8839298
#define DDR0_PCTL_DFITRRDLVLEN				0xc88392b8
#define DDR0_PCTL_DFITRSTAT0				0xc88392b0
#define DDR0_PCTL_DFITRWRLVLEN				0xc88392b4
#define DDR0_PCTL_DFITRCFG0					0xc88392ac
#define DDR0_PCTL_DFITRRDLVLGATEEN			0xc88392bc
#define DDR0_PCTL_DFISTSTAT0				0xc88392c0
#define DDR0_PCTL_DFISTPARLOG				0xc88392e0
#define DDR0_PCTL_DFITDRAMCLKEN				0xc88392d0
#define DDR0_PCTL_DFISTPARCLR				0xc88392dc
#define DDR0_PCTL_DFISTCFG0					0xc88392c4
#define DDR0_PCTL_DFISTCFG1					0xc88392c8
#define DDR0_PCTL_DFISTCFG2					0xc88392d8
#define DDR0_PCTL_DFITDRAMCLKDIS			0xc88392d4
#define DDR0_PCTL_DFILPCFG0					0xc88392f0
#define DDR0_PCTL_DFITRWRLVLDELAY0			0xc8839318
#define DDR0_PCTL_DFITRWRLVLDELAY1			0xc883931c
#define DDR0_PCTL_DFITRWRLVLDELAY2			0xc8839320
#define DDR0_PCTL_DFITRRDLVLRESP0			0xc883930c
#define DDR0_PCTL_DFITRRDLVLRESP1			0xc8839310
#define DDR0_PCTL_DFITRRDLVLRESP2			0xc8839314
#define DDR0_PCTL_DFITRWRLVLRESP0			0xc8839300
#define DDR0_PCTL_DFITRRDLVLDELAY0			0xc8839324
#define DDR0_PCTL_DFITRRDLVLDELAY1			0xc8839328
#define DDR0_PCTL_DFITRWRLVLRESP1			0xc8839304
#define DDR0_PCTL_DFITRRDLVLDELAY2			0xc883932c
#define DDR0_PCTL_DFITRWRLVLRESP2			0xc8839308
#define DDR0_PCTL_DFITRRDLVLGATEDELAY0		0xc8839330
#define DDR0_PCTL_DFITRCMD					0xc883933c
#define DDR0_PCTL_DFITRRDLVLGATEDELAY1		0xc8839334
#define DDR0_PCTL_DFITRRDLVLGATEDELAY2		0xc8839338
#define DDR0_PCTL_IPTR						0xc88393fc
#define DDR0_PCTL_IPVR						0xc88393f8

#define DDR1_PCTL_SCFG						0xc8839400
#define DDR1_PCTL_SCTL						0xc8839404
#define DDR1_PCTL_STAT						0xc8839408
#define DDR1_PCTL_INTRSTAT					0xc883940c
#define DDR1_PCTL_POWSTAT					0xc8839448
#define DDR1_PCTL_MRRSTAT0					0xc8839464
#define DDR1_PCTL_CMDTSTAT					0xc883944c
#define DDR1_PCTL_MCMD						0xc8839440
#define DDR1_PCTL_MRRSTAT1					0xc8839468
#define DDR1_PCTL_MRRCFG0					0xc8839460
#define DDR1_PCTL_CMDTSTATEN				0xc8839450
#define DDR1_PCTL_POWCTL					0xc8839444
#define DDR1_PCTL_PPCFG						0xc8839484
#define DDR1_PCTL_LPDDR23ZQCFG				0xc883948c
#define DDR1_PCTL_MCFG1						0xc883947c
#define DDR1_PCTL_MSTAT						0xc8839488
#define DDR1_PCTL_MCFG						0xc8839480
#define DDR1_PCTL_DTUAWDT					0xc88394b0
#define DDR1_PCTL_DTUPRD2					0xc88394a8
#define DDR1_PCTL_DTUPRD3					0xc88394ac
#define DDR1_PCTL_DTUNE						0xc883949c
#define DDR1_PCTL_DTUPDES					0xc8839494
#define DDR1_PCTL_DTUNA						0xc8839498
#define DDR1_PCTL_DTUPRD0					0xc88394a0
#define DDR1_PCTL_DTUPRD1					0xc88394a4
#define DDR1_PCTL_TCKSRE					0xc8839524
#define DDR1_PCTL_TZQCSI					0xc883951c
#define DDR1_PCTL_TINIT						0xc88394c4
#define DDR1_PCTL_TDPD						0xc8839544
#define DDR1_PCTL_TOGCNT1U					0xc88394c0
#define DDR1_PCTL_TCKE						0xc883952c
#define DDR1_PCTL_TMOD						0xc8839530
#define DDR1_PCTL_TEXSR						0xc883950c
#define DDR1_PCTL_TAL						0xc88394e4
#define DDR1_PCTL_TRTP						0xc8839500
#define DDR1_PCTL_TCKSRX					0xc8839528
#define DDR1_PCTL_TRTW						0xc88394e0
#define DDR1_PCTL_TCWL						0xc88394ec
#define DDR1_PCTL_TWR						0xc8839504
#define DDR1_PCTL_TCL						0xc88394e8
#define DDR1_PCTL_TDQS						0xc8839520
#define DDR1_PCTL_TRSTH						0xc88394c8
#define DDR1_PCTL_TRCD						0xc88394f8
#define DDR1_PCTL_TXP						0xc8839510
#define DDR1_PCTL_TOGCNT100N				0xc88394cc
#define DDR1_PCTL_TMRD						0xc88394d4
#define DDR1_PCTL_TRSTL						0xc8839534
#define DDR1_PCTL_TREFI						0xc88394d0
#define DDR1_PCTL_TRAS						0xc88394f0
#define DDR1_PCTL_TREFI_MEM_DDR3			0xc8839548
#define DDR1_PCTL_TWTR						0xc8839508
#define DDR1_PCTL_TRC						0xc88394f4
#define DDR1_PCTL_TRFC						0xc88394d8
#define DDR1_PCTL_TMRR						0xc883953c
#define DDR1_PCTL_TCKESR					0xc8839540
#define DDR1_PCTL_TZQCL						0xc8839538
#define DDR1_PCTL_TRRD						0xc88394fc
#define DDR1_PCTL_TRP						0xc88394dc
#define DDR1_PCTL_TZQCS						0xc8839518
#define DDR1_PCTL_TXPDLL					0xc8839514
#define DDR1_PCTL_ECCCFG					0xc8839580
#define DDR1_PCTL_ECCLOG					0xc883958c
#define DDR1_PCTL_ECCCLR					0xc8839588
#define DDR1_PCTL_ECCTST					0xc8839584
#define DDR1_PCTL_DTUWD0					0xc8839610
#define DDR1_PCTL_DTUWD1					0xc8839614
#define DDR1_PCTL_DTUWACTL					0xc8839600
#define DDR1_PCTL_DTULFSRRD					0xc8839638
#define DDR1_PCTL_DTUWD2					0xc8839618
#define DDR1_PCTL_DTUWD3					0xc883961c
#define DDR1_PCTL_DTULFSRWD					0xc8839634
#define DDR1_PCTL_DTURACTL					0xc8839604
#define DDR1_PCTL_DTUWDM					0xc8839620
#define DDR1_PCTL_DTURD0					0xc8839624
#define DDR1_PCTL_DTURD1					0xc8839628
#define DDR1_PCTL_DTURD2					0xc883962c
#define DDR1_PCTL_DTURD3					0xc8839630
#define DDR1_PCTL_DTUCFG					0xc8839608
#define DDR1_PCTL_DTUEAF					0xc883963c
#define DDR1_PCTL_DTUECTL					0xc883960c
#define DDR1_PCTL_DFIODTCFG1				0xc8839648
#define DDR1_PCTL_DFITCTRLDELAY				0xc8839640
#define DDR1_PCTL_DFIODTRANKMAP				0xc883964c
#define DDR1_PCTL_DFIODTCFG					0xc8839644
#define DDR1_PCTL_DFITPHYWRLAT				0xc8839654
#define DDR1_PCTL_DFITPHYWRDATA				0xc8839650
#define DDR1_PCTL_DFITRDDATAEN				0xc8839660
#define DDR1_PCTL_DFITPHYRDLAT				0xc8839664
#define DDR1_PCTL_DFITREFMSKI				0xc8839694
#define DDR1_PCTL_DFITPHYUPDTYPE0			0xc8839670
#define DDR1_PCTL_DFITPHYUPDTYPE1			0xc8839674
#define DDR1_PCTL_DFITCTRLUPDDLY			0xc8839688
#define DDR1_PCTL_DFITPHYUPDTYPE2			0xc8839678
#define DDR1_PCTL_DFITCTRLUPDMIN			0xc8839680
#define DDR1_PCTL_DFITPHYUPDTYPE3			0xc883967c
#define DDR1_PCTL_DFIUPDCFG					0xc8839690
#define DDR1_PCTL_DFITCTRLUPDMAX			0xc8839684
#define DDR1_PCTL_DFITCTRLUPDI				0xc8839698
#define DDR1_PCTL_DFITRRDLVLEN				0xc88396b8
#define DDR1_PCTL_DFITRSTAT0				0xc88396b0
#define DDR1_PCTL_DFITRWRLVLEN				0xc88396b4
#define DDR1_PCTL_DFITRCFG0					0xc88396ac
#define DDR1_PCTL_DFITRRDLVLGATEEN			0xc88396bc
#define DDR1_PCTL_DFISTSTAT0				0xc88396c0
#define DDR1_PCTL_DFISTPARLOG				0xc88396e0
#define DDR1_PCTL_DFITDRAMCLKEN				0xc88396d0
#define DDR1_PCTL_DFISTPARCLR				0xc88396dc
#define DDR1_PCTL_DFISTCFG0					0xc88396c4
#define DDR1_PCTL_DFISTCFG1					0xc88396c8
#define DDR1_PCTL_DFISTCFG2					0xc88396d8
#define DDR1_PCTL_DFITDRAMCLKDIS			0xc88396d4
#define DDR1_PCTL_DFILPCFG0					0xc88396f0
#define DDR1_PCTL_DFITRWRLVLDELAY0			0xc8839718
#define DDR1_PCTL_DFITRWRLVLDELAY1			0xc883971c
#define DDR1_PCTL_DFITRWRLVLDELAY2			0xc8839720
#define DDR1_PCTL_DFITRRDLVLRESP0			0xc883970c
#define DDR1_PCTL_DFITRRDLVLRESP1			0xc8839710
#define DDR1_PCTL_DFITRRDLVLRESP2			0xc8839714
#define DDR1_PCTL_DFITRWRLVLRESP0			0xc8839700
#define DDR1_PCTL_DFITRRDLVLDELAY0			0xc8839724
#define DDR1_PCTL_DFITRRDLVLDELAY1			0xc8839728
#define DDR1_PCTL_DFITRWRLVLRESP1			0xc8839704
#define DDR1_PCTL_DFITRRDLVLDELAY2			0xc883972c
#define DDR1_PCTL_DFITRWRLVLRESP2			0xc8839708
#define DDR1_PCTL_DFITRRDLVLGATEDELAY0		0xc8839730
#define DDR1_PCTL_DFITRCMD					0xc883973c
#define DDR1_PCTL_DFITRRDLVLGATEDELAY1		0xc8839734
#define DDR1_PCTL_DFITRRDLVLGATEDELAY2		0xc8839738
#define DDR1_PCTL_IPTR						0xc88397fc
#define DDR1_PCTL_IPVR						0xc88397f8