Stefan Agner | 7b85234 | 2018-05-30 19:01:48 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright (C) 2016 Freescale Semiconductor, Inc. |
| 4 | * Copyright (C) 2018 Toradex AG |
| 5 | * |
Patrick Delaunay | 488b6ac | 2020-02-28 15:18:12 +0100 | [diff] [blame] | 6 | * Refer doc/imx/mkimage/imximage.txt for more details about how-to configure |
Stefan Agner | 7b85234 | 2018-05-30 19:01:48 +0200 | [diff] [blame] | 7 | * and create imximage boot image |
| 8 | * |
| 9 | * The syntax is taken as close as possible with the kwbimage |
| 10 | */ |
| 11 | |
Stefan Agner | 7b85234 | 2018-05-30 19:01:48 +0200 | [diff] [blame] | 12 | #include <config.h> |
| 13 | |
| 14 | /* image version */ |
| 15 | |
| 16 | IMAGE_VERSION 2 |
| 17 | |
| 18 | /* |
| 19 | * Boot Device : nand |
| 20 | */ |
| 21 | |
| 22 | BOOT_FROM nand |
| 23 | |
| 24 | /* |
| 25 | * Secure boot support |
| 26 | */ |
Stefano Babic | f8b509b | 2019-09-20 08:47:53 +0200 | [diff] [blame] | 27 | #ifdef CONFIG_IMX_HAB |
Stefan Agner | 7b85234 | 2018-05-30 19:01:48 +0200 | [diff] [blame] | 28 | CSF CONFIG_CSF_SIZE |
| 29 | #endif |
| 30 | |
| 31 | /* |
| 32 | * Device Configuration Data (DCD) |
| 33 | * |
| 34 | * Each entry must have the format: |
| 35 | * Addr-type Address Value |
| 36 | * |
| 37 | * where: |
| 38 | * Addr-type register length (1,2 or 4 bytes) |
| 39 | * Address absolute address of the register |
| 40 | * value value to be stored in the register |
| 41 | */ |
| 42 | |
| 43 | /* Enable all clocks */ |
| 44 | DATA 4 0x020c4068 0xffffffff |
| 45 | DATA 4 0x020c406c 0xffffffff |
| 46 | DATA 4 0x020c4070 0xffffffff |
| 47 | DATA 4 0x020c4074 0xffffffff |
| 48 | DATA 4 0x020c4078 0xffffffff |
| 49 | DATA 4 0x020c407c 0xffffffff |
| 50 | DATA 4 0x020c4080 0xffffffff |
| 51 | |
| 52 | DATA 4 0x020E04B4 0x000C0000 |
| 53 | DATA 4 0x020E04AC 0x00000000 |
| 54 | DATA 4 0x020E027C 0x00000030 |
| 55 | DATA 4 0x020E0250 0x00000030 |
| 56 | DATA 4 0x020E024C 0x00000030 |
| 57 | DATA 4 0x020E0490 0x00000030 |
| 58 | DATA 4 0x020E0288 0x000C0030 |
| 59 | DATA 4 0x020E0270 0x00000000 |
| 60 | DATA 4 0x020E0260 0x00000030 |
| 61 | DATA 4 0x020E0264 0x00000030 |
| 62 | DATA 4 0x020E04A0 0x00000030 |
| 63 | DATA 4 0x020E0494 0x00020000 |
| 64 | DATA 4 0x020E0280 0x00000030 |
| 65 | DATA 4 0x020E0284 0x00000030 |
| 66 | DATA 4 0x020E04B0 0x00020000 |
| 67 | DATA 4 0x020E0498 0x00000030 |
| 68 | DATA 4 0x020E04A4 0x00000030 |
| 69 | DATA 4 0x020E0244 0x00000030 |
| 70 | DATA 4 0x020E0248 0x00000030 |
| 71 | DATA 4 0x021B001C 0x00008000 |
| 72 | DATA 4 0x021B0800 0xA1390003 |
| 73 | DATA 4 0x021B080C 0x00000004 |
| 74 | DATA 4 0x021B083C 0x41640158 |
| 75 | DATA 4 0x021B0848 0x40403237 |
| 76 | DATA 4 0x021B0850 0x40403C33 |
| 77 | DATA 4 0x021B081C 0x33333333 |
| 78 | DATA 4 0x021B0820 0x33333333 |
| 79 | DATA 4 0x021B082C 0xf3333333 |
| 80 | DATA 4 0x021B0830 0xf3333333 |
| 81 | DATA 4 0x021B08C0 0x00944009 |
| 82 | DATA 4 0x021B08b8 0x00000800 |
| 83 | DATA 4 0x021B0004 0x0002002D |
| 84 | DATA 4 0x021B0008 0x1B333030 |
Philippe Schenker | 268e315 | 2021-10-06 18:55:35 +0200 | [diff] [blame] | 85 | DATA 4 0x021B000C 0x8B8F52F3 |
Stefan Agner | 7b85234 | 2018-05-30 19:01:48 +0200 | [diff] [blame] | 86 | DATA 4 0x021B0010 0xB66D0B63 |
| 87 | DATA 4 0x021B0014 0x01FF00DB |
| 88 | DATA 4 0x021B0018 0x00201740 |
Stefan Agner | 7b85234 | 2018-05-30 19:01:48 +0200 | [diff] [blame] | 89 | DATA 4 0x021B002C 0x000026D2 |
Philippe Schenker | 268e315 | 2021-10-06 18:55:35 +0200 | [diff] [blame] | 90 | DATA 4 0x021B0030 0x008F1023 |
| 91 | DATA 4 0x021B0040 0x0000005F |
| 92 | DATA 4 0x021B0000 0x85180000 |
Stefan Agner | 7b85234 | 2018-05-30 19:01:48 +0200 | [diff] [blame] | 93 | DATA 4 0x021B001C 0x02008032 |
| 94 | DATA 4 0x021B001C 0x00008033 |
| 95 | DATA 4 0x021B001C 0x00048031 |
| 96 | DATA 4 0x021B001C 0x15208030 |
| 97 | DATA 4 0x021B001C 0x04008040 |
| 98 | DATA 4 0x021B0020 0x00000800 |
| 99 | DATA 4 0x021B0818 0x00000227 |
Philippe Schenker | 268e315 | 2021-10-06 18:55:35 +0200 | [diff] [blame] | 100 | DATA 4 0x021B0004 0x0002556D |
Stefan Agner | 7b85234 | 2018-05-30 19:01:48 +0200 | [diff] [blame] | 101 | DATA 4 0x021B0404 0x00011006 |
| 102 | DATA 4 0x021B001C 0x00000000 |