blob: 324a90e9028592b9d4da1390cb058944a79c5621 [file] [log] [blame]
Troy Kisky71a988a2013-01-18 16:14:24 +00001/*
2 * (C) Copyright 2012
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 Babic79656d22012-02-22 00:24:40 +000012
Troy Kisky71a988a2013-01-18 16:14:24 +000013/* image version */
Stefano Babic79656d22012-02-22 00:24:40 +000014IMAGE_VERSION 2
15
Troy Kisky71a988a2013-01-18 16:14:24 +000016/*
17 * Boot Device : one of
18 * spi, sd (the board has no nand neither onenand)
19 */
Stefano Babic79656d22012-02-22 00:24:40 +000020BOOT_FROM nor
21
Troy Kisky71a988a2013-01-18 16:14:24 +000022/*
23 * Device Configuration Data (DCD)
24 *
25 * Each entry must have the format:
26 * Addr-type Address Value
27 *
28 * where:
29 * Addr-type register length (1,2 or 4 bytes)
30 * Address absolute address of the register
31 * value value to be stored in the register
32 */
33/* IOMUX for RAM only */
Stefano Babic79656d22012-02-22 00:24:40 +000034DATA 4 0x53fa8554 0x300020
35DATA 4 0x53fa8560 0x300020
36DATA 4 0x53fa8594 0x300020
37DATA 4 0x53fa8584 0x300020
38DATA 4 0x53fa8558 0x300040
39DATA 4 0x53fa8568 0x300040
40DATA 4 0x53fa8590 0x300040
41DATA 4 0x53fa857c 0x300040
42DATA 4 0x53fa8564 0x300040
43DATA 4 0x53fa8580 0x300040
44DATA 4 0x53fa8570 0x300220
45DATA 4 0x53fa8578 0x300220
46DATA 4 0x53fa872c 0x300000
47DATA 4 0x53fa8728 0x300000
48DATA 4 0x53fa871c 0x300000
49DATA 4 0x53fa8718 0x300000
50DATA 4 0x53fa8574 0x300020
51DATA 4 0x53fa8588 0x300020
52DATA 4 0x53fa855c 0x0
53DATA 4 0x53fa858c 0x0
54DATA 4 0x53fa856c 0x300040
55DATA 4 0x53fa86f0 0x300000
56DATA 4 0x53fa8720 0x300000
57DATA 4 0x53fa86fc 0x0
58DATA 4 0x53fa86f4 0x0
59DATA 4 0x53fa8714 0x0
60DATA 4 0x53fa8724 0x4000000
Troy Kisky71a988a2013-01-18 16:14:24 +000061
62/* DDR RAM */
Stefano Babic79656d22012-02-22 00:24:40 +000063DATA 4 0x63fd9088 0x40404040
64DATA 4 0x63fd9090 0x40404040
65DATA 4 0x63fd907C 0x01420143
66DATA 4 0x63fd9080 0x01450146
67DATA 4 0x63fd9018 0x00111740
68DATA 4 0x63fd9000 0x84190000
Troy Kisky71a988a2013-01-18 16:14:24 +000069
70/* esdcfgX */
Stefano Babic79656d22012-02-22 00:24:40 +000071DATA 4 0x63fd900C 0x9f5152e3
72DATA 4 0x63fd9010 0xb68e8a63
73DATA 4 0x63fd9014 0x01ff00db
Troy Kisky71a988a2013-01-18 16:14:24 +000074
75/* Read/Write command delay */
Stefano Babic79656d22012-02-22 00:24:40 +000076DATA 4 0x63fd902c 0x000026d2
Troy Kisky71a988a2013-01-18 16:14:24 +000077
78/* Out of reset delays */
Stefano Babic79656d22012-02-22 00:24:40 +000079DATA 4 0x63fd9030 0x00ff0e21
Troy Kisky71a988a2013-01-18 16:14:24 +000080
81/* ESDCTL ODT timing control */
Stefano Babic79656d22012-02-22 00:24:40 +000082DATA 4 0x63fd9008 0x12273030
Troy Kisky71a988a2013-01-18 16:14:24 +000083
84/* ESDCTL power down control */
Stefano Babic79656d22012-02-22 00:24:40 +000085DATA 4 0x63fd9004 0x0002002d
Troy Kisky71a988a2013-01-18 16:14:24 +000086
87/* Set registers in DDR memory chips */
Stefano Babic79656d22012-02-22 00:24:40 +000088DATA 4 0x63fd901c 0x00008032
89DATA 4 0x63fd901c 0x00008033
90DATA 4 0x63fd901c 0x00028031
91DATA 4 0x63fd901c 0x052080b0
92DATA 4 0x63fd901c 0x04008040
Troy Kisky71a988a2013-01-18 16:14:24 +000093
94/* ESDCTL refresh control */
Stefano Babic79656d22012-02-22 00:24:40 +000095DATA 4 0x63fd9020 0x00005800
Troy Kisky71a988a2013-01-18 16:14:24 +000096
97/* PHY ZQ HW control */
Stefano Babic79656d22012-02-22 00:24:40 +000098DATA 4 0x63fd9040 0x05380003
Troy Kisky71a988a2013-01-18 16:14:24 +000099
100/* PHY ODT control */
Stefano Babic79656d22012-02-22 00:24:40 +0000101DATA 4 0x63fd9058 0x00022222
Troy Kisky71a988a2013-01-18 16:14:24 +0000102
103/* start DDR3 */
Stefano Babic79656d22012-02-22 00:24:40 +0000104DATA 4 0x63fd901c 0x00000000