blob: 26d259f2c209633f29fef052ce751ade0e4208e5 [file] [log] [blame]
Marek Vasut92c34832011-01-19 04:40:37 +00001#
Matt Sealeya50f8d92012-08-24 06:44:24 +00002# Copyright (C) 2009 Pegatron Corporation
Marek Vasut92c34832011-01-19 04:40:37 +00003# Copyright (C) 2010 Marek Vasut <marek.vasut@gmail.com>
Matt Sealeya50f8d92012-08-24 06:44:24 +00004# Copyright (C) 2009-2012 Genesi USA, Inc.
Marek Vasut92c34832011-01-19 04:40:37 +00005#
6# BASED ON: imx51evk
7#
8# (C) Copyright 2009
9# Stefano Babic DENX Software Engineering sbabic@denx.de.
10#
11# See file CREDITS for list of people who contributed to this
12# project.
13#
14# This program is free software; you can redistribute it and/or
15# modify it under the terms of the GNU General Public License as
16# published by the Free Software Foundation; either version 2 of
17# the License or (at your option) any later version.
18#
19# This program is distributed in the hope that it will be useful,
20# but WITHOUT ANY WARRANTY; without even the implied warranty of
21# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22# GNU General Public License for more details.
23#
24# You should have received a copy of the GNU General Public License
25# along with this program; if not write to the Free Software
26# Foundation Inc. 51 Franklin Street Fifth Floor Boston,
27# MA 02110-1301 USA
28#
29# Refer docs/README.imxmage for more details about how-to configure
30# and create imximage boot image
31#
32# The syntax is taken as close as possible with the kwbimage
33
34# Boot Device : one of
35# spi, sd (the board has no nand neither onenand)
36BOOT_FROM spi
37
38# Device Configuration Data (DCD)
39#
40# Each entry must have the format:
41# Addr-type Address Value
42#
43# where:
44# Addr-type register length (1,2 or 4 bytes)
45# Address absolute address of the register
46# value value to be stored in the register
47
Matt Sealeya50f8d92012-08-24 06:44:24 +000048# DDR bus IOMUX PAD settings
49DATA 4 0x73fa88a0 0x200 # GRP_INMODE1
50DATA 4 0x73fa850c 0x20c5 # SDODT1
51DATA 4 0x73fa8510 0x20c5 # SDODT0
52DATA 4 0x73fa8848 0x4 # DDR_A1
53DATA 4 0x73fa84b8 0xe7 # DRAM_SDCLK
54DATA 4 0x73fa84bc 0x45 # DRAM_SDQS0
55DATA 4 0x73fa84c0 0x45 # DRAM_SDQS1
56DATA 4 0x73fa84c4 0x45 # DRAM_SDQS2
57DATA 4 0x73fa84c8 0x45 # DRAM_SDQS3
58DATA 4 0x73fa8820 0x0 # DDRPKS
59DATA 4 0x73fa84ac 0xe5 # SDWE
60DATA 4 0x73fa84b0 0xe5 # SDCKE0
61DATA 4 0x73fa84b4 0xe5 # SDCKE1
62DATA 4 0x73fa84cc 0xe5 # DRAM_CS0
63DATA 4 0x73fa84d0 0xe4 # DRAM_CS1
Marek Vasut92c34832011-01-19 04:40:37 +000064
65# Setting DDR for micron
66# 13 Rows, 10 Cols, 32 bit, SREF=4 Micron Model
67# CAS=3 BL=4
68# ESDCTL_ESDCTL0
69DATA 4 0x83fd9000 0x82a20000
70# ESDCTL_ESDCTL1
71DATA 4 0x83fd9008 0x82a20000
72# ESDCTL_ESDMISC
73DATA 4 0x83fd9010 0xcaaaf6d0
74# ESDCTL_ESDCFG0
Marek Vasutca608fe2011-09-25 09:52:04 +000075DATA 4 0x83fd9004 0x333574aa
Marek Vasut92c34832011-01-19 04:40:37 +000076# ESDCTL_ESDCFG1
Marek Vasutca608fe2011-09-25 09:52:04 +000077DATA 4 0x83fd900c 0x333574aa
Marek Vasut92c34832011-01-19 04:40:37 +000078
79# Init DRAM on CS0
80# ESDCTL_ESDSCR
81DATA 4 0x83fd9014 0x04008008
82DATA 4 0x83fd9014 0x0000801a
83DATA 4 0x83fd9014 0x0000801b
84DATA 4 0x83fd9014 0x00448019
85DATA 4 0x83fd9014 0x07328018
86DATA 4 0x83fd9014 0x04008008
87DATA 4 0x83fd9014 0x00008010
88DATA 4 0x83fd9014 0x00008010
89DATA 4 0x83fd9014 0x06328018
90DATA 4 0x83fd9014 0x03808019
91DATA 4 0x83fd9014 0x00408019
92DATA 4 0x83fd9014 0x00008000
93
94# Init DRAM on CS1
95DATA 4 0x83fd9014 0x0400800c
96DATA 4 0x83fd9014 0x0000801e
97DATA 4 0x83fd9014 0x0000801f
98DATA 4 0x83fd9014 0x0000801d
99DATA 4 0x83fd9014 0x0732801c
100DATA 4 0x83fd9014 0x0400800c
101DATA 4 0x83fd9014 0x00008014
102DATA 4 0x83fd9014 0x00008014
103DATA 4 0x83fd9014 0x0632801c
104DATA 4 0x83fd9014 0x0380801d
Matt Sealeya50f8d92012-08-24 06:44:24 +0000105DATA 4 0x83fd9014 0x0042801d
Marek Vasut92c34832011-01-19 04:40:37 +0000106DATA 4 0x83fd9014 0x00008004
107
108# Write to CTL0
109DATA 4 0x83fd9000 0xb2a20000
110# Write to CTL1
111DATA 4 0x83fd9008 0xb2a20000
112# ESDMISC
Marek Vasutca608fe2011-09-25 09:52:04 +0000113DATA 4 0x83fd9010 0xcaaaf6d0
Marek Vasut92c34832011-01-19 04:40:37 +0000114#ESDCTL_ESDCDLYGD
115DATA 4 0x83fd9034 0x90000000
116DATA 4 0x83fd9014 0x00000000