blob: 74a33c25032a90024914beeb1e70b08b7783c0ed [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Troy Kiskya18d7862013-01-18 16:14:24 +00002/*
Ye.Lidd4aeca2014-09-29 23:26:29 +08003 * Copyright (C) 2011-2014 Freescale Semiconductor, Inc.
Troy Kiskya18d7862013-01-18 16:14:24 +00004 * Jason Liu <r64343@freescale.com>
5 *
Patrick Delaunay488b6ac2020-02-28 15:18:12 +01006 * Refer doc/imx/mkimage/imximage.txt for more details about how-to configure
Troy Kiskya18d7862013-01-18 16:14:24 +00007 * and create imximage boot image
8 *
9 * The syntax is taken as close as possible with the kwbimage
10 */
Jason Liu02591102011-11-25 00:18:05 +000011
Troy Kiskya18d7862013-01-18 16:14:24 +000012/* image version */
Jason Liu02591102011-11-25 00:18:05 +000013IMAGE_VERSION 2
14
Troy Kiskya18d7862013-01-18 16:14:24 +000015/*
16 * Boot Device : one of
17 * spi, sd (the board has no nand neither onenand)
18 */
Jason Liu02591102011-11-25 00:18:05 +000019BOOT_FROM sd
20
Troy Kiskya18d7862013-01-18 16:14:24 +000021/*
22 * Device Configuration Data (DCD)
23 *
24 * Each entry must have the format:
25 * Addr-type Address Value
26 *
27 * where:
28 * Addr-type register length (1,2 or 4 bytes)
29 * Address absolute address of the register
30 * value value to be stored in the register
31 */
Ye.Lidd4aeca2014-09-29 23:26:29 +080032#ifdef CONFIG_MX6DQ_LPDDR2
33/* DCD */
34DATA 4 0x020C4018 0x60324
35
36DATA 4 0x020E05a8 0x00003038
37DATA 4 0x020E05b0 0x00003038
38DATA 4 0x020E0524 0x00003038
39DATA 4 0x020E051c 0x00003038
40
41DATA 4 0x020E0518 0x00003038
42DATA 4 0x020E050c 0x00003038
43DATA 4 0x020E05b8 0x00003038
44DATA 4 0x020E05c0 0x00003038
45
46DATA 4 0x020E05ac 0x00000038
47DATA 4 0x020E05b4 0x00000038
48DATA 4 0x020E0528 0x00000038
49DATA 4 0x020E0520 0x00000038
50
51DATA 4 0x020E0514 0x00000038
52DATA 4 0x020E0510 0x00000038
53DATA 4 0x020E05bc 0x00000038
54DATA 4 0x020E05c4 0x00000038
55
56DATA 4 0x020E056c 0x00000038
57DATA 4 0x020E0578 0x00000038
58DATA 4 0x020E0588 0x00000038
59DATA 4 0x020E0594 0x00000038
60
61DATA 4 0x020E057c 0x00000038
62DATA 4 0x020E0590 0x00000038
63DATA 4 0x020E0598 0x00000038
64DATA 4 0x020E058c 0x00000000
65
66DATA 4 0x020E059c 0x00000038
67DATA 4 0x020E05a0 0x00000038
68DATA 4 0x020E0784 0x00000038
69DATA 4 0x020E0788 0x00000038
70
71DATA 4 0x020E0794 0x00000038
72DATA 4 0x020E079c 0x00000038
73DATA 4 0x020E07a0 0x00000038
74DATA 4 0x020E07a4 0x00000038
75
76DATA 4 0x020E07a8 0x00000038
77DATA 4 0x020E0748 0x00000038
78DATA 4 0x020E074c 0x00000038
79DATA 4 0x020E0750 0x00020000
80
81DATA 4 0x020E0758 0x00000000
82DATA 4 0x020E0774 0x00020000
83DATA 4 0x020E078c 0x00000038
84DATA 4 0x020E0798 0x00080000
85
86DATA 4 0x021b001c 0x00008000
87DATA 4 0x021b401c 0x00008000
88
89DATA 4 0x021b085c 0x1b5f01ff
90DATA 4 0x021b485c 0x1b5f01ff
91
92DATA 4 0x021b0800 0xa1390000
93DATA 4 0x021b4800 0xa1390000
94
95DATA 4 0x021b0890 0x00400000
96DATA 4 0x021b4890 0x00400000
97
98DATA 4 0x021b48bc 0x00055555
99
100DATA 4 0x021b08b8 0x00000800
101DATA 4 0x021b48b8 0x00000800
102
103DATA 4 0x021b081c 0x33333333
104DATA 4 0x021b0820 0x33333333
105DATA 4 0x021b0824 0x33333333
106DATA 4 0x021b0828 0x33333333
107DATA 4 0x021b481c 0x33333333
108DATA 4 0x021b4820 0x33333333
109DATA 4 0x021b4824 0x33333333
110DATA 4 0x021b4828 0x33333333
111
112DATA 4 0x021b082c 0xf3333333
113DATA 4 0x021b0830 0xf3333333
114DATA 4 0x021b0834 0xf3333333
115DATA 4 0x021b0838 0xf3333333
116DATA 4 0x021b482c 0xf3333333
117DATA 4 0x021b4830 0xf3333333
118DATA 4 0x021b4834 0xf3333333
119DATA 4 0x021b4838 0xf3333333
120
121DATA 4 0x021b0848 0x49383b39
122DATA 4 0x021b0850 0x30364738
123DATA 4 0x021b4848 0x3e3c3846
124DATA 4 0x021b4850 0x4c294b35
125
126DATA 4 0x021b083c 0x20000000
127DATA 4 0x021b0840 0x0
128DATA 4 0x021b483c 0x20000000
129DATA 4 0x021b4840 0x0
130
131DATA 4 0x021b0858 0xf00
132DATA 4 0x021b4858 0xf00
133
134DATA 4 0x021b08b8 0x800
135DATA 4 0x021b48b8 0x800
136
137DATA 4 0x021b000c 0x555a61a5
138DATA 4 0x021b0004 0x20036
139DATA 4 0x021b0010 0x160e83
140DATA 4 0x021b0014 0xdd
141DATA 4 0x021b0018 0x8174c
142DATA 4 0x021b002c 0xf9f26d2
143DATA 4 0x021b0030 0x20e
144DATA 4 0x021b0038 0x200aac
145DATA 4 0x021b0008 0x0
146
147DATA 4 0x021b0040 0x5f
148
149DATA 4 0x021b0000 0xc3010000
150
151DATA 4 0x021b400c 0x555a61a5
152DATA 4 0x021b4004 0x20036
153DATA 4 0x021b4010 0x160e83
154DATA 4 0x021b4014 0xdd
155DATA 4 0x021b4018 0x8174c
156DATA 4 0x021b402c 0xf9f26d2
157DATA 4 0x021b4030 0x20e
158DATA 4 0x021b4038 0x200aac
159DATA 4 0x021b4008 0x0
160
161DATA 4 0x021b4040 0x3f
162DATA 4 0x021b4000 0xc3010000
163
164DATA 4 0x021b001c 0x3f8030
165DATA 4 0x021b001c 0xff0a8030
166DATA 4 0x021b001c 0xc2018030
167DATA 4 0x021b001c 0x6028030
168DATA 4 0x021b001c 0x2038030
169
170DATA 4 0x021b401c 0x3f8030
171DATA 4 0x021b401c 0xff0a8030
172DATA 4 0x021b401c 0xc2018030
173DATA 4 0x021b401c 0x6028030
174DATA 4 0x021b401c 0x2038030
175
176DATA 4 0x021b0800 0xa1390003
177DATA 4 0x021b4800 0xa1390003
178
179DATA 4 0x021b0020 0x7800
180DATA 4 0x021b4020 0x7800
181
182DATA 4 0x021b0818 0x0
183DATA 4 0x021b4818 0x0
184
185DATA 4 0x021b0800 0xa1390003
186DATA 4 0x021b4800 0xa1390003
187
188DATA 4 0x021b08b8 0x800
189DATA 4 0x021b48b8 0x800
190
191DATA 4 0x021b001c 0x0
192DATA 4 0x021b401c 0x0
193
194DATA 4 0x021b0404 0x00011006
195
196DATA 4 0x020c4068 0x00C03F3F
197DATA 4 0x020c406c 0x0030FC03
198DATA 4 0x020c4070 0x0FFFC000
199DATA 4 0x020c4074 0x3FF00000
200DATA 4 0x020c4078 0x00FFF300
201DATA 4 0x020c407c 0x0F0000C3
202DATA 4 0x020c4080 0x000003FF
203
204/* enable AXI cache for VDOA/VPU/IPU */
205DATA 4 0x020e0010 0xF00000CF
206/* set IPU AXI-id0 Qos=0xf(bypass) AXI-id1 Qos=0x7 */
207DATA 4 0x020e0018 0x007F007F
208DATA 4 0x020e001c 0x007F007F
209
210#else
Jason Liu02591102011-11-25 00:18:05 +0000211DATA 4 0x020e05a8 0x00000030
212DATA 4 0x020e05b0 0x00000030
213DATA 4 0x020e0524 0x00000030
214DATA 4 0x020e051c 0x00000030
215
216DATA 4 0x020e0518 0x00000030
217DATA 4 0x020e050c 0x00000030
218DATA 4 0x020e05b8 0x00000030
219DATA 4 0x020e05c0 0x00000030
220
221DATA 4 0x020e05ac 0x00020030
222DATA 4 0x020e05b4 0x00020030
223DATA 4 0x020e0528 0x00020030
224DATA 4 0x020e0520 0x00020030
225
226DATA 4 0x020e0514 0x00020030
227DATA 4 0x020e0510 0x00020030
228DATA 4 0x020e05bc 0x00020030
229DATA 4 0x020e05c4 0x00020030
230
231DATA 4 0x020e056c 0x00020030
232DATA 4 0x020e0578 0x00020030
233DATA 4 0x020e0588 0x00020030
234DATA 4 0x020e0594 0x00020030
235
236DATA 4 0x020e057c 0x00020030
237DATA 4 0x020e0590 0x00003000
238DATA 4 0x020e0598 0x00003000
239DATA 4 0x020e058c 0x00000000
240
241DATA 4 0x020e059c 0x00003030
242DATA 4 0x020e05a0 0x00003030
243DATA 4 0x020e0784 0x00000030
244DATA 4 0x020e0788 0x00000030
245
246DATA 4 0x020e0794 0x00000030
247DATA 4 0x020e079c 0x00000030
248DATA 4 0x020e07a0 0x00000030
249DATA 4 0x020e07a4 0x00000030
250
251DATA 4 0x020e07a8 0x00000030
252DATA 4 0x020e0748 0x00000030
253DATA 4 0x020e074c 0x00000030
254DATA 4 0x020e0750 0x00020000
255
256DATA 4 0x020e0758 0x00000000
257DATA 4 0x020e0774 0x00020000
258DATA 4 0x020e078c 0x00000030
259DATA 4 0x020e0798 0x000C0000
260
261DATA 4 0x021b081c 0x33333333
262DATA 4 0x021b0820 0x33333333
263DATA 4 0x021b0824 0x33333333
264DATA 4 0x021b0828 0x33333333
265
266DATA 4 0x021b481c 0x33333333
267DATA 4 0x021b4820 0x33333333
268DATA 4 0x021b4824 0x33333333
269DATA 4 0x021b4828 0x33333333
270
271DATA 4 0x021b0018 0x00081740
272
273DATA 4 0x021b001c 0x00008000
274DATA 4 0x021b000c 0x555A7975
275DATA 4 0x021b0010 0xFF538E64
276DATA 4 0x021b0014 0x01FF00DB
277DATA 4 0x021b002c 0x000026D2
278
279DATA 4 0x021b0030 0x005B0E21
280DATA 4 0x021b0008 0x09444040
281DATA 4 0x021b0004 0x00025576
282DATA 4 0x021b0040 0x00000027
283DATA 4 0x021b0000 0xC31A0000
284
285DATA 4 0x021b001c 0x04088032
286DATA 4 0x021b001c 0x0408803A
287DATA 4 0x021b001c 0x00008033
288DATA 4 0x021b001c 0x0000803B
289DATA 4 0x021b001c 0x00428031
290DATA 4 0x021b001c 0x00428039
291DATA 4 0x021b001c 0x09408030
292DATA 4 0x021b001c 0x09408038
293
294DATA 4 0x021b001c 0x04008040
295DATA 4 0x021b001c 0x04008048
296DATA 4 0x021b0800 0xA1380003
297DATA 4 0x021b4800 0xA1380003
298DATA 4 0x021b0020 0x00005800
299DATA 4 0x021b0818 0x00022227
300DATA 4 0x021b4818 0x00022227
301
302DATA 4 0x021b083c 0x434B0350
303DATA 4 0x021b0840 0x034C0359
304DATA 4 0x021b483c 0x434B0350
305DATA 4 0x021b4840 0x03650348
306DATA 4 0x021b0848 0x4436383B
307DATA 4 0x021b4848 0x39393341
308DATA 4 0x021b0850 0x35373933
309DATA 4 0x021b4850 0x48254A36
310
311DATA 4 0x021b080c 0x001F001F
312DATA 4 0x021b0810 0x001F001F
313
314DATA 4 0x021b480c 0x00440044
315DATA 4 0x021b4810 0x00440044
316
317DATA 4 0x021b08b8 0x00000800
318DATA 4 0x021b48b8 0x00000800
319
320DATA 4 0x021b001c 0x00000000
321DATA 4 0x021b0404 0x00011006
322
Jason Liu02591102011-11-25 00:18:05 +0000323DATA 4 0x020c4068 0x00C03F3F
Ye.Lidd4aeca2014-09-29 23:26:29 +0800324DATA 4 0x020c406c 0x0030FC03
Jason Liu02591102011-11-25 00:18:05 +0000325DATA 4 0x020c4070 0x0FFFC000
326DATA 4 0x020c4074 0x3FF00000
327DATA 4 0x020c4078 0x00FFF300
328DATA 4 0x020c407c 0x0F0000C3
Eric Nelsona0b242b2011-12-25 21:00:47 +0000329DATA 4 0x020c4080 0x000003FF
Dirk Behmeafa0d082012-04-12 20:46:14 +0000330
Troy Kiskya18d7862013-01-18 16:14:24 +0000331/* enable AXI cache for VDOA/VPU/IPU */
Vikram Narayanan5e4ecda2012-06-12 04:50:33 +0000332DATA 4 0x020e0010 0xF00000CF
Troy Kiskya18d7862013-01-18 16:14:24 +0000333/* set IPU AXI-id0 Qos=0xf(bypass) AXI-id1 Qos=0x7 */
Dirk Behmeafa0d082012-04-12 20:46:14 +0000334DATA 4 0x020e0018 0x007F007F
335DATA 4 0x020e001c 0x007F007F
Ye.Lidd4aeca2014-09-29 23:26:29 +0800336
337#endif /* CONFIG_MX6DQ_LPDDR2 */