blob: 1934343416fe74cd8e4cf95b61a234ae9a259361 [file] [log] [blame]
Stefan Roese05d10b52013-04-17 00:32:43 +00001/*
2 * Projectiondesign AS
3 * Derived from ./board/freescale/mx6qsabrelite/imximage.cfg
4 *
5 * Copyright (C) 2011 Freescale Semiconductor, Inc.
6 * Jason Liu <r64343@freescale.com>
7 *
8 * See file CREDITS for list of people who contributed to this
9 * project.
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of
14 * the License or (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * Refer docs/README.imxmage for more details about how-to configure
22 * and create imximage boot image
23 *
24 * The syntax is taken as close as possible with the kwbimage
25 */
26
27/* image version */
28
29IMAGE_VERSION 2
30
31/*
32 * Boot Device : one of
33 * sd, nand
34 */
35BOOT_FROM nand
36
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 */
48
49#define __ASSEMBLY__
50#include <config.h>
51#include "asm/arch/mx6-ddr.h"
52#include "asm/arch/iomux.h"
53#include "asm/arch/crm_regs.h"
54
55DATA 4, MX6_IOM_DRAM_SDQS0, 0x00000030
56DATA 4, MX6_IOM_DRAM_SDQS1, 0x00000030
57DATA 4, MX6_IOM_DRAM_SDQS2, 0x00000030
58DATA 4, MX6_IOM_DRAM_SDQS3, 0x00000030
59DATA 4, MX6_IOM_DRAM_SDQS4, 0x00000030
60DATA 4, MX6_IOM_DRAM_SDQS5, 0x00000030
61DATA 4, MX6_IOM_DRAM_SDQS6, 0x00000030
62DATA 4, MX6_IOM_DRAM_SDQS7, 0x00000030
63
64DATA 4, MX6_IOM_DRAM_DQM0, 0x00020030
65DATA 4, MX6_IOM_DRAM_DQM1, 0x00020030
66DATA 4, MX6_IOM_DRAM_DQM2, 0x00020030
67DATA 4, MX6_IOM_DRAM_DQM3, 0x00020030
68DATA 4, MX6_IOM_DRAM_DQM4, 0x00020030
69DATA 4, MX6_IOM_DRAM_DQM5, 0x00020030
70DATA 4, MX6_IOM_DRAM_DQM6, 0x00020030
71DATA 4, MX6_IOM_DRAM_DQM7, 0x00020030
72
73DATA 4, MX6_IOM_DRAM_CAS, 0x00020030
74DATA 4, MX6_IOM_DRAM_RAS, 0x00020030
75DATA 4, MX6_IOM_DRAM_SDCLK_0, 0x00020030
76DATA 4, MX6_IOM_DRAM_SDCLK_1, 0x00020030
77
78DATA 4, MX6_IOM_DRAM_RESET, 0x00020030
79DATA 4, MX6_IOM_DRAM_SDCKE0, 0x00003000
80DATA 4, MX6_IOM_DRAM_SDCKE1, 0x00003000
81
82DATA 4, MX6_IOM_DRAM_SDBA2, 0x00000000
83
84DATA 4, MX6_IOM_DRAM_SDODT0, 0x00003030
85DATA 4, MX6_IOM_DRAM_SDODT1, 0x00003030
86
87DATA 4, MX6_IOM_GRP_B0DS, 0x00000030
88DATA 4, MX6_IOM_GRP_B1DS, 0x00000030
89DATA 4, MX6_IOM_GRP_B2DS, 0x00000030
90DATA 4, MX6_IOM_GRP_B3DS, 0x00000030
91DATA 4, MX6_IOM_GRP_B4DS, 0x00000030
92DATA 4, MX6_IOM_GRP_B5DS, 0x00000030
93DATA 4, MX6_IOM_GRP_B6DS, 0x00000030
94DATA 4, MX6_IOM_GRP_B7DS, 0x00000030
95DATA 4, MX6_IOM_GRP_ADDDS, 0x00000030
96
97/* (differential input) */
98DATA 4, MX6_IOM_DDRMODE_CTL, 0x00020000
99/* disable ddr pullups */
100DATA 4, MX6_IOM_GRP_DDRPKE, 0x00000000
101/* (differential input) */
102DATA 4, MX6_IOM_GRP_DDRMODE, 0x00020000
103/* 40 Ohm drive strength for cs0/1,sdba2,cke0/1,sdwe */
104DATA 4, MX6_IOM_GRP_CTLDS, 0x00000030
105/* 40 Ohm drive strength for cs0/1,sdba2,cke0/1,sdwe */
106DATA 4, MX6_IOM_GRP_DDR_TYPE, 0x000C0000
107
108/* Read data DQ Byte0-3 delay */
109DATA 4, MX6_MMDC_P0_MPRDDQBY0DL, 0x33333333
110DATA 4, MX6_MMDC_P0_MPRDDQBY1DL, 0x33333333
111DATA 4, MX6_MMDC_P0_MPRDDQBY2DL, 0x33333333
112DATA 4, MX6_MMDC_P0_MPRDDQBY3DL, 0x33333333
113DATA 4, MX6_MMDC_P1_MPRDDQBY0DL, 0x33333333
114DATA 4, MX6_MMDC_P1_MPRDDQBY1DL, 0x33333333
115DATA 4, MX6_MMDC_P1_MPRDDQBY2DL, 0x33333333
116DATA 4, MX6_MMDC_P1_MPRDDQBY3DL, 0x33333333
117
118/*
119 * MDMISC mirroring interleaved (row/bank/col)
120 */
121DATA 4, MX6_MMDC_P0_MDMISC, 0x00081740
122
123DATA 4, MX6_MMDC_P0_MDSCR, 0x00008000
124DATA 4, MX6_MMDC_P0_MDCFG0, 0x555A7975
125DATA 4, MX6_MMDC_P0_MDCFG1, 0xFF538E64
126DATA 4, MX6_MMDC_P0_MDCFG2, 0x01FF00DB
127DATA 4, MX6_MMDC_P0_MDRWD, 0x000026D2
128DATA 4, MX6_MMDC_P0_MDOR, 0x005B0E21
129DATA 4, MX6_MMDC_P0_MDOTC, 0x09444040
130DATA 4, MX6_MMDC_P0_MDPDC, 0x00025576
131DATA 4, MX6_MMDC_P0_MDASP, 0x00000017
132DATA 4, MX6_MMDC_P0_MDCTL, 0x83190000
133DATA 4, MX6_MMDC_P0_MDSCR, 0x04088032
134DATA 4, MX6_MMDC_P0_MDSCR, 0x0408803A
135DATA 4, MX6_MMDC_P0_MDSCR, 0x00008033
136DATA 4, MX6_MMDC_P0_MDSCR, 0x0000803B
137DATA 4, MX6_MMDC_P0_MDSCR, 0x00428031
138DATA 4, MX6_MMDC_P0_MDSCR, 0x00428039
139DATA 4, MX6_MMDC_P0_MDSCR, 0x09408030
140DATA 4, MX6_MMDC_P0_MDSCR, 0x09408038
141DATA 4, MX6_MMDC_P0_MDSCR, 0x04008040
142DATA 4, MX6_MMDC_P0_MDSCR, 0x04008048
143DATA 4, MX6_MMDC_P0_MPZQHWCTRL, 0xA1380003
144DATA 4, MX6_MMDC_P1_MPZQHWCTRL, 0xA1380003
145DATA 4, MX6_MMDC_P0_MDREF, 0x00005800
146DATA 4, MX6_MMDC_P0_MPODTCTRL, 0x00022227
147DATA 4, MX6_MMDC_P1_MPODTCTRL, 0x00022227
148DATA 4, MX6_MMDC_P0_MPDGCTRL0, 0x434B0350
149DATA 4, MX6_MMDC_P0_MPDGCTRL1, 0x034C0359
150DATA 4, MX6_MMDC_P1_MPDGCTRL0, 0x434B0350
151DATA 4, MX6_MMDC_P1_MPDGCTRL1, 0x03650348
152DATA 4, MX6_MMDC_P0_MPRDDLCTL, 0x4436383B
153DATA 4, MX6_MMDC_P1_MPRDDLCTL, 0x39393341
154DATA 4, MX6_MMDC_P0_MPWRDLCTL, 0x35373933
155DATA 4, MX6_MMDC_P1_MPWRDLCTL, 0x48254A36
156DATA 4, MX6_MMDC_P0_MPWLDECTRL0, 0x001F001F
157DATA 4, MX6_MMDC_P0_MPWLDECTRL1, 0x001F001F
158DATA 4, MX6_MMDC_P1_MPWLDECTRL0, 0x00440044
159DATA 4, MX6_MMDC_P1_MPWLDECTRL1, 0x00440044
160DATA 4, MX6_MMDC_P0_MPMUR0, 0x00000800
161DATA 4, MX6_MMDC_P1_MPMUR0, 0x00000800
162DATA 4, MX6_MMDC_P0_MDSCR, 0x00000000
163DATA 4, MX6_MMDC_P0_MAPSR, 0x00011006
164
165/* set the default clock gate to save power */
166DATA 4, CCM_CCGR0, 0x00C03F3F
167DATA 4, CCM_CCGR1, 0x0030FC03
168DATA 4, CCM_CCGR2, 0x0FFFC000
169DATA 4, CCM_CCGR3, 0x3FF00000
170DATA 4, CCM_CCGR4, 0xFFFFF300 /* enable NAND/GPMI/BCH clocks */
171DATA 4, CCM_CCGR5, 0x0F0000C3
172DATA 4, CCM_CCGR6, 0x000003FF
173
174/* enable AXI cache for VDOA/VPU/IPU */
175DATA 4, MX6_IOMUXC_GPR4, 0xF00000CF
176/* set IPU AXI-id0 Qos=0xf(bypass) AXI-id1 Qos=0x7 */
177DATA 4, MX6_IOMUXC_GPR6, 0x007F007F
178DATA 4, MX6_IOMUXC_GPR7, 0x007F007F