blob: 1b218996aea95f3ba5857d736c6ac1a5beb6500a [file] [log] [blame]
Fabio Estevamebc8fcc2019-12-09 10:43:03 -03001/*
2 * Copyright (C) 2016 Freescale Semiconductor, Inc.
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 *
6 * Refer docs/README.imxmage 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
12#define __ASSEMBLY__
13#include <config.h>
14
15/* image version */
16
17IMAGE_VERSION 2
18
19/*
20 * Boot Device : one of
21 * spi/sd/nand/onenand, qspi/nor
22 */
23
24BOOT_FROM sd
25
26#ifdef CONFIG_USE_IMXIMG_PLUGIN
27/*PLUGIN plugin-binary-file IRAM_FREE_START_ADDR*/
28PLUGIN board/freescale/mx7ulp_evk/plugin.bin 0x2F020000
29#else
30
Tom Rini38023f62020-06-16 19:06:24 -040031#ifdef CONFIG_IMX_HAB
Fabio Estevamebc8fcc2019-12-09 10:43:03 -030032CSF CONFIG_CSF_SIZE
33#endif
34/*
35 * Device Configuration Data (DCD)
36 *
37 * Each entry must have the format:
38 * Addr-type Address Value
39 *
40 * where:
41 * Addr-type register length (1,2 or 4 bytes)
42 * Address absolute address of the register
43 * value value to be stored in the register
44 */
45DATA 4 0x403f00dc 0x00000000
46DATA 4 0x403e0040 0x01000020
47DATA 4 0x403e0500 0x01000000
48DATA 4 0x403e050c 0x80808080
49DATA 4 0x403e0508 0x00160002
50DATA 4 0x403E0510 0x00000001
51DATA 4 0x403E0514 0x00000014
52DATA 4 0x403e0500 0x00000001
53CHECK_BITS_SET 4 0x403e0500 0x01000000
54/*
55 * Default PFD0 divide is 27, which generates:
56 * PFD0 Freq = A7 APLL (528MHz) * 18 / 27 = 352MHz
57 *
58 * i.MX7ULP COM board can not run DDR at 352MHz, so
59 * use a divider of 30 (0x1E), which gives:
60 *
61 * PFD0 Freq = A7 APLL (528MHz) * 18 / 30 = 316.8MHz
62 */
63DATA 4 0x403e050c 0x8080801E
64CHECK_BITS_SET 4 0x403e050c 0x00000040
65DATA 4 0x403E0030 0x00000001
66DATA 4 0x403e0040 0x11000020
67DATA 4 0x403f00dc 0x42000000
68
69DATA 4 0x40B300AC 0x40000000
70
71DATA 4 0x40AD0128 0x00040000
72DATA 4 0x40AD00F8 0x00000000
73DATA 4 0x40AD00D8 0x00000180
74DATA 4 0x40AD0104 0x00000180
75DATA 4 0x40AD0108 0x00000180
76DATA 4 0x40AD0124 0x00010000
77DATA 4 0x40AD0080 0x0000018C
78DATA 4 0x40AD0084 0x0000018C
79DATA 4 0x40AD0088 0x0000018C
80DATA 4 0x40AD008C 0x0000018C
81
82DATA 4 0x40AD0120 0x00010000
83DATA 4 0x40AD010C 0x00000180
84DATA 4 0x40AD0110 0x00000180
85DATA 4 0x40AD0114 0x00000180
86DATA 4 0x40AD0118 0x00000180
87DATA 4 0x40AD0090 0x00000180
88DATA 4 0x40AD0094 0x00000180
89DATA 4 0x40AD0098 0x00000180
90DATA 4 0x40AD009C 0x00000180
91
92DATA 4 0x40AD00E0 0x00040000
93DATA 4 0x40AD00E4 0x00040000
94
95DATA 4 0x40AB001C 0x00008000
96DATA 4 0x40AB085C 0x0D3900A0
97DATA 4 0x40AB0800 0xA1390003
98DATA 4 0x40AB0890 0x00400000
99DATA 4 0x40AB081C 0x33333333
100DATA 4 0x40AB0820 0x33333333
101DATA 4 0x40AB0824 0x33333333
102DATA 4 0x40AB0828 0x33333333
103DATA 4 0x40AB08C0 0x24922492
104DATA 4 0x40AB0848 0x3A3E3838
105DATA 4 0x40AB0850 0x28282C2A
106DATA 4 0x40AB083C 0x20000000
107DATA 4 0x40AB0840 0x00000000
108DATA 4 0x40AB08B8 0x00000800
109DATA 4 0x40AB000C 0x292C40F5
110DATA 4 0x40AB0004 0x00020064
111DATA 4 0x40AB0010 0xB6AD0A83
112DATA 4 0x40AB0014 0x00C70093
113DATA 4 0x40AB0018 0x00211708
114DATA 4 0x40AB002C 0x0F9F26D2
115DATA 4 0x40AB0030 0x009F0E10
116DATA 4 0x40AB0038 0x00130556
117DATA 4 0x40AB0008 0x12272000
118DATA 4 0x40AB0040 0x0000003F
119DATA 4 0x40AB0000 0xC3110000
120DATA 4 0x40AB001C 0x00008010
121DATA 4 0x40AB001C 0x00008018
122DATA 4 0x40AB001C 0x003F8030
123DATA 4 0x40AB001C 0xFF0A8030
124DATA 4 0x40AB001C 0x82018030
125DATA 4 0x40AB001C 0x06028030
126DATA 4 0x40AB001C 0x01038030
127DATA 4 0x40AB001C 0x003F8038
128DATA 4 0x40AB001C 0xFF0A8038
129DATA 4 0x40AB001C 0x82018038
130DATA 4 0x40AB001C 0x06028038
131DATA 4 0x40AB001C 0x01038038
132DATA 4 0x40AB083C 0xA0000000
133DATA 4 0x40AB083C 0xA0000000
134DATA 4 0x40AB0020 0x00001800
135DATA 4 0x40AB0800 0xA1310003
136DATA 4 0x40AB001C 0x00000000
137#endif