Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Peng Fan | 55a42b3 | 2016-08-11 14:02:57 +0800 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2016 Freescale Semiconductor, Inc. |
| 4 | * |
Jagan Teki | 03bf9d5 | 2016-10-08 18:00:14 +0530 | [diff] [blame] | 5 | * Refer doc/README.imximage for more details about how-to configure |
Peng Fan | 55a42b3 | 2016-08-11 14:02:57 +0800 | [diff] [blame] | 6 | * and create imximage boot image |
| 7 | * |
| 8 | * The syntax is taken as close as possible with the kwbimage |
| 9 | */ |
| 10 | |
| 11 | #define __ASSEMBLY__ |
| 12 | #include <config.h> |
| 13 | |
| 14 | /* image version */ |
| 15 | |
| 16 | IMAGE_VERSION 2 |
| 17 | |
| 18 | /* |
| 19 | * Boot Device : one of |
| 20 | * spi/sd/nand/onenand, qspi/nor |
| 21 | */ |
| 22 | |
Peng Fan | ab1f75a | 2016-10-11 14:29:16 +0800 | [diff] [blame] | 23 | #ifdef CONFIG_QSPI_BOOT |
Peng Fan | 55a42b3 | 2016-08-11 14:02:57 +0800 | [diff] [blame] | 24 | BOOT_FROM qspi |
Peng Fan | ab1f75a | 2016-10-11 14:29:16 +0800 | [diff] [blame] | 25 | #elif defined(CONFIG_NOR_BOOT) |
Peng Fan | 55a42b3 | 2016-08-11 14:02:57 +0800 | [diff] [blame] | 26 | BOOT_FROM nor |
| 27 | #else |
| 28 | BOOT_FROM sd |
| 29 | #endif |
| 30 | |
Peng Fan | 204d1f6 | 2016-10-11 14:29:15 +0800 | [diff] [blame] | 31 | #ifdef CONFIG_USE_IMXIMG_PLUGIN |
Peng Fan | 55a42b3 | 2016-08-11 14:02:57 +0800 | [diff] [blame] | 32 | /*PLUGIN plugin-binary-file IRAM_FREE_START_ADDR*/ |
| 33 | PLUGIN board/freescale/mx6ullevk/plugin.bin 0x00907000 |
| 34 | #else |
| 35 | |
| 36 | #ifdef CONFIG_SECURE_BOOT |
| 37 | CSF CONFIG_CSF_SIZE |
| 38 | #endif |
| 39 | |
| 40 | /* |
| 41 | * Device Configuration Data (DCD) |
| 42 | * |
| 43 | * Each entry must have the format: |
| 44 | * Addr-type Address Value |
| 45 | * |
| 46 | * where: |
| 47 | * Addr-type register length (1,2 or 4 bytes) |
| 48 | * Address absolute address of the register |
| 49 | * value value to be stored in the register |
| 50 | */ |
| 51 | |
| 52 | /* Enable all clocks */ |
| 53 | DATA 4 0x020c4068 0xffffffff |
| 54 | DATA 4 0x020c406c 0xffffffff |
| 55 | DATA 4 0x020c4070 0xffffffff |
| 56 | DATA 4 0x020c4074 0xffffffff |
| 57 | DATA 4 0x020c4078 0xffffffff |
| 58 | DATA 4 0x020c407c 0xffffffff |
| 59 | DATA 4 0x020c4080 0xffffffff |
| 60 | |
| 61 | DATA 4 0x020E04B4 0x000C0000 |
| 62 | DATA 4 0x020E04AC 0x00000000 |
| 63 | DATA 4 0x020E027C 0x00000030 |
| 64 | DATA 4 0x020E0250 0x00000030 |
| 65 | DATA 4 0x020E024C 0x00000030 |
| 66 | DATA 4 0x020E0490 0x00000030 |
| 67 | DATA 4 0x020E0288 0x000C0030 |
| 68 | DATA 4 0x020E0270 0x00000000 |
| 69 | DATA 4 0x020E0260 0x00000030 |
| 70 | DATA 4 0x020E0264 0x00000030 |
| 71 | DATA 4 0x020E04A0 0x00000030 |
| 72 | DATA 4 0x020E0494 0x00020000 |
| 73 | DATA 4 0x020E0280 0x00000030 |
| 74 | DATA 4 0x020E0284 0x00000030 |
| 75 | DATA 4 0x020E04B0 0x00020000 |
| 76 | DATA 4 0x020E0498 0x00000030 |
| 77 | DATA 4 0x020E04A4 0x00000030 |
| 78 | DATA 4 0x020E0244 0x00000030 |
| 79 | DATA 4 0x020E0248 0x00000030 |
| 80 | DATA 4 0x021B001C 0x00008000 |
| 81 | DATA 4 0x021B0800 0xA1390003 |
| 82 | DATA 4 0x021B080C 0x00000004 |
| 83 | DATA 4 0x021B083C 0x41640158 |
| 84 | DATA 4 0x021B0848 0x40403237 |
| 85 | DATA 4 0x021B0850 0x40403C33 |
| 86 | DATA 4 0x021B081C 0x33333333 |
| 87 | DATA 4 0x021B0820 0x33333333 |
| 88 | DATA 4 0x021B082C 0xf3333333 |
| 89 | DATA 4 0x021B0830 0xf3333333 |
| 90 | DATA 4 0x021B08C0 0x00944009 |
| 91 | DATA 4 0x021B08b8 0x00000800 |
| 92 | DATA 4 0x021B0004 0x0002002D |
| 93 | DATA 4 0x021B0008 0x1B333030 |
| 94 | DATA 4 0x021B000C 0x676B52F3 |
| 95 | DATA 4 0x021B0010 0xB66D0B63 |
| 96 | DATA 4 0x021B0014 0x01FF00DB |
| 97 | DATA 4 0x021B0018 0x00201740 |
| 98 | DATA 4 0x021B001C 0x00008000 |
| 99 | DATA 4 0x021B002C 0x000026D2 |
| 100 | DATA 4 0x021B0030 0x006B1023 |
| 101 | DATA 4 0x021B0040 0x0000004F |
| 102 | DATA 4 0x021B0000 0x84180000 |
| 103 | DATA 4 0x021B0890 0x00400000 |
| 104 | DATA 4 0x021B001C 0x02008032 |
| 105 | DATA 4 0x021B001C 0x00008033 |
| 106 | DATA 4 0x021B001C 0x00048031 |
| 107 | DATA 4 0x021B001C 0x15208030 |
| 108 | DATA 4 0x021B001C 0x04008040 |
| 109 | DATA 4 0x021B0020 0x00000800 |
| 110 | DATA 4 0x021B0818 0x00000227 |
| 111 | DATA 4 0x021B0004 0x0002552D |
| 112 | DATA 4 0x021B0404 0x00011006 |
| 113 | DATA 4 0x021B001C 0x00000000 |
| 114 | |
| 115 | #endif |