Commit cee055d7eb1c9178f3fca8d576a2cd6bb21aaed6

Authored by Breno Lima
Committed by Ye Li
1 parent 0c515e4972

MLK-20583-1 imx: mx6sabresd: Enable OCOTP CTRL clock in DCD and plugin

The HAB code can not set Field Return and SRK Revoke sticky bits in case
OCOTP CTRL clock is gated out.

In case we disable OCOTP CTRL clock in DCD and plugin those features may
not operate as expected.

Keep OCOTP CTRL clock enabled in DCD and plugin so HAB can propely lock
those features, users should use the CSF Unlock command to prevent those
features from being locked.

Signed-off-by: Breno Lima <breno.lima@nxp.com>
(cherry picked from commit fe78359704fa5c5199daf0274019ae58980bc710)

Showing 6 changed files with 6 additions and 6 deletions Inline Diff

board/freescale/mx6sabresd/mx6dlsabresd.cfg
1 /* 1 /*
2 * Copyright (C) 2014-2016 Freescale Semiconductor, Inc. 2 * Copyright (C) 2014-2016 Freescale Semiconductor, Inc.
3 * Copyright 2017 NXP 3 * Copyright 2017 NXP
4 * 4 *
5 * SPDX-License-Identifier: GPL-2.0+ 5 * SPDX-License-Identifier: GPL-2.0+
6 * 6 *
7 * Refer doc/README.imximage for more details about how-to configure 7 * Refer doc/README.imximage for more details about how-to configure
8 * and create imximage boot image 8 * and create imximage boot image
9 * 9 *
10 * The syntax is taken as close as possible with the kwbimage 10 * The syntax is taken as close as possible with the kwbimage
11 */ 11 */
12 12
13 #define __ASSEMBLY__ 13 #define __ASSEMBLY__
14 #include <config.h> 14 #include <config.h>
15 15
16 /* image version */ 16 /* image version */
17 17
18 IMAGE_VERSION 2 18 IMAGE_VERSION 2
19 19
20 /* 20 /*
21 * Boot Device : one of 21 * Boot Device : one of
22 * spi, sd (the board has no nand neither onenand) 22 * spi, sd (the board has no nand neither onenand)
23 */ 23 */
24 24
25 BOOT_FROM sd 25 BOOT_FROM sd
26 26
27 #ifdef CONFIG_USE_IMXIMG_PLUGIN 27 #ifdef CONFIG_USE_IMXIMG_PLUGIN
28 /*PLUGIN plugin-binary-file IRAM_FREE_START_ADDR*/ 28 /*PLUGIN plugin-binary-file IRAM_FREE_START_ADDR*/
29 PLUGIN board/freescale/mx6sabresd/plugin.bin 0x00907000 29 PLUGIN board/freescale/mx6sabresd/plugin.bin 0x00907000
30 #else 30 #else
31 31
32 #ifdef CONFIG_SECURE_BOOT 32 #ifdef CONFIG_SECURE_BOOT
33 CSF CONFIG_CSF_SIZE 33 CSF CONFIG_CSF_SIZE
34 #endif 34 #endif
35 35
36 /* 36 /*
37 * Device Configuration Data (DCD) 37 * Device Configuration Data (DCD)
38 * 38 *
39 * Each entry must have the format: 39 * Each entry must have the format:
40 * Addr-type Address Value 40 * Addr-type Address Value
41 * 41 *
42 * where: 42 * where:
43 * Addr-type register length (1,2 or 4 bytes) 43 * Addr-type register length (1,2 or 4 bytes)
44 * Address absolute address of the register 44 * Address absolute address of the register
45 * value value to be stored in the register 45 * value value to be stored in the register
46 */ 46 */
47 #ifdef CONFIG_IMX_OPTEE 47 #ifdef CONFIG_IMX_OPTEE
48 SET_BIT 4 0x20c4070 0x3c00000 48 SET_BIT 4 0x20c4070 0x3c00000
49 DATA 4 0x20e0024 0x00000003 49 DATA 4 0x20e0024 0x00000003
50 CHECK_BITS_SET 4 0x20e0024 0x3 50 CHECK_BITS_SET 4 0x20e0024 0x3
51 #endif 51 #endif
52 DATA 4 0x020e0774 0x000C0000 52 DATA 4 0x020e0774 0x000C0000
53 DATA 4 0x020e0754 0x00000000 53 DATA 4 0x020e0754 0x00000000
54 DATA 4 0x020e04ac 0x00000030 54 DATA 4 0x020e04ac 0x00000030
55 DATA 4 0x020e04b0 0x00000030 55 DATA 4 0x020e04b0 0x00000030
56 DATA 4 0x020e0464 0x00000030 56 DATA 4 0x020e0464 0x00000030
57 DATA 4 0x020e0490 0x00000030 57 DATA 4 0x020e0490 0x00000030
58 DATA 4 0x020e074c 0x00000030 58 DATA 4 0x020e074c 0x00000030
59 DATA 4 0x020e0494 0x00000030 59 DATA 4 0x020e0494 0x00000030
60 DATA 4 0x020e04a0 0x00000000 60 DATA 4 0x020e04a0 0x00000000
61 DATA 4 0x020e04b4 0x00000030 61 DATA 4 0x020e04b4 0x00000030
62 DATA 4 0x020e04b8 0x00000030 62 DATA 4 0x020e04b8 0x00000030
63 DATA 4 0x020e076c 0x00000030 63 DATA 4 0x020e076c 0x00000030
64 DATA 4 0x020e0750 0x00020000 64 DATA 4 0x020e0750 0x00020000
65 DATA 4 0x020e04bc 0x00000030 65 DATA 4 0x020e04bc 0x00000030
66 DATA 4 0x020e04c0 0x00000030 66 DATA 4 0x020e04c0 0x00000030
67 DATA 4 0x020e04c4 0x00000030 67 DATA 4 0x020e04c4 0x00000030
68 DATA 4 0x020e04c8 0x00000030 68 DATA 4 0x020e04c8 0x00000030
69 DATA 4 0x020e04cc 0x00000030 69 DATA 4 0x020e04cc 0x00000030
70 DATA 4 0x020e04d0 0x00000030 70 DATA 4 0x020e04d0 0x00000030
71 DATA 4 0x020e04d4 0x00000030 71 DATA 4 0x020e04d4 0x00000030
72 DATA 4 0x020e04d8 0x00000030 72 DATA 4 0x020e04d8 0x00000030
73 DATA 4 0x020e0760 0x00020000 73 DATA 4 0x020e0760 0x00020000
74 DATA 4 0x020e0764 0x00000030 74 DATA 4 0x020e0764 0x00000030
75 DATA 4 0x020e0770 0x00000030 75 DATA 4 0x020e0770 0x00000030
76 DATA 4 0x020e0778 0x00000030 76 DATA 4 0x020e0778 0x00000030
77 DATA 4 0x020e077c 0x00000030 77 DATA 4 0x020e077c 0x00000030
78 DATA 4 0x020e0780 0x00000030 78 DATA 4 0x020e0780 0x00000030
79 DATA 4 0x020e0784 0x00000030 79 DATA 4 0x020e0784 0x00000030
80 DATA 4 0x020e078c 0x00000030 80 DATA 4 0x020e078c 0x00000030
81 DATA 4 0x020e0748 0x00000030 81 DATA 4 0x020e0748 0x00000030
82 DATA 4 0x020e0470 0x00000030 82 DATA 4 0x020e0470 0x00000030
83 DATA 4 0x020e0474 0x00000030 83 DATA 4 0x020e0474 0x00000030
84 DATA 4 0x020e0478 0x00000030 84 DATA 4 0x020e0478 0x00000030
85 DATA 4 0x020e047c 0x00000030 85 DATA 4 0x020e047c 0x00000030
86 DATA 4 0x020e0480 0x00000030 86 DATA 4 0x020e0480 0x00000030
87 DATA 4 0x020e0484 0x00000030 87 DATA 4 0x020e0484 0x00000030
88 DATA 4 0x020e0488 0x00000030 88 DATA 4 0x020e0488 0x00000030
89 DATA 4 0x020e048c 0x00000030 89 DATA 4 0x020e048c 0x00000030
90 DATA 4 0x021b0800 0xa1390003 90 DATA 4 0x021b0800 0xa1390003
91 DATA 4 0x021b080c 0x001F001F 91 DATA 4 0x021b080c 0x001F001F
92 DATA 4 0x021b0810 0x001F001F 92 DATA 4 0x021b0810 0x001F001F
93 DATA 4 0x021b480c 0x001F001F 93 DATA 4 0x021b480c 0x001F001F
94 DATA 4 0x021b4810 0x001F001F 94 DATA 4 0x021b4810 0x001F001F
95 DATA 4 0x021b083c 0x4220021F 95 DATA 4 0x021b083c 0x4220021F
96 DATA 4 0x021b0840 0x0207017E 96 DATA 4 0x021b0840 0x0207017E
97 DATA 4 0x021b483c 0x4201020C 97 DATA 4 0x021b483c 0x4201020C
98 DATA 4 0x021b4840 0x01660172 98 DATA 4 0x021b4840 0x01660172
99 DATA 4 0x021b0848 0x4A4D4E4D 99 DATA 4 0x021b0848 0x4A4D4E4D
100 DATA 4 0x021b4848 0x4A4F5049 100 DATA 4 0x021b4848 0x4A4F5049
101 DATA 4 0x021b0850 0x3F3C3D31 101 DATA 4 0x021b0850 0x3F3C3D31
102 DATA 4 0x021b4850 0x3238372B 102 DATA 4 0x021b4850 0x3238372B
103 DATA 4 0x021b081c 0x33333333 103 DATA 4 0x021b081c 0x33333333
104 DATA 4 0x021b0820 0x33333333 104 DATA 4 0x021b0820 0x33333333
105 DATA 4 0x021b0824 0x33333333 105 DATA 4 0x021b0824 0x33333333
106 DATA 4 0x021b0828 0x33333333 106 DATA 4 0x021b0828 0x33333333
107 DATA 4 0x021b481c 0x33333333 107 DATA 4 0x021b481c 0x33333333
108 DATA 4 0x021b4820 0x33333333 108 DATA 4 0x021b4820 0x33333333
109 DATA 4 0x021b4824 0x33333333 109 DATA 4 0x021b4824 0x33333333
110 DATA 4 0x021b4828 0x33333333 110 DATA 4 0x021b4828 0x33333333
111 DATA 4 0x021b08b8 0x00000800 111 DATA 4 0x021b08b8 0x00000800
112 DATA 4 0x021b48b8 0x00000800 112 DATA 4 0x021b48b8 0x00000800
113 DATA 4 0x021b0004 0x0002002D 113 DATA 4 0x021b0004 0x0002002D
114 DATA 4 0x021b0008 0x00333030 114 DATA 4 0x021b0008 0x00333030
115 DATA 4 0x021b000c 0x3F435313 115 DATA 4 0x021b000c 0x3F435313
116 DATA 4 0x021b0010 0xB66E8B63 116 DATA 4 0x021b0010 0xB66E8B63
117 DATA 4 0x021b0014 0x01FF00DB 117 DATA 4 0x021b0014 0x01FF00DB
118 DATA 4 0x021b0018 0x00001740 118 DATA 4 0x021b0018 0x00001740
119 DATA 4 0x021b001c 0x00008000 119 DATA 4 0x021b001c 0x00008000
120 DATA 4 0x021b002c 0x000026d2 120 DATA 4 0x021b002c 0x000026d2
121 DATA 4 0x021b0030 0x00431023 121 DATA 4 0x021b0030 0x00431023
122 DATA 4 0x021b0040 0x00000027 122 DATA 4 0x021b0040 0x00000027
123 DATA 4 0x021b0000 0x831A0000 123 DATA 4 0x021b0000 0x831A0000
124 DATA 4 0x021b001c 0x04008032 124 DATA 4 0x021b001c 0x04008032
125 DATA 4 0x021b001c 0x00008033 125 DATA 4 0x021b001c 0x00008033
126 DATA 4 0x021b001c 0x00048031 126 DATA 4 0x021b001c 0x00048031
127 DATA 4 0x021b001c 0x05208030 127 DATA 4 0x021b001c 0x05208030
128 DATA 4 0x021b001c 0x04008040 128 DATA 4 0x021b001c 0x04008040
129 DATA 4 0x021b0020 0x00005800 129 DATA 4 0x021b0020 0x00005800
130 DATA 4 0x021b0818 0x00011117 130 DATA 4 0x021b0818 0x00011117
131 DATA 4 0x021b4818 0x00011117 131 DATA 4 0x021b4818 0x00011117
132 DATA 4 0x021b0004 0x0002556D 132 DATA 4 0x021b0004 0x0002556D
133 DATA 4 0x021b0404 0x00011006 133 DATA 4 0x021b0404 0x00011006
134 DATA 4 0x021b001c 0x00000000 134 DATA 4 0x021b001c 0x00000000
135 135
136 /* set the default clock gate to save power */ 136 /* set the default clock gate to save power */
137 DATA 4 0x020c4068 0x00C03F3F 137 DATA 4 0x020c4068 0x00C03F3F
138 DATA 4 0x020c406c 0x0030FC03 138 DATA 4 0x020c406c 0x0030FC03
139 DATA 4 0x020c4070 0x0FFFC000 139 DATA 4 0x020c4070 0x0FFFF000
140 DATA 4 0x020c4074 0x3FF00000 140 DATA 4 0x020c4074 0x3FF00000
141 DATA 4 0x020c4078 0x00FFF300 141 DATA 4 0x020c4078 0x00FFF300
142 DATA 4 0x020c407c 0x0F0000C3 142 DATA 4 0x020c407c 0x0F0000C3
143 DATA 4 0x020c4080 0x000003FF 143 DATA 4 0x020c4080 0x000003FF
144 144
145 /* enable AXI cache for VDOA/VPU/IPU */ 145 /* enable AXI cache for VDOA/VPU/IPU */
146 DATA 4 0x020e0010 0xF00000CF 146 DATA 4 0x020e0010 0xF00000CF
147 /* set IPU AXI-id0 Qos=0xf(bypass) AXI-id1 Qos=0x7 */ 147 /* set IPU AXI-id0 Qos=0xf(bypass) AXI-id1 Qos=0x7 */
148 DATA 4 0x020e0018 0x007F007F 148 DATA 4 0x020e0018 0x007F007F
149 DATA 4 0x020e001c 0x007F007F 149 DATA 4 0x020e001c 0x007F007F
150 #endif 150 #endif
151 151
board/freescale/mx6sabresd/mx6q_4x_mt41j128.cfg
1 /* 1 /*
2 * Copyright (C) 2011-2016 Freescale Semiconductor, Inc. 2 * Copyright (C) 2011-2016 Freescale Semiconductor, Inc.
3 * Copyright 2017 NXP 3 * Copyright 2017 NXP
4 * Jason Liu <r64343@freescale.com> 4 * Jason Liu <r64343@freescale.com>
5 * 5 *
6 * SPDX-License-Identifier: GPL-2.0+ 6 * SPDX-License-Identifier: GPL-2.0+
7 * 7 *
8 * Refer doc/README.imximage for more details about how-to configure 8 * Refer doc/README.imximage for more details about how-to configure
9 * and create imximage boot image 9 * and create imximage boot image
10 * 10 *
11 * The syntax is taken as close as possible with the kwbimage 11 * The syntax is taken as close as possible with the kwbimage
12 */ 12 */
13 13
14 #define __ASSEMBLY__ 14 #define __ASSEMBLY__
15 #include <config.h> 15 #include <config.h>
16 16
17 /* image version */ 17 /* image version */
18 IMAGE_VERSION 2 18 IMAGE_VERSION 2
19 19
20 /* 20 /*
21 * Boot Device : one of 21 * Boot Device : one of
22 * spi, sd (the board has no nand neither onenand) 22 * spi, sd (the board has no nand neither onenand)
23 */ 23 */
24 BOOT_FROM sd 24 BOOT_FROM sd
25 25
26 #ifdef CONFIG_USE_IMXIMG_PLUGIN 26 #ifdef CONFIG_USE_IMXIMG_PLUGIN
27 /*PLUGIN plugin-binary-file IRAM_FREE_START_ADDR*/ 27 /*PLUGIN plugin-binary-file IRAM_FREE_START_ADDR*/
28 PLUGIN board/freescale/mx6sabresd/plugin.bin 0x00907000 28 PLUGIN board/freescale/mx6sabresd/plugin.bin 0x00907000
29 #else 29 #else
30 30
31 #ifdef CONFIG_SECURE_BOOT 31 #ifdef CONFIG_SECURE_BOOT
32 CSF CONFIG_CSF_SIZE 32 CSF CONFIG_CSF_SIZE
33 #endif 33 #endif
34 34
35 /* 35 /*
36 * Device Configuration Data (DCD) 36 * Device Configuration Data (DCD)
37 * 37 *
38 * Each entry must have the format: 38 * Each entry must have the format:
39 * Addr-type Address Value 39 * Addr-type Address Value
40 * 40 *
41 * where: 41 * where:
42 * Addr-type register length (1,2 or 4 bytes) 42 * Addr-type register length (1,2 or 4 bytes)
43 * Address absolute address of the register 43 * Address absolute address of the register
44 * value value to be stored in the register 44 * value value to be stored in the register
45 */ 45 */
46 #ifdef CONFIG_IMX_OPTEE 46 #ifdef CONFIG_IMX_OPTEE
47 SET_BIT 4 0x20c4070 0x3c00000 47 SET_BIT 4 0x20c4070 0x3c00000
48 DATA 4 0x20e0024 0x00000003 48 DATA 4 0x20e0024 0x00000003
49 CHECK_BITS_SET 4 0x20e0024 0x3 49 CHECK_BITS_SET 4 0x20e0024 0x3
50 #endif 50 #endif
51 DATA 4 0x020e0798 0x000C0000 51 DATA 4 0x020e0798 0x000C0000
52 DATA 4 0x020e0758 0x00000000 52 DATA 4 0x020e0758 0x00000000
53 DATA 4 0x020e0588 0x00000030 53 DATA 4 0x020e0588 0x00000030
54 DATA 4 0x020e0594 0x00000030 54 DATA 4 0x020e0594 0x00000030
55 DATA 4 0x020e056c 0x00000030 55 DATA 4 0x020e056c 0x00000030
56 DATA 4 0x020e0578 0x00000030 56 DATA 4 0x020e0578 0x00000030
57 DATA 4 0x020e074c 0x00000030 57 DATA 4 0x020e074c 0x00000030
58 DATA 4 0x020e057c 0x00000030 58 DATA 4 0x020e057c 0x00000030
59 DATA 4 0x020e058c 0x00000000 59 DATA 4 0x020e058c 0x00000000
60 DATA 4 0x020e059c 0x00000030 60 DATA 4 0x020e059c 0x00000030
61 DATA 4 0x020e05a0 0x00000030 61 DATA 4 0x020e05a0 0x00000030
62 DATA 4 0x020e078c 0x00000030 62 DATA 4 0x020e078c 0x00000030
63 DATA 4 0x020e0750 0x00020000 63 DATA 4 0x020e0750 0x00020000
64 DATA 4 0x020e05a8 0x00000030 64 DATA 4 0x020e05a8 0x00000030
65 DATA 4 0x020e05b0 0x00000030 65 DATA 4 0x020e05b0 0x00000030
66 DATA 4 0x020e0524 0x00000030 66 DATA 4 0x020e0524 0x00000030
67 DATA 4 0x020e051c 0x00000030 67 DATA 4 0x020e051c 0x00000030
68 DATA 4 0x020e0518 0x00000030 68 DATA 4 0x020e0518 0x00000030
69 DATA 4 0x020e050c 0x00000030 69 DATA 4 0x020e050c 0x00000030
70 DATA 4 0x020e05b8 0x00000030 70 DATA 4 0x020e05b8 0x00000030
71 DATA 4 0x020e05c0 0x00000030 71 DATA 4 0x020e05c0 0x00000030
72 DATA 4 0x020e0774 0x00020000 72 DATA 4 0x020e0774 0x00020000
73 DATA 4 0x020e0784 0x00000030 73 DATA 4 0x020e0784 0x00000030
74 DATA 4 0x020e0788 0x00000030 74 DATA 4 0x020e0788 0x00000030
75 DATA 4 0x020e0794 0x00000030 75 DATA 4 0x020e0794 0x00000030
76 DATA 4 0x020e079c 0x00000030 76 DATA 4 0x020e079c 0x00000030
77 DATA 4 0x020e07a0 0x00000030 77 DATA 4 0x020e07a0 0x00000030
78 DATA 4 0x020e07a4 0x00000030 78 DATA 4 0x020e07a4 0x00000030
79 DATA 4 0x020e07a8 0x00000030 79 DATA 4 0x020e07a8 0x00000030
80 DATA 4 0x020e0748 0x00000030 80 DATA 4 0x020e0748 0x00000030
81 DATA 4 0x020e05ac 0x00000030 81 DATA 4 0x020e05ac 0x00000030
82 DATA 4 0x020e05b4 0x00000030 82 DATA 4 0x020e05b4 0x00000030
83 DATA 4 0x020e0528 0x00000030 83 DATA 4 0x020e0528 0x00000030
84 DATA 4 0x020e0520 0x00000030 84 DATA 4 0x020e0520 0x00000030
85 DATA 4 0x020e0514 0x00000030 85 DATA 4 0x020e0514 0x00000030
86 DATA 4 0x020e0510 0x00000030 86 DATA 4 0x020e0510 0x00000030
87 DATA 4 0x020e05bc 0x00000030 87 DATA 4 0x020e05bc 0x00000030
88 DATA 4 0x020e05c4 0x00000030 88 DATA 4 0x020e05c4 0x00000030
89 DATA 4 0x021b0800 0xa1390003 89 DATA 4 0x021b0800 0xa1390003
90 DATA 4 0x021b080c 0x001F001F 90 DATA 4 0x021b080c 0x001F001F
91 DATA 4 0x021b0810 0x001F001F 91 DATA 4 0x021b0810 0x001F001F
92 DATA 4 0x021b480c 0x001F001F 92 DATA 4 0x021b480c 0x001F001F
93 DATA 4 0x021b4810 0x001F001F 93 DATA 4 0x021b4810 0x001F001F
94 DATA 4 0x021b083c 0x43270338 94 DATA 4 0x021b083c 0x43270338
95 DATA 4 0x021b0840 0x03200314 95 DATA 4 0x021b0840 0x03200314
96 DATA 4 0x021b483c 0x431A032F 96 DATA 4 0x021b483c 0x431A032F
97 DATA 4 0x021b4840 0x03200263 97 DATA 4 0x021b4840 0x03200263
98 DATA 4 0x021b0848 0x4B434748 98 DATA 4 0x021b0848 0x4B434748
99 DATA 4 0x021b4848 0x4445404C 99 DATA 4 0x021b4848 0x4445404C
100 DATA 4 0x021b0850 0x38444542 100 DATA 4 0x021b0850 0x38444542
101 DATA 4 0x021b4850 0x4935493A 101 DATA 4 0x021b4850 0x4935493A
102 DATA 4 0x021b081c 0x33333333 102 DATA 4 0x021b081c 0x33333333
103 DATA 4 0x021b0820 0x33333333 103 DATA 4 0x021b0820 0x33333333
104 DATA 4 0x021b0824 0x33333333 104 DATA 4 0x021b0824 0x33333333
105 DATA 4 0x021b0828 0x33333333 105 DATA 4 0x021b0828 0x33333333
106 DATA 4 0x021b481c 0x33333333 106 DATA 4 0x021b481c 0x33333333
107 DATA 4 0x021b4820 0x33333333 107 DATA 4 0x021b4820 0x33333333
108 DATA 4 0x021b4824 0x33333333 108 DATA 4 0x021b4824 0x33333333
109 DATA 4 0x021b4828 0x33333333 109 DATA 4 0x021b4828 0x33333333
110 DATA 4 0x021b08b8 0x00000800 110 DATA 4 0x021b08b8 0x00000800
111 DATA 4 0x021b48b8 0x00000800 111 DATA 4 0x021b48b8 0x00000800
112 DATA 4 0x021b0004 0x00020036 112 DATA 4 0x021b0004 0x00020036
113 DATA 4 0x021b0008 0x09444040 113 DATA 4 0x021b0008 0x09444040
114 DATA 4 0x021b000c 0x555A7975 114 DATA 4 0x021b000c 0x555A7975
115 DATA 4 0x021b0010 0xFF538F64 115 DATA 4 0x021b0010 0xFF538F64
116 DATA 4 0x021b0014 0x01FF00DB 116 DATA 4 0x021b0014 0x01FF00DB
117 DATA 4 0x021b0018 0x00001740 117 DATA 4 0x021b0018 0x00001740
118 DATA 4 0x021b001c 0x00008000 118 DATA 4 0x021b001c 0x00008000
119 DATA 4 0x021b002c 0x000026d2 119 DATA 4 0x021b002c 0x000026d2
120 DATA 4 0x021b0030 0x005A1023 120 DATA 4 0x021b0030 0x005A1023
121 DATA 4 0x021b0040 0x00000027 121 DATA 4 0x021b0040 0x00000027
122 DATA 4 0x021b0000 0x831A0000 122 DATA 4 0x021b0000 0x831A0000
123 DATA 4 0x021b001c 0x04088032 123 DATA 4 0x021b001c 0x04088032
124 DATA 4 0x021b001c 0x00008033 124 DATA 4 0x021b001c 0x00008033
125 DATA 4 0x021b001c 0x00048031 125 DATA 4 0x021b001c 0x00048031
126 DATA 4 0x021b001c 0x09408030 126 DATA 4 0x021b001c 0x09408030
127 DATA 4 0x021b001c 0x04008040 127 DATA 4 0x021b001c 0x04008040
128 DATA 4 0x021b0020 0x00005800 128 DATA 4 0x021b0020 0x00005800
129 DATA 4 0x021b0818 0x00011117 129 DATA 4 0x021b0818 0x00011117
130 DATA 4 0x021b4818 0x00011117 130 DATA 4 0x021b4818 0x00011117
131 DATA 4 0x021b0004 0x00025576 131 DATA 4 0x021b0004 0x00025576
132 DATA 4 0x021b0404 0x00011006 132 DATA 4 0x021b0404 0x00011006
133 DATA 4 0x021b001c 0x00000000 133 DATA 4 0x021b001c 0x00000000
134 134
135 /* set the default clock gate to save power */ 135 /* set the default clock gate to save power */
136 DATA 4 0x020c4068 0x00C03F3F 136 DATA 4 0x020c4068 0x00C03F3F
137 DATA 4 0x020c406c 0x0030FC03 137 DATA 4 0x020c406c 0x0030FC03
138 DATA 4 0x020c4070 0x0FFFC000 138 DATA 4 0x020c4070 0x0FFFF000
139 DATA 4 0x020c4074 0x3FF00000 139 DATA 4 0x020c4074 0x3FF00000
140 DATA 4 0x020c4078 0x00FFF300 140 DATA 4 0x020c4078 0x00FFF300
141 DATA 4 0x020c407c 0x0F0000F3 141 DATA 4 0x020c407c 0x0F0000F3
142 DATA 4 0x020c4080 0x000003FF 142 DATA 4 0x020c4080 0x000003FF
143 143
144 /* enable AXI cache for VDOA/VPU/IPU */ 144 /* enable AXI cache for VDOA/VPU/IPU */
145 DATA 4 0x020e0010 0xF00000CF 145 DATA 4 0x020e0010 0xF00000CF
146 /* set IPU AXI-id0 Qos=0xf(bypass) AXI-id1 Qos=0x7 */ 146 /* set IPU AXI-id0 Qos=0xf(bypass) AXI-id1 Qos=0x7 */
147 DATA 4 0x020e0018 0x007F007F 147 DATA 4 0x020e0018 0x007F007F
148 DATA 4 0x020e001c 0x007F007F 148 DATA 4 0x020e001c 0x007F007F
149 149
150 /* 150 /*
151 * Setup CCM_CCOSR register as follows: 151 * Setup CCM_CCOSR register as follows:
152 * 152 *
153 * cko1_en = 1 --> CKO1 enabled 153 * cko1_en = 1 --> CKO1 enabled
154 * cko1_div = 111 --> divide by 8 154 * cko1_div = 111 --> divide by 8
155 * cko1_sel = 1011 --> ahb_clk_root 155 * cko1_sel = 1011 --> ahb_clk_root
156 * 156 *
157 * This sets CKO1 at ahb_clk_root/8 = 132/8 = 16.5 MHz 157 * This sets CKO1 at ahb_clk_root/8 = 132/8 = 16.5 MHz
158 */ 158 */
159 DATA 4 0x020c4060 0x000000fb 159 DATA 4 0x020c4060 0x000000fb
160 #endif 160 #endif
161 161
board/freescale/mx6sabresd/mx6qp.cfg
1 /* 1 /*
2 * Copyright (C) 2015-2016 Freescale Semiconductor, Inc. 2 * Copyright (C) 2015-2016 Freescale Semiconductor, Inc.
3 * 3 *
4 * SPDX-License-Identifier: GPL-2.0+ 4 * SPDX-License-Identifier: GPL-2.0+
5 * 5 *
6 * Refer doc/README.imximage for more details about how-to configure 6 * Refer doc/README.imximage for more details about how-to configure
7 * and create imximage boot image 7 * and create imximage boot image
8 * 8 *
9 * The syntax is taken as close as possible with the kwbimage 9 * The syntax is taken as close as possible with the kwbimage
10 */ 10 */
11 11
12 #define __ASSEMBLY__ 12 #define __ASSEMBLY__
13 #include <config.h> 13 #include <config.h>
14 /* image version */ 14 /* image version */
15 IMAGE_VERSION 2 15 IMAGE_VERSION 2
16 16
17 /* 17 /*
18 * Boot Device : one of 18 * Boot Device : one of
19 * spi, sd (the board has no nand neither onenand) 19 * spi, sd (the board has no nand neither onenand)
20 */ 20 */
21 BOOT_FROM sd 21 BOOT_FROM sd
22 22
23 #ifdef CONFIG_USE_IMXIMG_PLUGIN 23 #ifdef CONFIG_USE_IMXIMG_PLUGIN
24 /*PLUGIN plugin-binary-file IRAM_FREE_START_ADDR*/ 24 /*PLUGIN plugin-binary-file IRAM_FREE_START_ADDR*/
25 PLUGIN board/freescale/mx6sabresd/plugin.bin 0x00907000 25 PLUGIN board/freescale/mx6sabresd/plugin.bin 0x00907000
26 #else 26 #else
27 27
28 #ifdef CONFIG_SECURE_BOOT 28 #ifdef CONFIG_SECURE_BOOT
29 CSF CONFIG_CSF_SIZE 29 CSF CONFIG_CSF_SIZE
30 #endif 30 #endif
31 31
32 /* 32 /*
33 * Device Configuration Data (DCD) 33 * Device Configuration Data (DCD)
34 * 34 *
35 * Each entry must have the format: 35 * Each entry must have the format:
36 * Addr-type Address Value 36 * Addr-type Address Value
37 * 37 *
38 * where: 38 * where:
39 * Addr-type register length (1,2 or 4 bytes) 39 * Addr-type register length (1,2 or 4 bytes)
40 * Address absolute address of the register 40 * Address absolute address of the register
41 * value value to be stored in the register 41 * value value to be stored in the register
42 */ 42 */
43 DATA 4, 0x020e0798, 0x000c0000 43 DATA 4, 0x020e0798, 0x000c0000
44 DATA 4, 0x020e0758, 0x00000000 44 DATA 4, 0x020e0758, 0x00000000
45 DATA 4, 0x020e0588, 0x00000030 45 DATA 4, 0x020e0588, 0x00000030
46 DATA 4, 0x020e0594, 0x00000030 46 DATA 4, 0x020e0594, 0x00000030
47 DATA 4, 0x020e056c, 0x00000030 47 DATA 4, 0x020e056c, 0x00000030
48 DATA 4, 0x020e0578, 0x00000030 48 DATA 4, 0x020e0578, 0x00000030
49 DATA 4, 0x020e074c, 0x00000030 49 DATA 4, 0x020e074c, 0x00000030
50 DATA 4, 0x020e057c, 0x00000030 50 DATA 4, 0x020e057c, 0x00000030
51 DATA 4, 0x020e058c, 0x00000000 51 DATA 4, 0x020e058c, 0x00000000
52 DATA 4, 0x020e059c, 0x00000030 52 DATA 4, 0x020e059c, 0x00000030
53 DATA 4, 0x020e05a0, 0x00000030 53 DATA 4, 0x020e05a0, 0x00000030
54 DATA 4, 0x020e078c, 0x00000030 54 DATA 4, 0x020e078c, 0x00000030
55 DATA 4, 0x020e0750, 0x00020000 55 DATA 4, 0x020e0750, 0x00020000
56 DATA 4, 0x020e05a8, 0x00000030 56 DATA 4, 0x020e05a8, 0x00000030
57 DATA 4, 0x020e05b0, 0x00000030 57 DATA 4, 0x020e05b0, 0x00000030
58 DATA 4, 0x020e0524, 0x00000030 58 DATA 4, 0x020e0524, 0x00000030
59 DATA 4, 0x020e051c, 0x00000030 59 DATA 4, 0x020e051c, 0x00000030
60 DATA 4, 0x020e0518, 0x00000030 60 DATA 4, 0x020e0518, 0x00000030
61 DATA 4, 0x020e050c, 0x00000030 61 DATA 4, 0x020e050c, 0x00000030
62 DATA 4, 0x020e05b8, 0x00000030 62 DATA 4, 0x020e05b8, 0x00000030
63 DATA 4, 0x020e05c0, 0x00000030 63 DATA 4, 0x020e05c0, 0x00000030
64 64
65 DATA 4, 0x020e0534, 0x00018200 65 DATA 4, 0x020e0534, 0x00018200
66 DATA 4, 0x020e0538, 0x00008000 66 DATA 4, 0x020e0538, 0x00008000
67 DATA 4, 0x020e053c, 0x00018200 67 DATA 4, 0x020e053c, 0x00018200
68 DATA 4, 0x020e0540, 0x00018200 68 DATA 4, 0x020e0540, 0x00018200
69 DATA 4, 0x020e0544, 0x00018200 69 DATA 4, 0x020e0544, 0x00018200
70 DATA 4, 0x020e0548, 0x00018200 70 DATA 4, 0x020e0548, 0x00018200
71 DATA 4, 0x020e054c, 0x00018200 71 DATA 4, 0x020e054c, 0x00018200
72 DATA 4, 0x020e0550, 0x00018200 72 DATA 4, 0x020e0550, 0x00018200
73 73
74 DATA 4, 0x020e0774, 0x00020000 74 DATA 4, 0x020e0774, 0x00020000
75 DATA 4, 0x020e0784, 0x00000030 75 DATA 4, 0x020e0784, 0x00000030
76 DATA 4, 0x020e0788, 0x00000030 76 DATA 4, 0x020e0788, 0x00000030
77 DATA 4, 0x020e0794, 0x00000030 77 DATA 4, 0x020e0794, 0x00000030
78 DATA 4, 0x020e079c, 0x00000030 78 DATA 4, 0x020e079c, 0x00000030
79 DATA 4, 0x020e07a0, 0x00000030 79 DATA 4, 0x020e07a0, 0x00000030
80 DATA 4, 0x020e07a4, 0x00000030 80 DATA 4, 0x020e07a4, 0x00000030
81 DATA 4, 0x020e07a8, 0x00000030 81 DATA 4, 0x020e07a8, 0x00000030
82 DATA 4, 0x020e0748, 0x00000030 82 DATA 4, 0x020e0748, 0x00000030
83 DATA 4, 0x020e05ac, 0x00000030 83 DATA 4, 0x020e05ac, 0x00000030
84 DATA 4, 0x020e05b4, 0x00000030 84 DATA 4, 0x020e05b4, 0x00000030
85 DATA 4, 0x020e0528, 0x00000030 85 DATA 4, 0x020e0528, 0x00000030
86 DATA 4, 0x020e0520, 0x00000030 86 DATA 4, 0x020e0520, 0x00000030
87 DATA 4, 0x020e0514, 0x00000030 87 DATA 4, 0x020e0514, 0x00000030
88 DATA 4, 0x020e0510, 0x00000030 88 DATA 4, 0x020e0510, 0x00000030
89 DATA 4, 0x020e05bc, 0x00000030 89 DATA 4, 0x020e05bc, 0x00000030
90 DATA 4, 0x020e05c4, 0x00000030 90 DATA 4, 0x020e05c4, 0x00000030
91 DATA 4, 0x021b0800, 0xa1390003 91 DATA 4, 0x021b0800, 0xa1390003
92 DATA 4, 0x021b080c, 0x001b001e 92 DATA 4, 0x021b080c, 0x001b001e
93 DATA 4, 0x021b0810, 0x002e0029 93 DATA 4, 0x021b0810, 0x002e0029
94 DATA 4, 0x021b480c, 0x001b002a 94 DATA 4, 0x021b480c, 0x001b002a
95 DATA 4, 0x021b4810, 0x0019002c 95 DATA 4, 0x021b4810, 0x0019002c
96 DATA 4, 0x021b083c, 0x43240334 96 DATA 4, 0x021b083c, 0x43240334
97 DATA 4, 0x021b0840, 0x0324031a 97 DATA 4, 0x021b0840, 0x0324031a
98 DATA 4, 0x021b483c, 0x43340344 98 DATA 4, 0x021b483c, 0x43340344
99 DATA 4, 0x021b4840, 0x03280276 99 DATA 4, 0x021b4840, 0x03280276
100 DATA 4, 0x021b0848, 0x44383A3E 100 DATA 4, 0x021b0848, 0x44383A3E
101 DATA 4, 0x021b4848, 0x3C3C3846 101 DATA 4, 0x021b4848, 0x3C3C3846
102 DATA 4, 0x021b0850, 0x2e303230 102 DATA 4, 0x021b0850, 0x2e303230
103 DATA 4, 0x021b4850, 0x38283E34 103 DATA 4, 0x021b4850, 0x38283E34
104 DATA 4, 0x021b081c, 0x33333333 104 DATA 4, 0x021b081c, 0x33333333
105 DATA 4, 0x021b0820, 0x33333333 105 DATA 4, 0x021b0820, 0x33333333
106 DATA 4, 0x021b0824, 0x33333333 106 DATA 4, 0x021b0824, 0x33333333
107 DATA 4, 0x021b0828, 0x33333333 107 DATA 4, 0x021b0828, 0x33333333
108 DATA 4, 0x021b481c, 0x33333333 108 DATA 4, 0x021b481c, 0x33333333
109 DATA 4, 0x021b4820, 0x33333333 109 DATA 4, 0x021b4820, 0x33333333
110 DATA 4, 0x021b4824, 0x33333333 110 DATA 4, 0x021b4824, 0x33333333
111 DATA 4, 0x021b4828, 0x33333333 111 DATA 4, 0x021b4828, 0x33333333
112 DATA 4, 0x021b08c0, 0x24912489 112 DATA 4, 0x021b08c0, 0x24912489
113 DATA 4, 0x021b48c0, 0x24914452 113 DATA 4, 0x021b48c0, 0x24914452
114 DATA 4, 0x021b08b8, 0x00000800 114 DATA 4, 0x021b08b8, 0x00000800
115 DATA 4, 0x021b48b8, 0x00000800 115 DATA 4, 0x021b48b8, 0x00000800
116 DATA 4, 0x021b0004, 0x00020036 116 DATA 4, 0x021b0004, 0x00020036
117 DATA 4, 0x021b0008, 0x24444040 117 DATA 4, 0x021b0008, 0x24444040
118 DATA 4, 0x021b000c, 0x555A7955 118 DATA 4, 0x021b000c, 0x555A7955
119 DATA 4, 0x021b0010, 0xFF320F64 119 DATA 4, 0x021b0010, 0xFF320F64
120 DATA 4, 0x021b0014, 0x01ff00db 120 DATA 4, 0x021b0014, 0x01ff00db
121 DATA 4, 0x021b0018, 0x00011740 121 DATA 4, 0x021b0018, 0x00011740
122 DATA 4, 0x021b001c, 0x00008000 122 DATA 4, 0x021b001c, 0x00008000
123 DATA 4, 0x021b002c, 0x000026d2 123 DATA 4, 0x021b002c, 0x000026d2
124 DATA 4, 0x021b0030, 0x005A1023 124 DATA 4, 0x021b0030, 0x005A1023
125 DATA 4, 0x021b0040, 0x00000027 125 DATA 4, 0x021b0040, 0x00000027
126 DATA 4, 0x021b0400, 0x14420000 126 DATA 4, 0x021b0400, 0x14420000
127 DATA 4, 0x021b0000, 0x831A0000 127 DATA 4, 0x021b0000, 0x831A0000
128 DATA 4, 0x021b0890, 0x00400C58 128 DATA 4, 0x021b0890, 0x00400C58
129 DATA 4, 0x00bb0008, 0x00000000 129 DATA 4, 0x00bb0008, 0x00000000
130 DATA 4, 0x00bb000c, 0x2891E41A 130 DATA 4, 0x00bb000c, 0x2891E41A
131 DATA 4, 0x00bb0038, 0x00000564 131 DATA 4, 0x00bb0038, 0x00000564
132 DATA 4, 0x00bb0014, 0x00000040 132 DATA 4, 0x00bb0014, 0x00000040
133 DATA 4, 0x00bb0028, 0x00000020 133 DATA 4, 0x00bb0028, 0x00000020
134 DATA 4, 0x00bb002c, 0x00000020 134 DATA 4, 0x00bb002c, 0x00000020
135 DATA 4, 0x021b001c, 0x04088032 135 DATA 4, 0x021b001c, 0x04088032
136 DATA 4, 0x021b001c, 0x00008033 136 DATA 4, 0x021b001c, 0x00008033
137 DATA 4, 0x021b001c, 0x00048031 137 DATA 4, 0x021b001c, 0x00048031
138 DATA 4, 0x021b001c, 0x09408030 138 DATA 4, 0x021b001c, 0x09408030
139 DATA 4, 0x021b001c, 0x04008040 139 DATA 4, 0x021b001c, 0x04008040
140 DATA 4, 0x021b0020, 0x00005800 140 DATA 4, 0x021b0020, 0x00005800
141 DATA 4, 0x021b0818, 0x00011117 141 DATA 4, 0x021b0818, 0x00011117
142 DATA 4, 0x021b4818, 0x00011117 142 DATA 4, 0x021b4818, 0x00011117
143 DATA 4, 0x021b0004, 0x00025576 143 DATA 4, 0x021b0004, 0x00025576
144 DATA 4, 0x021b0404, 0x00011006 144 DATA 4, 0x021b0404, 0x00011006
145 DATA 4, 0x021b001c, 0x00000000 145 DATA 4, 0x021b001c, 0x00000000
146 146
147 /* set the default clock gate to save power */ 147 /* set the default clock gate to save power */
148 DATA 4, 0x020c4068, 0x00C03F3F 148 DATA 4, 0x020c4068, 0x00C03F3F
149 DATA 4, 0x020c406c, 0x0030FC03 149 DATA 4, 0x020c406c, 0x0030FC03
150 DATA 4, 0x020c4070, 0x0FFFC000 150 DATA 4, 0x020c4070, 0x0FFFF000
151 DATA 4, 0x020c4074, 0x3FF00000 151 DATA 4, 0x020c4074, 0x3FF00000
152 DATA 4, 0x020c4078, 0x00FFF300 152 DATA 4, 0x020c4078, 0x00FFF300
153 DATA 4, 0x020c407c, 0x0F0000F3 153 DATA 4, 0x020c407c, 0x0F0000F3
154 DATA 4, 0x020c4080, 0x000003FF 154 DATA 4, 0x020c4080, 0x000003FF
155 155
156 /* enable AXI cache for VDOA/VPU/IPU */ 156 /* enable AXI cache for VDOA/VPU/IPU */
157 DATA 4, 0x020e0010, 0xF00000CF 157 DATA 4, 0x020e0010, 0xF00000CF
158 /* set IPU AXI-id1 Qos=0x1 AXI-id0/2/3 Qos=0x7 */ 158 /* set IPU AXI-id1 Qos=0x1 AXI-id0/2/3 Qos=0x7 */
159 DATA 4, 0x020e0018, 0x77177717 159 DATA 4, 0x020e0018, 0x77177717
160 DATA 4, 0x020e001c, 0x77177717 160 DATA 4, 0x020e001c, 0x77177717
161 #endif 161 #endif
162 162
board/freescale/mx6sabresd/mx6qp_optee.cfg
1 /* 1 /*
2 * Copyright (C) 2015-2016 Freescale Semiconductor, Inc. 2 * Copyright (C) 2015-2016 Freescale Semiconductor, Inc.
3 * Copyright 2017 NXP 3 * Copyright 2017 NXP
4 * 4 *
5 * SPDX-License-Identifier: GPL-2.0+ 5 * SPDX-License-Identifier: GPL-2.0+
6 * 6 *
7 * Refer doc/README.imximage for more details about how-to configure 7 * Refer doc/README.imximage for more details about how-to configure
8 * and create imximage boot image 8 * and create imximage boot image
9 * 9 *
10 * The syntax is taken as close as possible with the kwbimage 10 * The syntax is taken as close as possible with the kwbimage
11 */ 11 */
12 12
13 #define __ASSEMBLY__ 13 #define __ASSEMBLY__
14 #include <config.h> 14 #include <config.h>
15 /* image version */ 15 /* image version */
16 IMAGE_VERSION 2 16 IMAGE_VERSION 2
17 17
18 /* 18 /*
19 * Boot Device : one of 19 * Boot Device : one of
20 * spi, sd (the board has no nand neither onenand) 20 * spi, sd (the board has no nand neither onenand)
21 */ 21 */
22 BOOT_FROM sd 22 BOOT_FROM sd
23 23
24 #ifdef CONFIG_USE_IMXIMG_PLUGIN 24 #ifdef CONFIG_USE_IMXIMG_PLUGIN
25 /*PLUGIN plugin-binary-file IRAM_FREE_START_ADDR*/ 25 /*PLUGIN plugin-binary-file IRAM_FREE_START_ADDR*/
26 PLUGIN board/freescale/mx6sabresd/plugin.bin 0x00907000 26 PLUGIN board/freescale/mx6sabresd/plugin.bin 0x00907000
27 #else 27 #else
28 28
29 #ifdef CONFIG_SECURE_BOOT 29 #ifdef CONFIG_SECURE_BOOT
30 CSF CONFIG_CSF_SIZE 30 CSF CONFIG_CSF_SIZE
31 #endif 31 #endif
32 32
33 /* 33 /*
34 * Device Configuration Data (DCD) 34 * Device Configuration Data (DCD)
35 * 35 *
36 * Each entry must have the format: 36 * Each entry must have the format:
37 * Addr-type Address Value 37 * Addr-type Address Value
38 * 38 *
39 * where: 39 * where:
40 * Addr-type register length (1,2 or 4 bytes) 40 * Addr-type register length (1,2 or 4 bytes)
41 * Address absolute address of the register 41 * Address absolute address of the register
42 * value value to be stored in the register 42 * value value to be stored in the register
43 */ 43 */
44 #ifdef CONFIG_IMX_OPTEE 44 #ifdef CONFIG_IMX_OPTEE
45 SET_BIT 4 0x20c4070 0x3c00000 45 SET_BIT 4 0x20c4070 0x3c00000
46 DATA 4 0x20e0024 0x00000003 46 DATA 4 0x20e0024 0x00000003
47 CHECK_BITS_SET 4 0x20e0024 0x3 47 CHECK_BITS_SET 4 0x20e0024 0x3
48 #endif 48 #endif
49 DATA 4, 0x020e0798, 0x000c0000 49 DATA 4, 0x020e0798, 0x000c0000
50 DATA 4, 0x020e0758, 0x00000000 50 DATA 4, 0x020e0758, 0x00000000
51 DATA 4, 0x020e0588, 0x00000030 51 DATA 4, 0x020e0588, 0x00000030
52 DATA 4, 0x020e0594, 0x00000030 52 DATA 4, 0x020e0594, 0x00000030
53 DATA 4, 0x020e056c, 0x00000030 53 DATA 4, 0x020e056c, 0x00000030
54 DATA 4, 0x020e0578, 0x00000030 54 DATA 4, 0x020e0578, 0x00000030
55 DATA 4, 0x020e074c, 0x00000030 55 DATA 4, 0x020e074c, 0x00000030
56 DATA 4, 0x020e057c, 0x00000030 56 DATA 4, 0x020e057c, 0x00000030
57 DATA 4, 0x020e058c, 0x00000000 57 DATA 4, 0x020e058c, 0x00000000
58 DATA 4, 0x020e059c, 0x00000030 58 DATA 4, 0x020e059c, 0x00000030
59 DATA 4, 0x020e05a0, 0x00000030 59 DATA 4, 0x020e05a0, 0x00000030
60 DATA 4, 0x020e078c, 0x00000030 60 DATA 4, 0x020e078c, 0x00000030
61 DATA 4, 0x020e0750, 0x00020000 61 DATA 4, 0x020e0750, 0x00020000
62 DATA 4, 0x020e05a8, 0x00000030 62 DATA 4, 0x020e05a8, 0x00000030
63 DATA 4, 0x020e05b0, 0x00000030 63 DATA 4, 0x020e05b0, 0x00000030
64 DATA 4, 0x020e0524, 0x00000030 64 DATA 4, 0x020e0524, 0x00000030
65 DATA 4, 0x020e051c, 0x00000030 65 DATA 4, 0x020e051c, 0x00000030
66 DATA 4, 0x020e0518, 0x00000030 66 DATA 4, 0x020e0518, 0x00000030
67 DATA 4, 0x020e050c, 0x00000030 67 DATA 4, 0x020e050c, 0x00000030
68 DATA 4, 0x020e05b8, 0x00000030 68 DATA 4, 0x020e05b8, 0x00000030
69 DATA 4, 0x020e05c0, 0x00000030 69 DATA 4, 0x020e05c0, 0x00000030
70 70
71 DATA 4, 0x020e0534, 0x00018200 71 DATA 4, 0x020e0534, 0x00018200
72 DATA 4, 0x020e0538, 0x00008000 72 DATA 4, 0x020e0538, 0x00008000
73 DATA 4, 0x020e053c, 0x00018200 73 DATA 4, 0x020e053c, 0x00018200
74 DATA 4, 0x020e0540, 0x00018200 74 DATA 4, 0x020e0540, 0x00018200
75 DATA 4, 0x020e0544, 0x00018200 75 DATA 4, 0x020e0544, 0x00018200
76 DATA 4, 0x020e0548, 0x00018200 76 DATA 4, 0x020e0548, 0x00018200
77 DATA 4, 0x020e054c, 0x00018200 77 DATA 4, 0x020e054c, 0x00018200
78 DATA 4, 0x020e0550, 0x00018200 78 DATA 4, 0x020e0550, 0x00018200
79 79
80 DATA 4, 0x020e0774, 0x00020000 80 DATA 4, 0x020e0774, 0x00020000
81 DATA 4, 0x020e0784, 0x00000030 81 DATA 4, 0x020e0784, 0x00000030
82 DATA 4, 0x020e0788, 0x00000030 82 DATA 4, 0x020e0788, 0x00000030
83 DATA 4, 0x020e0794, 0x00000030 83 DATA 4, 0x020e0794, 0x00000030
84 DATA 4, 0x020e079c, 0x00000030 84 DATA 4, 0x020e079c, 0x00000030
85 DATA 4, 0x020e07a0, 0x00000030 85 DATA 4, 0x020e07a0, 0x00000030
86 DATA 4, 0x020e07a4, 0x00000030 86 DATA 4, 0x020e07a4, 0x00000030
87 DATA 4, 0x020e07a8, 0x00000030 87 DATA 4, 0x020e07a8, 0x00000030
88 DATA 4, 0x020e0748, 0x00000030 88 DATA 4, 0x020e0748, 0x00000030
89 DATA 4, 0x020e05ac, 0x00000030 89 DATA 4, 0x020e05ac, 0x00000030
90 DATA 4, 0x020e05b4, 0x00000030 90 DATA 4, 0x020e05b4, 0x00000030
91 DATA 4, 0x020e0528, 0x00000030 91 DATA 4, 0x020e0528, 0x00000030
92 DATA 4, 0x020e0520, 0x00000030 92 DATA 4, 0x020e0520, 0x00000030
93 DATA 4, 0x020e0514, 0x00000030 93 DATA 4, 0x020e0514, 0x00000030
94 DATA 4, 0x020e0510, 0x00000030 94 DATA 4, 0x020e0510, 0x00000030
95 DATA 4, 0x020e05bc, 0x00000030 95 DATA 4, 0x020e05bc, 0x00000030
96 DATA 4, 0x020e05c4, 0x00000030 96 DATA 4, 0x020e05c4, 0x00000030
97 DATA 4, 0x021b0800, 0xa1390003 97 DATA 4, 0x021b0800, 0xa1390003
98 DATA 4, 0x021b080c, 0x001b001e 98 DATA 4, 0x021b080c, 0x001b001e
99 DATA 4, 0x021b0810, 0x002e0029 99 DATA 4, 0x021b0810, 0x002e0029
100 DATA 4, 0x021b480c, 0x001b002a 100 DATA 4, 0x021b480c, 0x001b002a
101 DATA 4, 0x021b4810, 0x0019002c 101 DATA 4, 0x021b4810, 0x0019002c
102 DATA 4, 0x021b083c, 0x43240334 102 DATA 4, 0x021b083c, 0x43240334
103 DATA 4, 0x021b0840, 0x0324031a 103 DATA 4, 0x021b0840, 0x0324031a
104 DATA 4, 0x021b483c, 0x43340344 104 DATA 4, 0x021b483c, 0x43340344
105 DATA 4, 0x021b4840, 0x03280276 105 DATA 4, 0x021b4840, 0x03280276
106 DATA 4, 0x021b0848, 0x44383A3E 106 DATA 4, 0x021b0848, 0x44383A3E
107 DATA 4, 0x021b4848, 0x3C3C3846 107 DATA 4, 0x021b4848, 0x3C3C3846
108 DATA 4, 0x021b0850, 0x2e303230 108 DATA 4, 0x021b0850, 0x2e303230
109 DATA 4, 0x021b4850, 0x38283E34 109 DATA 4, 0x021b4850, 0x38283E34
110 DATA 4, 0x021b081c, 0x33333333 110 DATA 4, 0x021b081c, 0x33333333
111 DATA 4, 0x021b0820, 0x33333333 111 DATA 4, 0x021b0820, 0x33333333
112 DATA 4, 0x021b0824, 0x33333333 112 DATA 4, 0x021b0824, 0x33333333
113 DATA 4, 0x021b0828, 0x33333333 113 DATA 4, 0x021b0828, 0x33333333
114 DATA 4, 0x021b481c, 0x33333333 114 DATA 4, 0x021b481c, 0x33333333
115 DATA 4, 0x021b4820, 0x33333333 115 DATA 4, 0x021b4820, 0x33333333
116 DATA 4, 0x021b4824, 0x33333333 116 DATA 4, 0x021b4824, 0x33333333
117 DATA 4, 0x021b4828, 0x33333333 117 DATA 4, 0x021b4828, 0x33333333
118 DATA 4, 0x021b08c0, 0x24912489 118 DATA 4, 0x021b08c0, 0x24912489
119 DATA 4, 0x021b48c0, 0x24914452 119 DATA 4, 0x021b48c0, 0x24914452
120 DATA 4, 0x021b08b8, 0x00000800 120 DATA 4, 0x021b08b8, 0x00000800
121 DATA 4, 0x021b48b8, 0x00000800 121 DATA 4, 0x021b48b8, 0x00000800
122 DATA 4, 0x021b0004, 0x00020036 122 DATA 4, 0x021b0004, 0x00020036
123 DATA 4, 0x021b0008, 0x24444040 123 DATA 4, 0x021b0008, 0x24444040
124 DATA 4, 0x021b000c, 0x555A7955 124 DATA 4, 0x021b000c, 0x555A7955
125 DATA 4, 0x021b0010, 0xFF320F64 125 DATA 4, 0x021b0010, 0xFF320F64
126 DATA 4, 0x021b0014, 0x01ff00db 126 DATA 4, 0x021b0014, 0x01ff00db
127 DATA 4, 0x021b0018, 0x00011740 127 DATA 4, 0x021b0018, 0x00011740
128 DATA 4, 0x021b001c, 0x00008000 128 DATA 4, 0x021b001c, 0x00008000
129 DATA 4, 0x021b002c, 0x000026d2 129 DATA 4, 0x021b002c, 0x000026d2
130 DATA 4, 0x021b0030, 0x005A1023 130 DATA 4, 0x021b0030, 0x005A1023
131 DATA 4, 0x021b0040, 0x00000027 131 DATA 4, 0x021b0040, 0x00000027
132 DATA 4, 0x021b0400, 0x10420000 132 DATA 4, 0x021b0400, 0x10420000
133 DATA 4, 0x021b0000, 0x831A0000 133 DATA 4, 0x021b0000, 0x831A0000
134 DATA 4, 0x021b0890, 0x00400C58 134 DATA 4, 0x021b0890, 0x00400C58
135 DATA 4, 0x021b001c, 0x04088032 135 DATA 4, 0x021b001c, 0x04088032
136 DATA 4, 0x021b001c, 0x00008033 136 DATA 4, 0x021b001c, 0x00008033
137 DATA 4, 0x021b001c, 0x00048031 137 DATA 4, 0x021b001c, 0x00048031
138 DATA 4, 0x021b001c, 0x09408030 138 DATA 4, 0x021b001c, 0x09408030
139 DATA 4, 0x021b001c, 0x04008040 139 DATA 4, 0x021b001c, 0x04008040
140 DATA 4, 0x021b0020, 0x00005800 140 DATA 4, 0x021b0020, 0x00005800
141 DATA 4, 0x021b0818, 0x00011117 141 DATA 4, 0x021b0818, 0x00011117
142 DATA 4, 0x021b4818, 0x00011117 142 DATA 4, 0x021b4818, 0x00011117
143 DATA 4, 0x021b0004, 0x00025576 143 DATA 4, 0x021b0004, 0x00025576
144 DATA 4, 0x021b0404, 0x00011006 144 DATA 4, 0x021b0404, 0x00011006
145 DATA 4, 0x021b001c, 0x00000000 145 DATA 4, 0x021b001c, 0x00000000
146 146
147 /* set the default clock gate to save power */ 147 /* set the default clock gate to save power */
148 DATA 4, 0x020c4068, 0x00C03F3F 148 DATA 4, 0x020c4068, 0x00C03F3F
149 DATA 4, 0x020c406c, 0x0030FC03 149 DATA 4, 0x020c406c, 0x0030FC03
150 DATA 4, 0x020c4070, 0x0FFFC000 150 DATA 4, 0x020c4070, 0x0FFFF000
151 DATA 4, 0x020c4074, 0x3FF00000 151 DATA 4, 0x020c4074, 0x3FF00000
152 DATA 4, 0x020c4078, 0x00FFF300 152 DATA 4, 0x020c4078, 0x00FFF300
153 DATA 4, 0x020c407c, 0x0F0000F3 153 DATA 4, 0x020c407c, 0x0F0000F3
154 DATA 4, 0x020c4080, 0x000003FF 154 DATA 4, 0x020c4080, 0x000003FF
155 155
156 /* enable AXI cache for VDOA/VPU/IPU */ 156 /* enable AXI cache for VDOA/VPU/IPU */
157 DATA 4, 0x020e0010, 0xF00000CF 157 DATA 4, 0x020e0010, 0xF00000CF
158 /* set IPU AXI-id1 Qos=0x1 AXI-id0/2/3 Qos=0x7 */ 158 /* set IPU AXI-id1 Qos=0x1 AXI-id0/2/3 Qos=0x7 */
159 DATA 4, 0x020e0018, 0x77177717 159 DATA 4, 0x020e0018, 0x77177717
160 DATA 4, 0x020e001c, 0x77177717 160 DATA 4, 0x020e001c, 0x77177717
161 #endif 161 #endif
162 162
board/freescale/mx6sabresd/mx6solo_4x_mt41j128.cfg
1 /* 1 /*
2 * Copyright (C) 2014-2016 Freescale Semiconductor, Inc. 2 * Copyright (C) 2014-2016 Freescale Semiconductor, Inc.
3 * Copyright 2017 NXP 3 * Copyright 2017 NXP
4 * Jason Liu <r64343@freescale.com> 4 * Jason Liu <r64343@freescale.com>
5 * 5 *
6 * SPDX-License-Identifier: GPL-2.0+ 6 * SPDX-License-Identifier: GPL-2.0+
7 * 7 *
8 * Refer docs/README.imxmage for more details about how-to configure 8 * Refer docs/README.imxmage for more details about how-to configure
9 * and create imximage boot image 9 * and create imximage boot image
10 * 10 *
11 * The syntax is taken as close as possible with the kwbimage 11 * The syntax is taken as close as possible with the kwbimage
12 */ 12 */
13 13
14 #define __ASSEMBLY__ 14 #define __ASSEMBLY__
15 #include <config.h> 15 #include <config.h>
16 16
17 /* image version */ 17 /* image version */
18 IMAGE_VERSION 2 18 IMAGE_VERSION 2
19 19
20 /* 20 /*
21 * Boot Device : one of 21 * Boot Device : one of
22 * spi, sd (the board has no nand neither onenand) 22 * spi, sd (the board has no nand neither onenand)
23 */ 23 */
24 BOOT_FROM sd 24 BOOT_FROM sd
25 25
26 #ifdef CONFIG_USE_IMXIMG_PLUGIN 26 #ifdef CONFIG_USE_IMXIMG_PLUGIN
27 /*PLUGIN plugin-binary-file IRAM_FREE_START_ADDR*/ 27 /*PLUGIN plugin-binary-file IRAM_FREE_START_ADDR*/
28 PLUGIN board/freescale/mx6sabresd/plugin.bin 0x00907000 28 PLUGIN board/freescale/mx6sabresd/plugin.bin 0x00907000
29 #else 29 #else
30 30
31 #ifdef CONFIG_SECURE_BOOT 31 #ifdef CONFIG_SECURE_BOOT
32 CSF CONFIG_CSF_SIZE 32 CSF CONFIG_CSF_SIZE
33 #endif 33 #endif
34 34
35 /* 35 /*
36 * Device Configuration Data (DCD) 36 * Device Configuration Data (DCD)
37 * 37 *
38 * Each entry must have the format: 38 * Each entry must have the format:
39 * Addr-type Address Value 39 * Addr-type Address Value
40 * 40 *
41 * where: 41 * where:
42 * Addr-type register length (1,2 or 4 bytes) 42 * Addr-type register length (1,2 or 4 bytes)
43 * Address absolute address of the register 43 * Address absolute address of the register
44 * value value to be stored in the register 44 * value value to be stored in the register
45 */ 45 */
46 #ifdef CONFIG_IMX_OPTEE 46 #ifdef CONFIG_IMX_OPTEE
47 SET_BIT 4 0x20c4070 0x3c00000 47 SET_BIT 4 0x20c4070 0x3c00000
48 DATA 4 0x20e0024 0x00000003 48 DATA 4 0x20e0024 0x00000003
49 CHECK_BITS_SET 4 0x20e0024 0x3 49 CHECK_BITS_SET 4 0x20e0024 0x3
50 #endif 50 #endif
51 DATA 4, 0x020e0774, 0x000C0000 51 DATA 4, 0x020e0774, 0x000C0000
52 DATA 4, 0x020e0754, 0x00000000 52 DATA 4, 0x020e0754, 0x00000000
53 DATA 4, 0x020e04ac, 0x00000030 53 DATA 4, 0x020e04ac, 0x00000030
54 DATA 4, 0x020e04b0, 0x00000030 54 DATA 4, 0x020e04b0, 0x00000030
55 DATA 4, 0x020e0464, 0x00000030 55 DATA 4, 0x020e0464, 0x00000030
56 DATA 4, 0x020e0490, 0x00000030 56 DATA 4, 0x020e0490, 0x00000030
57 DATA 4, 0x020e074c, 0x00000030 57 DATA 4, 0x020e074c, 0x00000030
58 DATA 4, 0x020e0494, 0x00000030 58 DATA 4, 0x020e0494, 0x00000030
59 DATA 4, 0x020e04a0, 0x00000000 59 DATA 4, 0x020e04a0, 0x00000000
60 DATA 4, 0x020e04b4, 0x00000030 60 DATA 4, 0x020e04b4, 0x00000030
61 DATA 4, 0x020e04b8, 0x00000030 61 DATA 4, 0x020e04b8, 0x00000030
62 DATA 4, 0x020e076c, 0x00000030 62 DATA 4, 0x020e076c, 0x00000030
63 DATA 4, 0x020e0750, 0x00020000 63 DATA 4, 0x020e0750, 0x00020000
64 DATA 4, 0x020e04bc, 0x00000030 64 DATA 4, 0x020e04bc, 0x00000030
65 DATA 4, 0x020e04c0, 0x00000030 65 DATA 4, 0x020e04c0, 0x00000030
66 DATA 4, 0x020e04c4, 0x00000030 66 DATA 4, 0x020e04c4, 0x00000030
67 DATA 4, 0x020e04c8, 0x00000030 67 DATA 4, 0x020e04c8, 0x00000030
68 DATA 4, 0x020e0760, 0x00020000 68 DATA 4, 0x020e0760, 0x00020000
69 DATA 4, 0x020e0764, 0x00000030 69 DATA 4, 0x020e0764, 0x00000030
70 DATA 4, 0x020e0770, 0x00000030 70 DATA 4, 0x020e0770, 0x00000030
71 DATA 4, 0x020e0778, 0x00000030 71 DATA 4, 0x020e0778, 0x00000030
72 DATA 4, 0x020e077c, 0x00000030 72 DATA 4, 0x020e077c, 0x00000030
73 DATA 4, 0x020e0470, 0x00000030 73 DATA 4, 0x020e0470, 0x00000030
74 DATA 4, 0x020e0474, 0x00000030 74 DATA 4, 0x020e0474, 0x00000030
75 DATA 4, 0x020e0478, 0x00000030 75 DATA 4, 0x020e0478, 0x00000030
76 DATA 4, 0x020e047c, 0x00000030 76 DATA 4, 0x020e047c, 0x00000030
77 DATA 4, 0x021b0800, 0xa1390003 77 DATA 4, 0x021b0800, 0xa1390003
78 DATA 4, 0x021b080c, 0x001F001F 78 DATA 4, 0x021b080c, 0x001F001F
79 DATA 4, 0x021b0810, 0x001F001F 79 DATA 4, 0x021b0810, 0x001F001F
80 DATA 4, 0x021b083c, 0x42190219 80 DATA 4, 0x021b083c, 0x42190219
81 DATA 4, 0x021b0840, 0x017B0177 81 DATA 4, 0x021b0840, 0x017B0177
82 DATA 4, 0x021b0848, 0x4B4D4E4D 82 DATA 4, 0x021b0848, 0x4B4D4E4D
83 DATA 4, 0x021b0850, 0x3F3E2D36 83 DATA 4, 0x021b0850, 0x3F3E2D36
84 DATA 4, 0x021b081c, 0x33333333 84 DATA 4, 0x021b081c, 0x33333333
85 DATA 4, 0x021b0820, 0x33333333 85 DATA 4, 0x021b0820, 0x33333333
86 DATA 4, 0x021b0824, 0x33333333 86 DATA 4, 0x021b0824, 0x33333333
87 DATA 4, 0x021b0828, 0x33333333 87 DATA 4, 0x021b0828, 0x33333333
88 DATA 4, 0x021b08b8, 0x00000800 88 DATA 4, 0x021b08b8, 0x00000800
89 DATA 4, 0x021b0004, 0x0002002D 89 DATA 4, 0x021b0004, 0x0002002D
90 DATA 4, 0x021b0008, 0x00333030 90 DATA 4, 0x021b0008, 0x00333030
91 DATA 4, 0x021b000c, 0x3F435313 91 DATA 4, 0x021b000c, 0x3F435313
92 DATA 4, 0x021b0010, 0xB66E8B63 92 DATA 4, 0x021b0010, 0xB66E8B63
93 DATA 4, 0x021b0014, 0x01FF00DB 93 DATA 4, 0x021b0014, 0x01FF00DB
94 DATA 4, 0x021b0018, 0x00001740 94 DATA 4, 0x021b0018, 0x00001740
95 DATA 4, 0x021b001c, 0x00008000 95 DATA 4, 0x021b001c, 0x00008000
96 DATA 4, 0x021b002c, 0x000026d2 96 DATA 4, 0x021b002c, 0x000026d2
97 DATA 4, 0x021b0030, 0x00431023 97 DATA 4, 0x021b0030, 0x00431023
98 DATA 4, 0x021b0040, 0x00000017 98 DATA 4, 0x021b0040, 0x00000017
99 DATA 4, 0x021b0000, 0x83190000 99 DATA 4, 0x021b0000, 0x83190000
100 DATA 4, 0x021b001c, 0x04008032 100 DATA 4, 0x021b001c, 0x04008032
101 DATA 4, 0x021b001c, 0x00008033 101 DATA 4, 0x021b001c, 0x00008033
102 DATA 4, 0x021b001c, 0x00048031 102 DATA 4, 0x021b001c, 0x00048031
103 DATA 4, 0x021b001c, 0x05208030 103 DATA 4, 0x021b001c, 0x05208030
104 DATA 4, 0x021b001c, 0x04008040 104 DATA 4, 0x021b001c, 0x04008040
105 DATA 4, 0x021b0020, 0x00005800 105 DATA 4, 0x021b0020, 0x00005800
106 DATA 4, 0x021b0818, 0x00011117 106 DATA 4, 0x021b0818, 0x00011117
107 DATA 4, 0x021b0004, 0x0002556D 107 DATA 4, 0x021b0004, 0x0002556D
108 DATA 4, 0x021b0404, 0x00011006 108 DATA 4, 0x021b0404, 0x00011006
109 DATA 4, 0x021b001c, 0x00000000 109 DATA 4, 0x021b001c, 0x00000000
110 110
111 /* set the default clock gate to save power */ 111 /* set the default clock gate to save power */
112 DATA 4, 0x020c4068, 0x00C03F3F 112 DATA 4, 0x020c4068, 0x00C03F3F
113 DATA 4, 0x020c406c, 0x0030FC03 113 DATA 4, 0x020c406c, 0x0030FC03
114 DATA 4, 0x020c4070, 0x0FFFC000 114 DATA 4, 0x020c4070, 0x0FFFF000
115 DATA 4, 0x020c4074, 0x3FF00000 115 DATA 4, 0x020c4074, 0x3FF00000
116 DATA 4, 0x020c4078, 0x00FFF300 116 DATA 4, 0x020c4078, 0x00FFF300
117 DATA 4, 0x020c407c, 0x0F0000C3 117 DATA 4, 0x020c407c, 0x0F0000C3
118 DATA 4, 0x020c4080, 0x000003FF 118 DATA 4, 0x020c4080, 0x000003FF
119 119
120 /* enable AXI cache for VDOA/VPU/IPU */ 120 /* enable AXI cache for VDOA/VPU/IPU */
121 DATA 4, 0x020e0010, 0xF00000CF 121 DATA 4, 0x020e0010, 0xF00000CF
122 /* set IPU AXI-id0 Qos=0xf(bypass) AXI-id1 Qos=0x7 */ 122 /* set IPU AXI-id0 Qos=0xf(bypass) AXI-id1 Qos=0x7 */
123 DATA 4, 0x020e0018, 0x007F007F 123 DATA 4, 0x020e0018, 0x007F007F
124 DATA 4, 0x020e001c, 0x007F007F 124 DATA 4, 0x020e001c, 0x007F007F
125 #endif 125 #endif
126 126
board/freescale/mx6sabresd/plugin.S
1 /* 1 /*
2 * Copyright (C) 2012-2016 Freescale Semiconductor, Inc. 2 * Copyright (C) 2012-2016 Freescale Semiconductor, Inc.
3 * Copyright 2017 NXP 3 * Copyright 2017 NXP
4 * 4 *
5 * SPDX-License-Identifier: GPL-2.0+ 5 * SPDX-License-Identifier: GPL-2.0+
6 */ 6 */
7 7
8 #include <config.h> 8 #include <config.h>
9 9
10 /* DDR script */ 10 /* DDR script */
11 .macro imx6dqpsabresd_ddr_setting 11 .macro imx6dqpsabresd_ddr_setting
12 ldr r0, =IOMUXC_BASE_ADDR 12 ldr r0, =IOMUXC_BASE_ADDR
13 ldr r1, =0x000c0000 13 ldr r1, =0x000c0000
14 str r1, [r0, #0x798] 14 str r1, [r0, #0x798]
15 ldr r1, =0x00000000 15 ldr r1, =0x00000000
16 str r1, [r0, #0x758] 16 str r1, [r0, #0x758]
17 17
18 ldr r1, =0x00000030 18 ldr r1, =0x00000030
19 str r1, [r0, #0x588] 19 str r1, [r0, #0x588]
20 str r1, [r0, #0x594] 20 str r1, [r0, #0x594]
21 str r1, [r0, #0x56c] 21 str r1, [r0, #0x56c]
22 str r1, [r0, #0x578] 22 str r1, [r0, #0x578]
23 str r1, [r0, #0x74c] 23 str r1, [r0, #0x74c]
24 str r1, [r0, #0x57c] 24 str r1, [r0, #0x57c]
25 25
26 ldr r1, =0x00000000 26 ldr r1, =0x00000000
27 str r1, [r0, #0x58c] 27 str r1, [r0, #0x58c]
28 28
29 ldr r1, =0x00000030 29 ldr r1, =0x00000030
30 str r1, [r0, #0x59c] 30 str r1, [r0, #0x59c]
31 str r1, [r0, #0x5a0] 31 str r1, [r0, #0x5a0]
32 str r1, [r0, #0x78c] 32 str r1, [r0, #0x78c]
33 33
34 ldr r1, =0x00020000 34 ldr r1, =0x00020000
35 str r1, [r0, #0x750] 35 str r1, [r0, #0x750]
36 36
37 ldr r1, =0x00000030 37 ldr r1, =0x00000030
38 str r1, [r0, #0x5a8] 38 str r1, [r0, #0x5a8]
39 str r1, [r0, #0x5b0] 39 str r1, [r0, #0x5b0]
40 str r1, [r0, #0x524] 40 str r1, [r0, #0x524]
41 str r1, [r0, #0x51c] 41 str r1, [r0, #0x51c]
42 str r1, [r0, #0x518] 42 str r1, [r0, #0x518]
43 str r1, [r0, #0x50c] 43 str r1, [r0, #0x50c]
44 str r1, [r0, #0x5b8] 44 str r1, [r0, #0x5b8]
45 str r1, [r0, #0x5c0] 45 str r1, [r0, #0x5c0]
46 46
47 ldr r1, =0x00018200 47 ldr r1, =0x00018200
48 str r1, [r0, #0x534] 48 str r1, [r0, #0x534]
49 ldr r1, =0x00008000 49 ldr r1, =0x00008000
50 str r1, [r0, #0x538] 50 str r1, [r0, #0x538]
51 ldr r1, =0x00018200 51 ldr r1, =0x00018200
52 str r1, [r0, #0x53c] 52 str r1, [r0, #0x53c]
53 str r1, [r0, #0x540] 53 str r1, [r0, #0x540]
54 str r1, [r0, #0x544] 54 str r1, [r0, #0x544]
55 str r1, [r0, #0x548] 55 str r1, [r0, #0x548]
56 str r1, [r0, #0x54c] 56 str r1, [r0, #0x54c]
57 str r1, [r0, #0x550] 57 str r1, [r0, #0x550]
58 58
59 ldr r1, =0x00020000 59 ldr r1, =0x00020000
60 str r1, [r0, #0x774] 60 str r1, [r0, #0x774]
61 61
62 ldr r1, =0x00000030 62 ldr r1, =0x00000030
63 str r1, [r0, #0x784] 63 str r1, [r0, #0x784]
64 str r1, [r0, #0x788] 64 str r1, [r0, #0x788]
65 str r1, [r0, #0x794] 65 str r1, [r0, #0x794]
66 str r1, [r0, #0x79c] 66 str r1, [r0, #0x79c]
67 str r1, [r0, #0x7a0] 67 str r1, [r0, #0x7a0]
68 str r1, [r0, #0x7a4] 68 str r1, [r0, #0x7a4]
69 str r1, [r0, #0x7a8] 69 str r1, [r0, #0x7a8]
70 str r1, [r0, #0x748] 70 str r1, [r0, #0x748]
71 str r1, [r0, #0x5ac] 71 str r1, [r0, #0x5ac]
72 str r1, [r0, #0x5b4] 72 str r1, [r0, #0x5b4]
73 str r1, [r0, #0x528] 73 str r1, [r0, #0x528]
74 str r1, [r0, #0x520] 74 str r1, [r0, #0x520]
75 str r1, [r0, #0x514] 75 str r1, [r0, #0x514]
76 str r1, [r0, #0x510] 76 str r1, [r0, #0x510]
77 str r1, [r0, #0x5bc] 77 str r1, [r0, #0x5bc]
78 str r1, [r0, #0x5c4] 78 str r1, [r0, #0x5c4]
79 79
80 ldr r0, =MMDC_P0_BASE_ADDR 80 ldr r0, =MMDC_P0_BASE_ADDR
81 ldr r2, =0xa1390003 81 ldr r2, =0xa1390003
82 str r2, [r0, #0x800] 82 str r2, [r0, #0x800]
83 83
84 ldr r2, =0x001b001e 84 ldr r2, =0x001b001e
85 str r2, [r0, #0x80c] 85 str r2, [r0, #0x80c]
86 ldr r2, =0x002e0029 86 ldr r2, =0x002e0029
87 str r2, [r0, #0x810] 87 str r2, [r0, #0x810]
88 88
89 ldr r1, =MMDC_P1_BASE_ADDR 89 ldr r1, =MMDC_P1_BASE_ADDR
90 ldr r2, =0x001b002a 90 ldr r2, =0x001b002a
91 str r2, [r1, #0x80c] 91 str r2, [r1, #0x80c]
92 ldr r2, =0x0019002c 92 ldr r2, =0x0019002c
93 str r2, [r1, #0x810] 93 str r2, [r1, #0x810]
94 94
95 ldr r2, =0x43240334 95 ldr r2, =0x43240334
96 str r2, [r0, #0x83c] 96 str r2, [r0, #0x83c]
97 ldr r2, =0x0324031a 97 ldr r2, =0x0324031a
98 str r2, [r0, #0x840] 98 str r2, [r0, #0x840]
99 99
100 ldr r2, =0x43340344 100 ldr r2, =0x43340344
101 str r2, [r1, #0x83c] 101 str r2, [r1, #0x83c]
102 ldr r2, =0x03280276 102 ldr r2, =0x03280276
103 str r2, [r1, #0x840] 103 str r2, [r1, #0x840]
104 104
105 ldr r2, =0x44383A3E 105 ldr r2, =0x44383A3E
106 str r2, [r0, #0x848] 106 str r2, [r0, #0x848]
107 ldr r2, =0x3C3C3846 107 ldr r2, =0x3C3C3846
108 str r2, [r1, #0x848] 108 str r2, [r1, #0x848]
109 109
110 ldr r2, =0x2e303230 110 ldr r2, =0x2e303230
111 str r2, [r0, #0x850] 111 str r2, [r0, #0x850]
112 ldr r2, =0x38283E34 112 ldr r2, =0x38283E34
113 str r2, [r1, #0x850] 113 str r2, [r1, #0x850]
114 114
115 ldr r2, =0x33333333 115 ldr r2, =0x33333333
116 str r2, [r0, #0x81c] 116 str r2, [r0, #0x81c]
117 str r2, [r0, #0x820] 117 str r2, [r0, #0x820]
118 str r2, [r0, #0x824] 118 str r2, [r0, #0x824]
119 str r2, [r0, #0x828] 119 str r2, [r0, #0x828]
120 str r2, [r1, #0x81c] 120 str r2, [r1, #0x81c]
121 str r2, [r1, #0x820] 121 str r2, [r1, #0x820]
122 str r2, [r1, #0x824] 122 str r2, [r1, #0x824]
123 str r2, [r1, #0x828] 123 str r2, [r1, #0x828]
124 124
125 ldr r2, =0x24912489 125 ldr r2, =0x24912489
126 str r2, [r0, #0x8c0] 126 str r2, [r0, #0x8c0]
127 ldr r2, =0x24914452 127 ldr r2, =0x24914452
128 str r2, [r1, #0x8c0] 128 str r2, [r1, #0x8c0]
129 129
130 ldr r2, =0x00000800 130 ldr r2, =0x00000800
131 str r2, [r0, #0x8b8] 131 str r2, [r0, #0x8b8]
132 str r2, [r1, #0x8b8] 132 str r2, [r1, #0x8b8]
133 133
134 ldr r2, =0x00020036 134 ldr r2, =0x00020036
135 str r2, [r0, #0x004] 135 str r2, [r0, #0x004]
136 ldr r2, =0x24444040 136 ldr r2, =0x24444040
137 str r2, [r0, #0x008] 137 str r2, [r0, #0x008]
138 138
139 ldr r2, =0x555A7955 139 ldr r2, =0x555A7955
140 str r2, [r0, #0x00c] 140 str r2, [r0, #0x00c]
141 ldr r2, =0xFF320F64 141 ldr r2, =0xFF320F64
142 str r2, [r0, #0x010] 142 str r2, [r0, #0x010]
143 143
144 ldr r2, =0x01FF00DB 144 ldr r2, =0x01FF00DB
145 str r2, [r0, #0x014] 145 str r2, [r0, #0x014]
146 ldr r2, =0x00011740 146 ldr r2, =0x00011740
147 str r2, [r0, #0x018] 147 str r2, [r0, #0x018]
148 148
149 ldr r2, =0x00008000 149 ldr r2, =0x00008000
150 str r2, [r0, #0x01c] 150 str r2, [r0, #0x01c]
151 ldr r2, =0x000026d2 151 ldr r2, =0x000026d2
152 str r2, [r0, #0x02c] 152 str r2, [r0, #0x02c]
153 ldr r2, =0x005A1023 153 ldr r2, =0x005A1023
154 str r2, [r0, #0x030] 154 str r2, [r0, #0x030]
155 ldr r2, =0x00000027 155 ldr r2, =0x00000027
156 str r2, [r0, #0x040] 156 str r2, [r0, #0x040]
157 157
158 ldr r2, =0x14420000 158 ldr r2, =0x14420000
159 str r2, [r0, #0x400] 159 str r2, [r0, #0x400]
160 160
161 ldr r2, =0x831A0000 161 ldr r2, =0x831A0000
162 str r2, [r0, #0x000] 162 str r2, [r0, #0x000]
163 163
164 ldr r2, =0x00400C58 164 ldr r2, =0x00400C58
165 str r2, [r0, #0x890] 165 str r2, [r0, #0x890]
166 166
167 ldr r3, =0x00bb0000 167 ldr r3, =0x00bb0000
168 ldr r2, =0x00000000 168 ldr r2, =0x00000000
169 str r2, [r3, #0x008] 169 str r2, [r3, #0x008]
170 ldr r2, =0x2891E41A 170 ldr r2, =0x2891E41A
171 str r2, [r3, #0x00C] 171 str r2, [r3, #0x00C]
172 ldr r2, =0x00000564 172 ldr r2, =0x00000564
173 str r2, [r3, #0x038] 173 str r2, [r3, #0x038]
174 ldr r2, =0x00000040 174 ldr r2, =0x00000040
175 str r2, [r3, #0x014] 175 str r2, [r3, #0x014]
176 ldr r2, =0x00000020 176 ldr r2, =0x00000020
177 str r2, [r3, #0x028] 177 str r2, [r3, #0x028]
178 ldr r2, =0x00000020 178 ldr r2, =0x00000020
179 str r2, [r3, #0x02c] 179 str r2, [r3, #0x02c]
180 180
181 ldr r2, =0x04088032 181 ldr r2, =0x04088032
182 str r2, [r0, #0x01c] 182 str r2, [r0, #0x01c]
183 ldr r2, =0x00008033 183 ldr r2, =0x00008033
184 str r2, [r0, #0x01c] 184 str r2, [r0, #0x01c]
185 ldr r2, =0x00048031 185 ldr r2, =0x00048031
186 str r2, [r0, #0x01c] 186 str r2, [r0, #0x01c]
187 ldr r2, =0x09408030 187 ldr r2, =0x09408030
188 str r2, [r0, #0x01c] 188 str r2, [r0, #0x01c]
189 ldr r2, =0x04008040 189 ldr r2, =0x04008040
190 str r2, [r0, #0x01c] 190 str r2, [r0, #0x01c]
191 191
192 ldr r2, =0x00005800 192 ldr r2, =0x00005800
193 str r2, [r0, #0x020] 193 str r2, [r0, #0x020]
194 ldr r2, =0x00011117 194 ldr r2, =0x00011117
195 str r2, [r0, #0x818] 195 str r2, [r0, #0x818]
196 str r2, [r1, #0x818] 196 str r2, [r1, #0x818]
197 ldr r2, =0x00025576 197 ldr r2, =0x00025576
198 str r2, [r0, #0x004] 198 str r2, [r0, #0x004]
199 ldr r2, =0x00011006 199 ldr r2, =0x00011006
200 str r2, [r0, #0x404] 200 str r2, [r0, #0x404]
201 ldr r2, =0x00000000 201 ldr r2, =0x00000000
202 str r2, [r0, #0x01c] 202 str r2, [r0, #0x01c]
203 .endm 203 .endm
204 204
205 .macro imx6dqsabresd_ddr_setting 205 .macro imx6dqsabresd_ddr_setting
206 ldr r0, =IOMUXC_BASE_ADDR 206 ldr r0, =IOMUXC_BASE_ADDR
207 ldr r1, =0x000c0000 207 ldr r1, =0x000c0000
208 str r1, [r0, #0x798] 208 str r1, [r0, #0x798]
209 ldr r1, =0x00000000 209 ldr r1, =0x00000000
210 str r1, [r0, #0x758] 210 str r1, [r0, #0x758]
211 211
212 ldr r1, =0x00000030 212 ldr r1, =0x00000030
213 str r1, [r0, #0x588] 213 str r1, [r0, #0x588]
214 str r1, [r0, #0x594] 214 str r1, [r0, #0x594]
215 str r1, [r0, #0x56c] 215 str r1, [r0, #0x56c]
216 str r1, [r0, #0x578] 216 str r1, [r0, #0x578]
217 str r1, [r0, #0x74c] 217 str r1, [r0, #0x74c]
218 str r1, [r0, #0x57c] 218 str r1, [r0, #0x57c]
219 219
220 ldr r1, =0x00000000 220 ldr r1, =0x00000000
221 str r1, [r0, #0x58c] 221 str r1, [r0, #0x58c]
222 222
223 ldr r1, =0x00000030 223 ldr r1, =0x00000030
224 str r1, [r0, #0x59c] 224 str r1, [r0, #0x59c]
225 str r1, [r0, #0x5a0] 225 str r1, [r0, #0x5a0]
226 str r1, [r0, #0x78c] 226 str r1, [r0, #0x78c]
227 227
228 ldr r1, =0x00020000 228 ldr r1, =0x00020000
229 str r1, [r0, #0x750] 229 str r1, [r0, #0x750]
230 230
231 ldr r1, =0x00000030 231 ldr r1, =0x00000030
232 str r1, [r0, #0x5a8] 232 str r1, [r0, #0x5a8]
233 str r1, [r0, #0x5b0] 233 str r1, [r0, #0x5b0]
234 str r1, [r0, #0x524] 234 str r1, [r0, #0x524]
235 str r1, [r0, #0x51c] 235 str r1, [r0, #0x51c]
236 str r1, [r0, #0x518] 236 str r1, [r0, #0x518]
237 str r1, [r0, #0x50c] 237 str r1, [r0, #0x50c]
238 str r1, [r0, #0x5b8] 238 str r1, [r0, #0x5b8]
239 str r1, [r0, #0x5c0] 239 str r1, [r0, #0x5c0]
240 240
241 ldr r1, =0x00020000 241 ldr r1, =0x00020000
242 str r1, [r0, #0x774] 242 str r1, [r0, #0x774]
243 243
244 ldr r1, =0x00000030 244 ldr r1, =0x00000030
245 str r1, [r0, #0x784] 245 str r1, [r0, #0x784]
246 str r1, [r0, #0x788] 246 str r1, [r0, #0x788]
247 str r1, [r0, #0x794] 247 str r1, [r0, #0x794]
248 str r1, [r0, #0x79c] 248 str r1, [r0, #0x79c]
249 str r1, [r0, #0x7a0] 249 str r1, [r0, #0x7a0]
250 str r1, [r0, #0x7a4] 250 str r1, [r0, #0x7a4]
251 str r1, [r0, #0x7a8] 251 str r1, [r0, #0x7a8]
252 str r1, [r0, #0x748] 252 str r1, [r0, #0x748]
253 str r1, [r0, #0x5ac] 253 str r1, [r0, #0x5ac]
254 str r1, [r0, #0x5b4] 254 str r1, [r0, #0x5b4]
255 str r1, [r0, #0x528] 255 str r1, [r0, #0x528]
256 str r1, [r0, #0x520] 256 str r1, [r0, #0x520]
257 str r1, [r0, #0x514] 257 str r1, [r0, #0x514]
258 str r1, [r0, #0x510] 258 str r1, [r0, #0x510]
259 str r1, [r0, #0x5bc] 259 str r1, [r0, #0x5bc]
260 str r1, [r0, #0x5c4] 260 str r1, [r0, #0x5c4]
261 261
262 ldr r0, =MMDC_P0_BASE_ADDR 262 ldr r0, =MMDC_P0_BASE_ADDR
263 ldr r2, =0xa1390003 263 ldr r2, =0xa1390003
264 str r2, [r0, #0x800] 264 str r2, [r0, #0x800]
265 265
266 ldr r2, =0x001F001F 266 ldr r2, =0x001F001F
267 str r2, [r0, #0x80c] 267 str r2, [r0, #0x80c]
268 str r2, [r0, #0x810] 268 str r2, [r0, #0x810]
269 ldr r1, =MMDC_P1_BASE_ADDR 269 ldr r1, =MMDC_P1_BASE_ADDR
270 str r2, [r1, #0x80c] 270 str r2, [r1, #0x80c]
271 str r2, [r1, #0x810] 271 str r2, [r1, #0x810]
272 272
273 ldr r2, =0x43270338 273 ldr r2, =0x43270338
274 str r2, [r0, #0x83c] 274 str r2, [r0, #0x83c]
275 ldr r2, =0x03200314 275 ldr r2, =0x03200314
276 str r2, [r0, #0x840] 276 str r2, [r0, #0x840]
277 277
278 ldr r2, =0x431A032F 278 ldr r2, =0x431A032F
279 str r2, [r1, #0x83c] 279 str r2, [r1, #0x83c]
280 ldr r2, =0x03200263 280 ldr r2, =0x03200263
281 str r2, [r1, #0x840] 281 str r2, [r1, #0x840]
282 282
283 ldr r2, =0x4B434748 283 ldr r2, =0x4B434748
284 str r2, [r0, #0x848] 284 str r2, [r0, #0x848]
285 ldr r2, =0x4445404C 285 ldr r2, =0x4445404C
286 str r2, [r1, #0x848] 286 str r2, [r1, #0x848]
287 287
288 ldr r2, =0x38444542 288 ldr r2, =0x38444542
289 str r2, [r0, #0x850] 289 str r2, [r0, #0x850]
290 ldr r2, =0x4935493A 290 ldr r2, =0x4935493A
291 str r2, [r1, #0x850] 291 str r2, [r1, #0x850]
292 292
293 ldr r2, =0x33333333 293 ldr r2, =0x33333333
294 str r2, [r0, #0x81c] 294 str r2, [r0, #0x81c]
295 str r2, [r0, #0x820] 295 str r2, [r0, #0x820]
296 str r2, [r0, #0x824] 296 str r2, [r0, #0x824]
297 str r2, [r0, #0x828] 297 str r2, [r0, #0x828]
298 str r2, [r1, #0x81c] 298 str r2, [r1, #0x81c]
299 str r2, [r1, #0x820] 299 str r2, [r1, #0x820]
300 str r2, [r1, #0x824] 300 str r2, [r1, #0x824]
301 str r2, [r1, #0x828] 301 str r2, [r1, #0x828]
302 302
303 ldr r2, =0x00000800 303 ldr r2, =0x00000800
304 str r2, [r0, #0x8b8] 304 str r2, [r0, #0x8b8]
305 str r2, [r1, #0x8b8] 305 str r2, [r1, #0x8b8]
306 306
307 ldr r2, =0x00020036 307 ldr r2, =0x00020036
308 str r2, [r0, #0x004] 308 str r2, [r0, #0x004]
309 ldr r2, =0x09444040 309 ldr r2, =0x09444040
310 str r2, [r0, #0x008] 310 str r2, [r0, #0x008]
311 311
312 ldr r2, =0x555A7975 312 ldr r2, =0x555A7975
313 str r2, [r0, #0x00c] 313 str r2, [r0, #0x00c]
314 ldr r2, =0xFF538F64 314 ldr r2, =0xFF538F64
315 str r2, [r0, #0x010] 315 str r2, [r0, #0x010]
316 316
317 ldr r2, =0x01FF00DB 317 ldr r2, =0x01FF00DB
318 str r2, [r0, #0x014] 318 str r2, [r0, #0x014]
319 ldr r2, =0x00001740 319 ldr r2, =0x00001740
320 str r2, [r0, #0x018] 320 str r2, [r0, #0x018]
321 321
322 ldr r2, =0x00008000 322 ldr r2, =0x00008000
323 str r2, [r0, #0x01c] 323 str r2, [r0, #0x01c]
324 ldr r2, =0x000026d2 324 ldr r2, =0x000026d2
325 str r2, [r0, #0x02c] 325 str r2, [r0, #0x02c]
326 ldr r2, =0x005A1023 326 ldr r2, =0x005A1023
327 str r2, [r0, #0x030] 327 str r2, [r0, #0x030]
328 ldr r2, =0x00000027 328 ldr r2, =0x00000027
329 str r2, [r0, #0x040] 329 str r2, [r0, #0x040]
330 330
331 ldr r2, =0x831A0000 331 ldr r2, =0x831A0000
332 str r2, [r0, #0x000] 332 str r2, [r0, #0x000]
333 333
334 ldr r2, =0x04088032 334 ldr r2, =0x04088032
335 str r2, [r0, #0x01c] 335 str r2, [r0, #0x01c]
336 ldr r2, =0x00008033 336 ldr r2, =0x00008033
337 str r2, [r0, #0x01c] 337 str r2, [r0, #0x01c]
338 ldr r2, =0x00048031 338 ldr r2, =0x00048031
339 str r2, [r0, #0x01c] 339 str r2, [r0, #0x01c]
340 ldr r2, =0x09408030 340 ldr r2, =0x09408030
341 str r2, [r0, #0x01c] 341 str r2, [r0, #0x01c]
342 ldr r2, =0x04008040 342 ldr r2, =0x04008040
343 str r2, [r0, #0x01c] 343 str r2, [r0, #0x01c]
344 344
345 ldr r2, =0x00005800 345 ldr r2, =0x00005800
346 str r2, [r0, #0x020] 346 str r2, [r0, #0x020]
347 ldr r2, =0x00011117 347 ldr r2, =0x00011117
348 str r2, [r0, #0x818] 348 str r2, [r0, #0x818]
349 str r2, [r1, #0x818] 349 str r2, [r1, #0x818]
350 ldr r2, =0x00025576 350 ldr r2, =0x00025576
351 str r2, [r0, #0x004] 351 str r2, [r0, #0x004]
352 ldr r2, =0x00011006 352 ldr r2, =0x00011006
353 str r2, [r0, #0x404] 353 str r2, [r0, #0x404]
354 ldr r2, =0x00000000 354 ldr r2, =0x00000000
355 str r2, [r0, #0x01c] 355 str r2, [r0, #0x01c]
356 .endm 356 .endm
357 357
358 .macro imx6dlsabresd_ddr_setting 358 .macro imx6dlsabresd_ddr_setting
359 ldr r0, =IOMUXC_BASE_ADDR 359 ldr r0, =IOMUXC_BASE_ADDR
360 ldr r1, =0x000c0000 360 ldr r1, =0x000c0000
361 str r1, [r0, #0x774] 361 str r1, [r0, #0x774]
362 ldr r1, =0x00000000 362 ldr r1, =0x00000000
363 str r1, [r0, #0x754] 363 str r1, [r0, #0x754]
364 364
365 ldr r1, =0x00000030 365 ldr r1, =0x00000030
366 str r1, [r0, #0x4ac] 366 str r1, [r0, #0x4ac]
367 str r1, [r0, #0x4b0] 367 str r1, [r0, #0x4b0]
368 str r1, [r0, #0x464] 368 str r1, [r0, #0x464]
369 str r1, [r0, #0x490] 369 str r1, [r0, #0x490]
370 str r1, [r0, #0x74c] 370 str r1, [r0, #0x74c]
371 str r1, [r0, #0x494] 371 str r1, [r0, #0x494]
372 372
373 ldr r1, =0x00000000 373 ldr r1, =0x00000000
374 str r1, [r0, #0x4a0] 374 str r1, [r0, #0x4a0]
375 375
376 ldr r1, =0x00000030 376 ldr r1, =0x00000030
377 str r1, [r0, #0x4b4] 377 str r1, [r0, #0x4b4]
378 str r1, [r0, #0x4b8] 378 str r1, [r0, #0x4b8]
379 str r1, [r0, #0x76c] 379 str r1, [r0, #0x76c]
380 380
381 ldr r1, =0x00020000 381 ldr r1, =0x00020000
382 str r1, [r0, #0x750] 382 str r1, [r0, #0x750]
383 383
384 ldr r1, =0x00000030 384 ldr r1, =0x00000030
385 str r1, [r0, #0x4bc] 385 str r1, [r0, #0x4bc]
386 str r1, [r0, #0x4c0] 386 str r1, [r0, #0x4c0]
387 str r1, [r0, #0x4c4] 387 str r1, [r0, #0x4c4]
388 str r1, [r0, #0x4c8] 388 str r1, [r0, #0x4c8]
389 str r1, [r0, #0x4cc] 389 str r1, [r0, #0x4cc]
390 str r1, [r0, #0x4d0] 390 str r1, [r0, #0x4d0]
391 str r1, [r0, #0x4d4] 391 str r1, [r0, #0x4d4]
392 str r1, [r0, #0x4d8] 392 str r1, [r0, #0x4d8]
393 393
394 ldr r1, =0x00020000 394 ldr r1, =0x00020000
395 str r1, [r0, #0x760] 395 str r1, [r0, #0x760]
396 396
397 ldr r1, =0x00000030 397 ldr r1, =0x00000030
398 str r1, [r0, #0x764] 398 str r1, [r0, #0x764]
399 str r1, [r0, #0x770] 399 str r1, [r0, #0x770]
400 str r1, [r0, #0x778] 400 str r1, [r0, #0x778]
401 str r1, [r0, #0x77c] 401 str r1, [r0, #0x77c]
402 str r1, [r0, #0x780] 402 str r1, [r0, #0x780]
403 str r1, [r0, #0x784] 403 str r1, [r0, #0x784]
404 str r1, [r0, #0x78c] 404 str r1, [r0, #0x78c]
405 str r1, [r0, #0x748] 405 str r1, [r0, #0x748]
406 str r1, [r0, #0x470] 406 str r1, [r0, #0x470]
407 str r1, [r0, #0x474] 407 str r1, [r0, #0x474]
408 str r1, [r0, #0x478] 408 str r1, [r0, #0x478]
409 str r1, [r0, #0x47c] 409 str r1, [r0, #0x47c]
410 str r1, [r0, #0x480] 410 str r1, [r0, #0x480]
411 str r1, [r0, #0x484] 411 str r1, [r0, #0x484]
412 str r1, [r0, #0x488] 412 str r1, [r0, #0x488]
413 str r1, [r0, #0x48c] 413 str r1, [r0, #0x48c]
414 414
415 ldr r0, =MMDC_P0_BASE_ADDR 415 ldr r0, =MMDC_P0_BASE_ADDR
416 ldr r2, =0xa1390003 416 ldr r2, =0xa1390003
417 str r2, [r0, #0x800] 417 str r2, [r0, #0x800]
418 418
419 ldr r2, =0x001f001f 419 ldr r2, =0x001f001f
420 str r2, [r0, #0x80c] 420 str r2, [r0, #0x80c]
421 str r2, [r0, #0x810] 421 str r2, [r0, #0x810]
422 ldr r1, =MMDC_P1_BASE_ADDR 422 ldr r1, =MMDC_P1_BASE_ADDR
423 str r2, [r1, #0x80c] 423 str r2, [r1, #0x80c]
424 str r2, [r1, #0x810] 424 str r2, [r1, #0x810]
425 425
426 ldr r2, =0x4220021F 426 ldr r2, =0x4220021F
427 str r2, [r0, #0x83c] 427 str r2, [r0, #0x83c]
428 ldr r2, =0x0207017E 428 ldr r2, =0x0207017E
429 str r2, [r0, #0x840] 429 str r2, [r0, #0x840]
430 430
431 ldr r2, =0x4201020C 431 ldr r2, =0x4201020C
432 str r2, [r1, #0x83c] 432 str r2, [r1, #0x83c]
433 ldr r2, =0x01660172 433 ldr r2, =0x01660172
434 str r2, [r1, #0x840] 434 str r2, [r1, #0x840]
435 435
436 ldr r2, =0x4A4D4E4D 436 ldr r2, =0x4A4D4E4D
437 str r2, [r0, #0x848] 437 str r2, [r0, #0x848]
438 ldr r2, =0x4A4F5049 438 ldr r2, =0x4A4F5049
439 str r2, [r1, #0x848] 439 str r2, [r1, #0x848]
440 440
441 ldr r2, =0x3F3C3D31 441 ldr r2, =0x3F3C3D31
442 str r2, [r0, #0x850] 442 str r2, [r0, #0x850]
443 ldr r2, =0x3238372B 443 ldr r2, =0x3238372B
444 str r2, [r1, #0x850] 444 str r2, [r1, #0x850]
445 445
446 ldr r2, =0x33333333 446 ldr r2, =0x33333333
447 str r2, [r0, #0x81c] 447 str r2, [r0, #0x81c]
448 str r2, [r0, #0x820] 448 str r2, [r0, #0x820]
449 str r2, [r0, #0x824] 449 str r2, [r0, #0x824]
450 str r2, [r0, #0x828] 450 str r2, [r0, #0x828]
451 str r2, [r1, #0x81c] 451 str r2, [r1, #0x81c]
452 str r2, [r1, #0x820] 452 str r2, [r1, #0x820]
453 str r2, [r1, #0x824] 453 str r2, [r1, #0x824]
454 str r2, [r1, #0x828] 454 str r2, [r1, #0x828]
455 455
456 ldr r2, =0x00000800 456 ldr r2, =0x00000800
457 str r2, [r0, #0x8b8] 457 str r2, [r0, #0x8b8]
458 str r2, [r1, #0x8b8] 458 str r2, [r1, #0x8b8]
459 459
460 ldr r2, =0x0002002D 460 ldr r2, =0x0002002D
461 str r2, [r0, #0x004] 461 str r2, [r0, #0x004]
462 ldr r2, =0x00333030 462 ldr r2, =0x00333030
463 str r2, [r0, #0x008] 463 str r2, [r0, #0x008]
464 464
465 ldr r2, =0x3F435313 465 ldr r2, =0x3F435313
466 str r2, [r0, #0x00c] 466 str r2, [r0, #0x00c]
467 ldr r2, =0xB66E8B63 467 ldr r2, =0xB66E8B63
468 str r2, [r0, #0x010] 468 str r2, [r0, #0x010]
469 469
470 ldr r2, =0x01FF00DB 470 ldr r2, =0x01FF00DB
471 str r2, [r0, #0x014] 471 str r2, [r0, #0x014]
472 ldr r2, =0x00001740 472 ldr r2, =0x00001740
473 str r2, [r0, #0x018] 473 str r2, [r0, #0x018]
474 474
475 ldr r2, =0x00008000 475 ldr r2, =0x00008000
476 str r2, [r0, #0x01c] 476 str r2, [r0, #0x01c]
477 ldr r2, =0x000026d2 477 ldr r2, =0x000026d2
478 str r2, [r0, #0x02c] 478 str r2, [r0, #0x02c]
479 ldr r2, =0x00431023 479 ldr r2, =0x00431023
480 str r2, [r0, #0x030] 480 str r2, [r0, #0x030]
481 ldr r2, =0x00000027 481 ldr r2, =0x00000027
482 str r2, [r0, #0x040] 482 str r2, [r0, #0x040]
483 483
484 ldr r2, =0x831A0000 484 ldr r2, =0x831A0000
485 str r2, [r0, #0x000] 485 str r2, [r0, #0x000]
486 486
487 ldr r2, =0x04008032 487 ldr r2, =0x04008032
488 str r2, [r0, #0x01c] 488 str r2, [r0, #0x01c]
489 ldr r2, =0x00008033 489 ldr r2, =0x00008033
490 str r2, [r0, #0x01c] 490 str r2, [r0, #0x01c]
491 ldr r2, =0x00048031 491 ldr r2, =0x00048031
492 str r2, [r0, #0x01c] 492 str r2, [r0, #0x01c]
493 ldr r2, =0x05208030 493 ldr r2, =0x05208030
494 str r2, [r0, #0x01c] 494 str r2, [r0, #0x01c]
495 ldr r2, =0x04008040 495 ldr r2, =0x04008040
496 str r2, [r0, #0x01c] 496 str r2, [r0, #0x01c]
497 497
498 ldr r2, =0x00005800 498 ldr r2, =0x00005800
499 str r2, [r0, #0x020] 499 str r2, [r0, #0x020]
500 ldr r2, =0x00011117 500 ldr r2, =0x00011117
501 str r2, [r0, #0x818] 501 str r2, [r0, #0x818]
502 str r2, [r1, #0x818] 502 str r2, [r1, #0x818]
503 ldr r2, =0x0002556D 503 ldr r2, =0x0002556D
504 str r2, [r0, #0x004] 504 str r2, [r0, #0x004]
505 ldr r2, =0x00011006 505 ldr r2, =0x00011006
506 str r2, [r0, #0x404] 506 str r2, [r0, #0x404]
507 ldr r2, =0x00000000 507 ldr r2, =0x00000000
508 str r2, [r0, #0x01c] 508 str r2, [r0, #0x01c]
509 .endm 509 .endm
510 510
511 .macro imx6solosabresd_ddr_setting 511 .macro imx6solosabresd_ddr_setting
512 ldr r0, =IOMUXC_BASE_ADDR 512 ldr r0, =IOMUXC_BASE_ADDR
513 ldr r1, =0x000c0000 513 ldr r1, =0x000c0000
514 str r1, [r0, #0x774] 514 str r1, [r0, #0x774]
515 ldr r1, =0x00000000 515 ldr r1, =0x00000000
516 str r1, [r0, #0x754] 516 str r1, [r0, #0x754]
517 517
518 ldr r1, =0x00000030 518 ldr r1, =0x00000030
519 str r1, [r0, #0x4ac] 519 str r1, [r0, #0x4ac]
520 str r1, [r0, #0x4b0] 520 str r1, [r0, #0x4b0]
521 str r1, [r0, #0x464] 521 str r1, [r0, #0x464]
522 str r1, [r0, #0x490] 522 str r1, [r0, #0x490]
523 str r1, [r0, #0x74c] 523 str r1, [r0, #0x74c]
524 str r1, [r0, #0x494] 524 str r1, [r0, #0x494]
525 525
526 ldr r1, =0x00000000 526 ldr r1, =0x00000000
527 str r1, [r0, #0x4a0] 527 str r1, [r0, #0x4a0]
528 528
529 ldr r1, =0x00000030 529 ldr r1, =0x00000030
530 str r1, [r0, #0x4b4] 530 str r1, [r0, #0x4b4]
531 str r1, [r0, #0x4b8] 531 str r1, [r0, #0x4b8]
532 str r1, [r0, #0x76c] 532 str r1, [r0, #0x76c]
533 533
534 ldr r1, =0x00020000 534 ldr r1, =0x00020000
535 str r1, [r0, #0x750] 535 str r1, [r0, #0x750]
536 536
537 ldr r1, =0x00000030 537 ldr r1, =0x00000030
538 str r1, [r0, #0x4bc] 538 str r1, [r0, #0x4bc]
539 str r1, [r0, #0x4c0] 539 str r1, [r0, #0x4c0]
540 str r1, [r0, #0x4c4] 540 str r1, [r0, #0x4c4]
541 str r1, [r0, #0x4c8] 541 str r1, [r0, #0x4c8]
542 542
543 ldr r1, =0x00020000 543 ldr r1, =0x00020000
544 str r1, [r0, #0x760] 544 str r1, [r0, #0x760]
545 545
546 ldr r1, =0x00000030 546 ldr r1, =0x00000030
547 str r1, [r0, #0x764] 547 str r1, [r0, #0x764]
548 str r1, [r0, #0x770] 548 str r1, [r0, #0x770]
549 str r1, [r0, #0x778] 549 str r1, [r0, #0x778]
550 str r1, [r0, #0x77c] 550 str r1, [r0, #0x77c]
551 str r1, [r0, #0x470] 551 str r1, [r0, #0x470]
552 str r1, [r0, #0x474] 552 str r1, [r0, #0x474]
553 str r1, [r0, #0x478] 553 str r1, [r0, #0x478]
554 str r1, [r0, #0x47c] 554 str r1, [r0, #0x47c]
555 555
556 ldr r0, =MMDC_P0_BASE_ADDR 556 ldr r0, =MMDC_P0_BASE_ADDR
557 ldr r2, =0xa1390003 557 ldr r2, =0xa1390003
558 str r2, [r0, #0x800] 558 str r2, [r0, #0x800]
559 559
560 ldr r2, =0x001F001F 560 ldr r2, =0x001F001F
561 str r2, [r0, #0x80c] 561 str r2, [r0, #0x80c]
562 str r2, [r0, #0x810] 562 str r2, [r0, #0x810]
563 563
564 ldr r2, =0x42190219 564 ldr r2, =0x42190219
565 str r2, [r0, #0x83c] 565 str r2, [r0, #0x83c]
566 ldr r2, =0x017B0177 566 ldr r2, =0x017B0177
567 str r2, [r0, #0x840] 567 str r2, [r0, #0x840]
568 568
569 ldr r2, =0x4B4D4E4D 569 ldr r2, =0x4B4D4E4D
570 str r2, [r0, #0x848] 570 str r2, [r0, #0x848]
571 571
572 ldr r2, =0x3F3E2D36 572 ldr r2, =0x3F3E2D36
573 str r2, [r0, #0x850] 573 str r2, [r0, #0x850]
574 574
575 ldr r2, =0x33333333 575 ldr r2, =0x33333333
576 str r2, [r0, #0x81c] 576 str r2, [r0, #0x81c]
577 str r2, [r0, #0x820] 577 str r2, [r0, #0x820]
578 str r2, [r0, #0x824] 578 str r2, [r0, #0x824]
579 str r2, [r0, #0x828] 579 str r2, [r0, #0x828]
580 580
581 ldr r2, =0x00000800 581 ldr r2, =0x00000800
582 str r2, [r0, #0x8b8] 582 str r2, [r0, #0x8b8]
583 583
584 ldr r2, =0x0002002D 584 ldr r2, =0x0002002D
585 str r2, [r0, #0x004] 585 str r2, [r0, #0x004]
586 ldr r2, =0x00333030 586 ldr r2, =0x00333030
587 str r2, [r0, #0x008] 587 str r2, [r0, #0x008]
588 588
589 ldr r2, =0x3F435313 589 ldr r2, =0x3F435313
590 str r2, [r0, #0x00c] 590 str r2, [r0, #0x00c]
591 ldr r2, =0xB66E8B63 591 ldr r2, =0xB66E8B63
592 str r2, [r0, #0x010] 592 str r2, [r0, #0x010]
593 593
594 ldr r2, =0x01FF00DB 594 ldr r2, =0x01FF00DB
595 str r2, [r0, #0x014] 595 str r2, [r0, #0x014]
596 ldr r2, =0x00001740 596 ldr r2, =0x00001740
597 str r2, [r0, #0x018] 597 str r2, [r0, #0x018]
598 598
599 ldr r2, =0x00008000 599 ldr r2, =0x00008000
600 str r2, [r0, #0x01c] 600 str r2, [r0, #0x01c]
601 ldr r2, =0x000026d2 601 ldr r2, =0x000026d2
602 str r2, [r0, #0x02c] 602 str r2, [r0, #0x02c]
603 ldr r2, =0x00431023 603 ldr r2, =0x00431023
604 str r2, [r0, #0x030] 604 str r2, [r0, #0x030]
605 ldr r2, =0x00000017 605 ldr r2, =0x00000017
606 str r2, [r0, #0x040] 606 str r2, [r0, #0x040]
607 607
608 ldr r2, =0x83190000 608 ldr r2, =0x83190000
609 str r2, [r0, #0x000] 609 str r2, [r0, #0x000]
610 610
611 ldr r2, =0x04008032 611 ldr r2, =0x04008032
612 str r2, [r0, #0x01c] 612 str r2, [r0, #0x01c]
613 ldr r2, =0x00008033 613 ldr r2, =0x00008033
614 str r2, [r0, #0x01c] 614 str r2, [r0, #0x01c]
615 ldr r2, =0x00048031 615 ldr r2, =0x00048031
616 str r2, [r0, #0x01c] 616 str r2, [r0, #0x01c]
617 ldr r2, =0x05208030 617 ldr r2, =0x05208030
618 str r2, [r0, #0x01c] 618 str r2, [r0, #0x01c]
619 ldr r2, =0x04008040 619 ldr r2, =0x04008040
620 str r2, [r0, #0x01c] 620 str r2, [r0, #0x01c]
621 621
622 ldr r2, =0x00005800 622 ldr r2, =0x00005800
623 str r2, [r0, #0x020] 623 str r2, [r0, #0x020]
624 ldr r2, =0x00011117 624 ldr r2, =0x00011117
625 str r2, [r0, #0x818] 625 str r2, [r0, #0x818]
626 ldr r2, =0x0002556D 626 ldr r2, =0x0002556D
627 str r2, [r0, #0x004] 627 str r2, [r0, #0x004]
628 ldr r2, =0x00011006 628 ldr r2, =0x00011006
629 str r2, [r0, #0x404] 629 str r2, [r0, #0x404]
630 ldr r2, =0x00000000 630 ldr r2, =0x00000000
631 str r2, [r0, #0x01c] 631 str r2, [r0, #0x01c]
632 .endm 632 .endm
633 .macro imx6_clock_gating 633 .macro imx6_clock_gating
634 ldr r0, =CCM_BASE_ADDR 634 ldr r0, =CCM_BASE_ADDR
635 ldr r1, =0x00C03F3F 635 ldr r1, =0x00C03F3F
636 str r1, [r0, #0x068] 636 str r1, [r0, #0x068]
637 ldr r1, =0x0030FC03 637 ldr r1, =0x0030FC03
638 str r1, [r0, #0x06c] 638 str r1, [r0, #0x06c]
639 ldr r1, =0x0FFFC000 639 ldr r1, =0x0FFFF000
640 str r1, [r0, #0x070] 640 str r1, [r0, #0x070]
641 ldr r1, =0x3FF00000 641 ldr r1, =0x3FF00000
642 str r1, [r0, #0x074] 642 str r1, [r0, #0x074]
643 ldr r1, =0x00FFF300 643 ldr r1, =0x00FFF300
644 str r1, [r0, #0x078] 644 str r1, [r0, #0x078]
645 ldr r1, =0x0F0000C3 645 ldr r1, =0x0F0000C3
646 str r1, [r0, #0x07c] 646 str r1, [r0, #0x07c]
647 ldr r1, =0x000003FF 647 ldr r1, =0x000003FF
648 str r1, [r0, #0x080] 648 str r1, [r0, #0x080]
649 #ifdef CONFIG_IMX_OPTEE 649 #ifdef CONFIG_IMX_OPTEE
650 #ifndef CONFIG_MX6QP 650 #ifndef CONFIG_MX6QP
651 ldr r0, =0x20e0024 651 ldr r0, =0x20e0024
652 ldr r1, =0x3 652 ldr r1, =0x3
653 str r1, [r0] 653 str r1, [r0]
654 #endif 654 #endif
655 #endif 655 #endif
656 .endm 656 .endm
657 657
658 .macro imx6_qos_setting 658 .macro imx6_qos_setting
659 ldr r0, =IOMUXC_BASE_ADDR 659 ldr r0, =IOMUXC_BASE_ADDR
660 ldr r1, =0xF00000CF 660 ldr r1, =0xF00000CF
661 str r1, [r0, #0x10] 661 str r1, [r0, #0x10]
662 662
663 #if defined(CONFIG_MX6QP) 663 #if defined(CONFIG_MX6QP)
664 ldr r1, =0x77177717 664 ldr r1, =0x77177717
665 str r1, [r0, #0x18] 665 str r1, [r0, #0x18]
666 str r1, [r0, #0x1c] 666 str r1, [r0, #0x1c]
667 #else 667 #else
668 ldr r1, =0x007F007F 668 ldr r1, =0x007F007F
669 str r1, [r0, #0x18] 669 str r1, [r0, #0x18]
670 str r1, [r0, #0x1c] 670 str r1, [r0, #0x1c]
671 #endif 671 #endif
672 .endm 672 .endm
673 673
674 .macro imx6_ddr_setting 674 .macro imx6_ddr_setting
675 #if defined (CONFIG_MX6S) 675 #if defined (CONFIG_MX6S)
676 imx6solosabresd_ddr_setting 676 imx6solosabresd_ddr_setting
677 #elif defined (CONFIG_MX6DL) 677 #elif defined (CONFIG_MX6DL)
678 imx6dlsabresd_ddr_setting 678 imx6dlsabresd_ddr_setting
679 #elif defined (CONFIG_MX6QP) 679 #elif defined (CONFIG_MX6QP)
680 imx6dqpsabresd_ddr_setting 680 imx6dqpsabresd_ddr_setting
681 #elif defined (CONFIG_MX6Q) 681 #elif defined (CONFIG_MX6Q)
682 imx6dqsabresd_ddr_setting 682 imx6dqsabresd_ddr_setting
683 #else 683 #else
684 #error "SOC not configured" 684 #error "SOC not configured"
685 #endif 685 #endif
686 686
687 .endm 687 .endm
688 688
689 /* include the common plugin code here */ 689 /* include the common plugin code here */
690 #include <asm/arch/mx6_plugin.S> 690 #include <asm/arch/mx6_plugin.S>
691 691