1#
2# (C Copyright 2009
3# Stefano Babic DENX Software Engineering sbabic@denx.de.
4#
5# See file CREDITS for list of people who contributed to this
6# project.
7#
8# This program is free software; you can redistribute it and/or
9# modify it under the terms of the GNU General Public License as
10# published by the Free Software Foundation; either version 2 of
11# the License or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not write to the Free Software
20# Foundation Inc. 51 Franklin Street Fifth Floor Boston,
21# MA 02110-1301 USA
22#
23# Refer docs/README.imxmage for more details about how-to configure
24# and create imximage boot image
25#
26# The syntax is taken as close as possible with the kwbimage
27
28# Boot Device : one of
29# spi_flash, nand, onenand, sd_card
30
31BOOT_FROM	spi
32
33# Device Configuration Data (DCD)
34#
35# Each entry must have the format:
36# Addr-type           Address        Value
37#
38# where:
39#	Addr-type register length (1,2 or 4 bytes)
40#	Address	  absolute address of the register
41#	value	  value to be stored in the register
42
43# Setting IOMUXC
44DATA 4 0x73FA88a0 0x200
45DATA 4 0x73FA850c 0x20c5
46DATA 4 0x73FA8510 0x20c5
47DATA 4 0x73FA883c 0x2
48DATA 4 0x73FA8848 0x2
49DATA 4 0x73FA84b8 0xe7
50DATA 4 0x73FA84bc 0x45
51DATA 4 0x73FA84c0 0x45
52DATA 4 0x73FA84c4 0x45
53DATA 4 0x73FA84c8 0x45
54DATA 4 0x73FA8820 0x0
55DATA 4 0x73FA84a4 0x3
56DATA 4 0x73FA84a8 0x3
57DATA 4 0x73FA84ac 0xe3
58DATA 4 0x73FA84b0 0xe3
59DATA 4 0x73FA84b4 0xe3
60DATA 4 0x73FA84cc 0xe3
61DATA 4 0x73FA84d0 0xe2
62
63DATA 4 0x73FA882c 0x6
64DATA 4 0x73FA88a4 0x6
65DATA 4 0x73FA88ac 0x6
66DATA 4 0x73FA88b8 0x6
67
68# Setting DDR for micron
69# 13 Rows, 10 Cols, 32 bit, SREF=4 Micron Model
70# CAS=3 BL=4
71# ESDCTL_ESDCTL0
72DATA 4 0x83FD9000 0x82a20000
73# ESDCTL_ESDCTL1
74DATA 4 0x83FD9008 0x82a20000
75# ESDCTL_ESDMISC
76DATA 4 0x83FD9010 0x000ad0d0
77# ESDCTL_ESDCFG0
78DATA 4 0x83FD9004 0x333574aa
79# ESDCTL_ESDCFG1
80DATA 4 0x83FD900C 0x333574aa
81
82# Init DRAM on CS0
83# ESDCTL_ESDSCR
84DATA 4 0x83FD9014 0x04008008
85DATA 4 0x83FD9014 0x0000801a
86DATA 4 0x83FD9014 0x0000801b
87DATA 4 0x83FD9014 0x00448019
88DATA 4 0x83FD9014 0x07328018
89DATA 4 0x83FD9014 0x04008008
90DATA 4 0x83FD9014 0x00008010
91DATA 4 0x83FD9014 0x00008010
92DATA 4 0x83FD9014 0x06328018
93DATA 4 0x83FD9014 0x03808019
94DATA 4 0x83FD9014 0x00408019
95DATA 4 0x83FD9014 0x00008000
96
97# Init DRAM on CS1
98DATA 4 0x83FD9014 0x0400800c
99DATA 4 0x83FD9014 0x0000801e
100DATA 4 0x83FD9014 0x0000801f
101DATA 4 0x83FD9014 0x0000801d
102DATA 4 0x83FD9014 0x0732801c
103DATA 4 0x83FD9014 0x0400800c
104DATA 4 0x83FD9014 0x00008014
105DATA 4 0x83FD9014 0x00008014
106DATA 4 0x83FD9014 0x0632801c
107DATA 4 0x83FD9014 0x0380801d
108DATA 4 0x83FD9014 0x0040801d
109DATA 4 0x83FD9014 0x00008004
110
111# Write to CTL0
112DATA 4 0x83FD9000 0xb2a20000
113# Write to CTL1
114DATA 4 0x83FD9008 0xb2a20000
115# ESDMISC
116DATA 4 0x83FD9010 0x000ad6d0
117#ESDCTL_ESDCDLYGD
118DATA 4 0x83FD9034 0x90000000
119DATA 4 0x83FD9014 0x00000000
120