blob: a3b85932c2cecc6a048252a1aaecb0efb2e5565f [file] [log] [blame]
Troy Kisky71a988a2013-01-18 16:14:24 +00001/*
2 * (C Copyright 2009
3 * Stefano Babic DENX Software Engineering sbabic@denx.de.
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Troy Kisky71a988a2013-01-18 16:14:24 +00006 *
Anatolij Gustschinb1e6c4c2013-04-30 11:15:33 +00007 * Refer doc/README.imximage for more details about how-to configure
Troy Kisky71a988a2013-01-18 16:14:24 +00008 * and create imximage boot image
9 *
10 * The syntax is taken as close as possible with the kwbimage
11 */
Stefano Babicc5fb70c2010-02-05 15:13:58 +010012
Troy Kisky71a988a2013-01-18 16:14:24 +000013/*
14 * Boot Device : one of
15 * spi, sd (the board has no nand neither onenand)
16 */
Stefano Babicc5fb70c2010-02-05 15:13:58 +010017BOOT_FROM spi
18
Troy Kisky71a988a2013-01-18 16:14:24 +000019/*
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 */
Stefano Babicc5fb70c2010-02-05 15:13:58 +010030
Troy Kisky71a988a2013-01-18 16:14:24 +000031/* Setting IOMUXC */
Stefano Babicc5fb70c2010-02-05 15:13:58 +010032DATA 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
Troy Kisky71a988a2013-01-18 16:14:24 +000056/*
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 */
Stefano Babicc5fb70c2010-02-05 15:13:58 +010062DATA 4 0x83FD9000 0x82a20000
Troy Kisky71a988a2013-01-18 16:14:24 +000063/* ESDCTL_ESDCTL1 */
Stefano Babicc5fb70c2010-02-05 15:13:58 +010064DATA 4 0x83FD9008 0x82a20000
Troy Kisky71a988a2013-01-18 16:14:24 +000065/* ESDCTL_ESDMISC */
Stefano Babicc5fb70c2010-02-05 15:13:58 +010066DATA 4 0x83FD9010 0x000ad0d0
Troy Kisky71a988a2013-01-18 16:14:24 +000067/* ESDCTL_ESDCFG0 */
Stefano Babicc5fb70c2010-02-05 15:13:58 +010068DATA 4 0x83FD9004 0x333574aa
Troy Kisky71a988a2013-01-18 16:14:24 +000069/* ESDCTL_ESDCFG1 */
Stefano Babicc5fb70c2010-02-05 15:13:58 +010070DATA 4 0x83FD900C 0x333574aa
71
Troy Kisky71a988a2013-01-18 16:14:24 +000072/* Init DRAM on CS0 */
73/* ESDCTL_ESDSCR */
Stefano Babicc5fb70c2010-02-05 15:13:58 +010074DATA 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
Troy Kisky71a988a2013-01-18 16:14:24 +000087/* Init DRAM on CS1 */
Stefano Babicc5fb70c2010-02-05 15:13:58 +010088DATA 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
Troy Kisky71a988a2013-01-18 16:14:24 +0000101/* Write to CTL0 */
Stefano Babicc5fb70c2010-02-05 15:13:58 +0100102DATA 4 0x83FD9000 0xb2a20000
Troy Kisky71a988a2013-01-18 16:14:24 +0000103/* Write to CTL1 */
Stefano Babicc5fb70c2010-02-05 15:13:58 +0100104DATA 4 0x83FD9008 0xb2a20000
Troy Kisky71a988a2013-01-18 16:14:24 +0000105/* ESDMISC */
Stefano Babicc5fb70c2010-02-05 15:13:58 +0100106DATA 4 0x83FD9010 0x000ad6d0
Troy Kisky71a988a2013-01-18 16:14:24 +0000107/* ESDCTL_ESDCDLYGD */
Stefano Babicc5fb70c2010-02-05 15:13:58 +0100108DATA 4 0x83FD9034 0x90000000
109DATA 4 0x83FD9014 0x00000000