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