Adrian Alonso | 9881077 | 2015-09-03 11:49:28 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015 Freescale Semiconductor, Inc. |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | * |
Jagan Teki | 94de5c1 | 2016-10-08 18:00:14 +0530 | [diff] [blame] | 6 | * Refer doc/README.imximage for more details about how-to configure |
Adrian Alonso | 9881077 | 2015-09-03 11:49:28 -0500 | [diff] [blame] | 7 | * and create imximage boot image |
| 8 | * |
| 9 | * The syntax is taken as close as possible with the kwbimage |
| 10 | */ |
| 11 | |
| 12 | #define __ASSEMBLY__ |
| 13 | #include <config.h> |
| 14 | |
| 15 | /* image version */ |
| 16 | |
| 17 | IMAGE_VERSION 2 |
| 18 | |
| 19 | /* |
| 20 | * Boot Device : sd |
| 21 | */ |
| 22 | |
| 23 | BOOT_FROM sd |
| 24 | |
| 25 | /* |
Adrian Alonso | 2fe7c29 | 2015-10-12 13:48:16 -0500 | [diff] [blame] | 26 | * Secure boot support |
| 27 | */ |
| 28 | #ifdef CONFIG_SECURE_BOOT |
| 29 | CSF CONFIG_CSF_SIZE |
| 30 | #endif |
| 31 | |
| 32 | /* |
Adrian Alonso | 9881077 | 2015-09-03 11:49:28 -0500 | [diff] [blame] | 33 | * Device Configuration Data (DCD) |
| 34 | * |
| 35 | * Each entry must have the format: |
| 36 | * Addr-type Address Value |
| 37 | * |
| 38 | * where: |
| 39 | * Addr-type register length (1,2 or 4 bytes) |
| 40 | * Address absolute address of the register |
| 41 | * value value to be stored in the register |
| 42 | */ |
| 43 | |
| 44 | DATA 4 0x30340004 0x4F400005 |
| 45 | |
| 46 | DATA 4 0x30391000 0x00000002 |
| 47 | DATA 4 0x307a0000 0x01040001 |
| 48 | DATA 4 0x307a01a0 0x80400003 |
| 49 | DATA 4 0x307a01a4 0x00100020 |
| 50 | DATA 4 0x307a01a8 0x80100004 |
| 51 | DATA 4 0x307a0064 0x00400046 |
| 52 | DATA 4 0x307a0490 0x00000001 |
| 53 | DATA 4 0x307a00d0 0x00020083 |
| 54 | DATA 4 0x307a00d4 0x00690000 |
| 55 | DATA 4 0x307a00dc 0x09300004 |
| 56 | DATA 4 0x307a00e0 0x04080000 |
| 57 | DATA 4 0x307a00e4 0x00100004 |
| 58 | DATA 4 0x307a00f4 0x0000033f |
| 59 | DATA 4 0x307a0100 0x09081109 |
| 60 | DATA 4 0x307a0104 0x0007020d |
| 61 | DATA 4 0x307a0108 0x03040407 |
| 62 | DATA 4 0x307a010c 0x00002006 |
| 63 | DATA 4 0x307a0110 0x04020205 |
| 64 | DATA 4 0x307a0114 0x03030202 |
| 65 | DATA 4 0x307a0120 0x00000803 |
| 66 | DATA 4 0x307a0180 0x00800020 |
| 67 | DATA 4 0x307a0184 0x02000100 |
| 68 | DATA 4 0x307a0190 0x02098204 |
| 69 | DATA 4 0x307a0194 0x00030303 |
| 70 | DATA 4 0x307a0200 0x00000016 |
| 71 | DATA 4 0x307a0204 0x00171717 |
| 72 | DATA 4 0x307a0214 0x04040404 |
| 73 | DATA 4 0x307a0218 0x0f040404 |
| 74 | DATA 4 0x307a0240 0x06000604 |
| 75 | DATA 4 0x307a0244 0x00000001 |
| 76 | DATA 4 0x30391000 0x00000000 |
| 77 | DATA 4 0x30790000 0x17420f40 |
| 78 | DATA 4 0x30790004 0x10210100 |
| 79 | DATA 4 0x30790010 0x00060807 |
| 80 | DATA 4 0x307900b0 0x1010007e |
| 81 | DATA 4 0x3079009c 0x00000d6e |
| 82 | DATA 4 0x30790020 0x08080808 |
| 83 | DATA 4 0x30790030 0x08080808 |
| 84 | DATA 4 0x30790050 0x01000010 |
| 85 | DATA 4 0x30790050 0x00000010 |
| 86 | |
| 87 | DATA 4 0x307900c0 0x0e407304 |
| 88 | DATA 4 0x307900c0 0x0e447304 |
| 89 | DATA 4 0x307900c0 0x0e447306 |
| 90 | |
| 91 | CHECK_BITS_SET 4 0x307900c4 0x1 |
| 92 | |
| 93 | DATA 4 0x307900c0 0x0e447304 |
| 94 | DATA 4 0x307900c0 0x0e407304 |
| 95 | |
| 96 | DATA 4 0x30384130 0x00000000 |
| 97 | DATA 4 0x30340020 0x00000178 |
| 98 | DATA 4 0x30384130 0x00000002 |
| 99 | DATA 4 0x30790018 0x0000000f |
| 100 | |
| 101 | CHECK_BITS_SET 4 0x307a0004 0x1 |