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