Peng Fan | 361b715 | 2015-07-11 11:38:47 +0800 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (C) 2015 Freescale Semiconductor, Inc. |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | * |
| 6 | * Refer doc/README.imximage for more details about how-to configure |
| 7 | * and create imximage boot image |
| 8 | * |
| 9 | * The syntax is taken as close as possible with the kwbimage |
| 10 | */ |
| 11 | /* image version */ |
| 12 | |
| 13 | #define __ASSEMBLY__ |
| 14 | #include <config.h> |
| 15 | |
| 16 | IMAGE_VERSION 2 |
| 17 | |
| 18 | /* |
| 19 | * Boot Device : one of spi, sd, eimnor, nand, sata: |
| 20 | * spinor: flash_offset: 0x0400 |
| 21 | * nand: flash_offset: 0x0400 |
| 22 | * sata: flash_offset: 0x0400 |
| 23 | * sd/mmc: flash_offset: 0x0400 |
| 24 | * eimnor: flash_offset: 0x1000 |
| 25 | */ |
| 26 | BOOT_FROM sd |
| 27 | |
| 28 | /* |
| 29 | * Device Configuration Data (DCD) |
| 30 | * |
| 31 | * Each entry must have the format: |
| 32 | * Addr-type Address Value |
| 33 | * |
| 34 | * where: |
| 35 | * Addr-type register length (1,2 or 4 bytes) |
| 36 | * Address absolute address of the register |
| 37 | * value value to be stored in the register |
| 38 | */ |
| 39 | DATA 4 0x020e0798 0x000C0000 |
| 40 | DATA 4 0x020e0758 0x00000000 |
| 41 | DATA 4 0x020e0588 0x00000030 |
| 42 | DATA 4 0x020e0594 0x00000030 |
| 43 | DATA 4 0x020e056c 0x00000030 |
| 44 | DATA 4 0x020e0578 0x00000030 |
| 45 | DATA 4 0x020e074c 0x00000030 |
| 46 | DATA 4 0x020e057c 0x00000030 |
| 47 | DATA 4 0x020e058c 0x00000000 |
| 48 | DATA 4 0x020e059c 0x00000030 |
| 49 | DATA 4 0x020e05a0 0x00000030 |
| 50 | DATA 4 0x020e078c 0x00000030 |
| 51 | DATA 4 0x020e0750 0x00020000 |
| 52 | DATA 4 0x020e05a8 0x00000030 |
| 53 | DATA 4 0x020e05b0 0x00000030 |
| 54 | DATA 4 0x020e0524 0x00000030 |
| 55 | DATA 4 0x020e051c 0x00000030 |
| 56 | DATA 4 0x020e0518 0x00000030 |
| 57 | DATA 4 0x020e050c 0x00000030 |
| 58 | DATA 4 0x020e05b8 0x00000030 |
| 59 | DATA 4 0x020e05c0 0x00000030 |
| 60 | DATA 4 0x020e0774 0x00020000 |
| 61 | DATA 4 0x020e0784 0x00000030 |
| 62 | DATA 4 0x020e0788 0x00000030 |
| 63 | DATA 4 0x020e0794 0x00000030 |
| 64 | DATA 4 0x020e079c 0x00000030 |
| 65 | DATA 4 0x020e07a0 0x00000030 |
| 66 | DATA 4 0x020e07a4 0x00000030 |
| 67 | DATA 4 0x020e07a8 0x00000030 |
| 68 | DATA 4 0x020e0748 0x00000030 |
| 69 | DATA 4 0x020e05ac 0x00000030 |
| 70 | DATA 4 0x020e05b4 0x00000030 |
| 71 | DATA 4 0x020e0528 0x00000030 |
| 72 | DATA 4 0x020e0520 0x00000030 |
| 73 | DATA 4 0x020e0514 0x00000030 |
| 74 | DATA 4 0x020e0510 0x00000030 |
| 75 | DATA 4 0x020e05bc 0x00000030 |
| 76 | DATA 4 0x020e05c4 0x00000030 |
| 77 | DATA 4 0x021b0800 0xa1390003 |
| 78 | DATA 4 0x021b080c 0x001b001e |
| 79 | DATA 4 0x021b0810 0x002e0029 |
| 80 | DATA 4 0x021b480c 0x001b002a |
| 81 | DATA 4 0x021b4810 0x0019002c |
| 82 | DATA 4 0x021b083c 0x43240334 |
| 83 | DATA 4 0x021b0840 0x0324031a |
| 84 | DATA 4 0x021b483c 0x43340344 |
| 85 | DATA 4 0x021b4840 0x03280276 |
| 86 | DATA 4 0x021b0848 0x44383A3E |
| 87 | DATA 4 0x021b4848 0x3C3C3846 |
| 88 | DATA 4 0x021b0850 0x2e303230 |
| 89 | DATA 4 0x021b4850 0x38283E34 |
| 90 | DATA 4 0x021b081c 0x33333333 |
| 91 | DATA 4 0x021b0820 0x33333333 |
| 92 | DATA 4 0x021b0824 0x33333333 |
| 93 | DATA 4 0x021b0828 0x33333333 |
| 94 | DATA 4 0x021b481c 0x33333333 |
| 95 | DATA 4 0x021b4820 0x33333333 |
| 96 | DATA 4 0x021b4824 0x33333333 |
| 97 | DATA 4 0x021b4828 0x33333333 |
| 98 | DATA 4 0x021b08c0 0x24912492 |
| 99 | DATA 4 0x021b48c0 0x24912492 |
| 100 | DATA 4 0x021b08b8 0x00000800 |
| 101 | DATA 4 0x021b48b8 0x00000800 |
| 102 | DATA 4 0x021b0004 0x00020036 |
| 103 | DATA 4 0x021b0008 0x09444040 |
| 104 | DATA 4 0x021b000c 0x898E7955 |
| 105 | DATA 4 0x021b0010 0xFF328F64 |
| 106 | DATA 4 0x021b0014 0x01FF00DB |
| 107 | DATA 4 0x021b0018 0x00001740 |
| 108 | DATA 4 0x021b001c 0x00008000 |
| 109 | |
| 110 | DATA 4 0x021b002c 0x000026d2 |
| 111 | DATA 4 0x021b0030 0x008E1023 |
| 112 | DATA 4 0x021b0040 0x00000047 |
| 113 | DATA 4 0x021b0400 0x14420000 |
| 114 | DATA 4 0x021b0000 0x841A0000 |
| 115 | DATA 4 0x00bb0008 0x00000004 |
| 116 | DATA 4 0x00bb000c 0x2891E41A |
| 117 | DATA 4 0x00bb0038 0x00000564 |
| 118 | DATA 4 0x00bb0014 0x00000040 |
| 119 | DATA 4 0x00bb0028 0x00000020 |
| 120 | DATA 4 0x00bb002c 0x00000020 |
| 121 | DATA 4 0x021b001c 0x04088032 |
| 122 | DATA 4 0x021b001c 0x00008033 |
| 123 | DATA 4 0x021b001c 0x00048031 |
| 124 | DATA 4 0x021b001c 0x09408030 |
| 125 | DATA 4 0x021b001c 0x04008040 |
| 126 | DATA 4 0x021b0020 0x00005800 |
| 127 | DATA 4 0x021b0818 0x00011117 |
| 128 | DATA 4 0x021b4818 0x00011117 |
| 129 | DATA 4 0x021b0004 0x00025576 |
| 130 | DATA 4 0x021b0404 0x00011006 |
| 131 | DATA 4 0x021b001c 0x00000000 |
| 132 | /* set the default clock gate to save power */ |
| 133 | DATA 4, 0x020c4068, 0x00C03F3F |
| 134 | DATA 4, 0x020c406c, 0x0030FC03 |
| 135 | DATA 4, 0x020c4070, 0x0FFFC000 |
| 136 | DATA 4, 0x020c4074, 0x3FF00000 |
| 137 | DATA 4, 0x020c4078, 0xFFFFF300 |
| 138 | DATA 4, 0x020c407c, 0x0F0000F3 |
| 139 | DATA 4, 0x020c4080, 0x00000FFF |
| 140 | |
| 141 | /* enable AXI cache for VDOA/VPU/IPU */ |
| 142 | DATA 4, 0x020e0010, 0xF00000CF |
| 143 | /* set IPU AXI-id1 Qos=0x1 AXI-id0/2/3 Qos=0x7 */ |
| 144 | DATA 4, 0x020e0018, 0x77177717 |
| 145 | DATA 4, 0x020e001c, 0x77177717 |