blob: ff2ec4aa273c763eb22b7f6161a5628172c03ee6 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Troy Kiskya18d7862013-01-18 16:14:24 +00002/*
3 * (C Copyright 2009
4 * Stefano Babic DENX Software Engineering sbabic@denx.de.
5 *
Patrick Delaunay488b6ac2020-02-28 15:18:12 +01006 * Refer doc/imx/mkimage/imximage.txt for more details about how-to configure
Troy Kiskya18d7862013-01-18 16:14:24 +00007 * and create imximage boot image
8 *
9 * The syntax is taken as close as possible with the kwbimage
10 */
Stefano Babic421834e2010-02-05 15:13:58 +010011
Troy Kiskya18d7862013-01-18 16:14:24 +000012/*
13 * Boot Device : one of
14 * spi, sd (the board has no nand neither onenand)
15 */
Stefano Babic421834e2010-02-05 15:13:58 +010016BOOT_FROM spi
17
Troy Kiskya18d7862013-01-18 16:14:24 +000018/*
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 */
Stefano Babic421834e2010-02-05 15:13:58 +010029
Troy Kiskya18d7862013-01-18 16:14:24 +000030/* Setting IOMUXC */
Stefano Babic421834e2010-02-05 15:13:58 +010031DATA 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
Troy Kiskya18d7862013-01-18 16:14:24 +000055/*
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 */
Stefano Babic421834e2010-02-05 15:13:58 +010061DATA 4 0x83FD9000 0x82a20000
Troy Kiskya18d7862013-01-18 16:14:24 +000062/* ESDCTL_ESDCTL1 */
Stefano Babic421834e2010-02-05 15:13:58 +010063DATA 4 0x83FD9008 0x82a20000
Troy Kiskya18d7862013-01-18 16:14:24 +000064/* ESDCTL_ESDMISC */
Stefano Babic421834e2010-02-05 15:13:58 +010065DATA 4 0x83FD9010 0x000ad0d0
Troy Kiskya18d7862013-01-18 16:14:24 +000066/* ESDCTL_ESDCFG0 */
Stefano Babic421834e2010-02-05 15:13:58 +010067DATA 4 0x83FD9004 0x333574aa
Troy Kiskya18d7862013-01-18 16:14:24 +000068/* ESDCTL_ESDCFG1 */
Stefano Babic421834e2010-02-05 15:13:58 +010069DATA 4 0x83FD900C 0x333574aa
70
Troy Kiskya18d7862013-01-18 16:14:24 +000071/* Init DRAM on CS0 */
72/* ESDCTL_ESDSCR */
Stefano Babic421834e2010-02-05 15:13:58 +010073DATA 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
Troy Kiskya18d7862013-01-18 16:14:24 +000086/* Init DRAM on CS1 */
Stefano Babic421834e2010-02-05 15:13:58 +010087DATA 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
Troy Kiskya18d7862013-01-18 16:14:24 +0000100/* Write to CTL0 */
Stefano Babic421834e2010-02-05 15:13:58 +0100101DATA 4 0x83FD9000 0xb2a20000
Troy Kiskya18d7862013-01-18 16:14:24 +0000102/* Write to CTL1 */
Stefano Babic421834e2010-02-05 15:13:58 +0100103DATA 4 0x83FD9008 0xb2a20000
Troy Kiskya18d7862013-01-18 16:14:24 +0000104/* ESDMISC */
Stefano Babic421834e2010-02-05 15:13:58 +0100105DATA 4 0x83FD9010 0x000ad6d0
Troy Kiskya18d7862013-01-18 16:14:24 +0000106/* ESDCTL_ESDCDLYGD */
Stefano Babic421834e2010-02-05 15:13:58 +0100107DATA 4 0x83FD9034 0x90000000
108DATA 4 0x83FD9014 0x00000000