1/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * (C Copyright 2009
4 * Stefano Babic DENX Software Engineering sbabic@denx.de.
5 *
6 * Refer doc/imx/mkimage/imximage.txt 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/*
13 * Boot Device : one of
14 * spi, sd (the board has no nand neither onenand)
15 */
16BOOT_FROM	spi
17
18/*
19 * Device Configuration Data (DCD)
20 *
21 * Each entry must have the format:
22 * Addr-type           Address        Value
23 *
24 * where:
25 *	Addr-type register length (1,2 or 4 bytes)
26 *	Address	  absolute address of the register
27 *	value	  value to be stored in the register
28 */
29
30/* Setting IOMUXC */
31DATA 4 0x73FA88a0 0x200
32DATA 4 0x73FA850c 0x20c5
33DATA 4 0x73FA8510 0x20c5
34DATA 4 0x73FA883c 0x2
35DATA 4 0x73FA8848 0x2
36DATA 4 0x73FA84b8 0xe7
37DATA 4 0x73FA84bc 0x45
38DATA 4 0x73FA84c0 0x45
39DATA 4 0x73FA84c4 0x45
40DATA 4 0x73FA84c8 0x45
41DATA 4 0x73FA8820 0x0
42DATA 4 0x73FA84a4 0x3
43DATA 4 0x73FA84a8 0x3
44DATA 4 0x73FA84ac 0xe3
45DATA 4 0x73FA84b0 0xe3
46DATA 4 0x73FA84b4 0xe3
47DATA 4 0x73FA84cc 0xe3
48DATA 4 0x73FA84d0 0xe2
49
50DATA 4 0x73FA882c 0x6
51DATA 4 0x73FA88a4 0x6
52DATA 4 0x73FA88ac 0x6
53DATA 4 0x73FA88b8 0x6
54
55/*
56 * Setting DDR for micron
57 * 13 Rows, 10 Cols, 32 bit, SREF=4 Micron Model
58 * CAS=3 BL=4
59 */
60/* ESDCTL_ESDCTL0 */
61DATA 4 0x83FD9000 0x82a20000
62/* ESDCTL_ESDCTL1 */
63DATA 4 0x83FD9008 0x82a20000
64/* ESDCTL_ESDMISC */
65DATA 4 0x83FD9010 0x000ad0d0
66/* ESDCTL_ESDCFG0 */
67DATA 4 0x83FD9004 0x333574aa
68/* ESDCTL_ESDCFG1 */
69DATA 4 0x83FD900C 0x333574aa
70
71/* Init DRAM on CS0 */
72/* ESDCTL_ESDSCR */
73DATA 4 0x83FD9014 0x04008008
74DATA 4 0x83FD9014 0x0000801a
75DATA 4 0x83FD9014 0x0000801b
76DATA 4 0x83FD9014 0x00448019
77DATA 4 0x83FD9014 0x07328018
78DATA 4 0x83FD9014 0x04008008
79DATA 4 0x83FD9014 0x00008010
80DATA 4 0x83FD9014 0x00008010
81DATA 4 0x83FD9014 0x06328018
82DATA 4 0x83FD9014 0x03808019
83DATA 4 0x83FD9014 0x00408019
84DATA 4 0x83FD9014 0x00008000
85
86/* Init DRAM on CS1 */
87DATA 4 0x83FD9014 0x0400800c
88DATA 4 0x83FD9014 0x0000801e
89DATA 4 0x83FD9014 0x0000801f
90DATA 4 0x83FD9014 0x0000801d
91DATA 4 0x83FD9014 0x0732801c
92DATA 4 0x83FD9014 0x0400800c
93DATA 4 0x83FD9014 0x00008014
94DATA 4 0x83FD9014 0x00008014
95DATA 4 0x83FD9014 0x0632801c
96DATA 4 0x83FD9014 0x0380801d
97DATA 4 0x83FD9014 0x0040801d
98DATA 4 0x83FD9014 0x00008004
99
100/* Write to CTL0 */
101DATA 4 0x83FD9000 0xb2a20000
102/* Write to CTL1 */
103DATA 4 0x83FD9008 0xb2a20000
104/* ESDMISC */
105DATA 4 0x83FD9010 0x000ad6d0
106/* ESDCTL_ESDCDLYGD */
107DATA 4 0x83FD9034 0x90000000
108DATA 4 0x83FD9014 0x00000000
109