blob: e2911eb401a161c82e507d293d5a3eb1da51d7a5 [file] [log] [blame]
Troy Kiskya18d7862013-01-18 16:14:24 +00001/*
2 * Copyright (C) 2009 Pegatron Corporation
3 * Copyright (C) 2010 Marek Vasut <marek.vasut@gmail.com>
4 * Copyright (C) 2009-2012 Genesi USA, Inc.
5 *
6 * BASED ON: imx51evk
7 *
8 * (C) Copyright 2009
9 * Stefano Babic DENX Software Engineering sbabic@denx.de.
10 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +020011 * SPDX-License-Identifier: GPL-2.0+
Troy Kiskya18d7862013-01-18 16:14:24 +000012 *
Anatolij Gustschinfd4b3d32013-04-30 11:15:33 +000013 * Refer doc/README.imximage for more details about how-to configure
Troy Kiskya18d7862013-01-18 16:14:24 +000014 * and create imximage boot image
15 *
16 * The syntax is taken as close as possible with the kwbimage
17 */
Marek Vasut92c34832011-01-19 04:40:37 +000018
Troy Kiskya18d7862013-01-18 16:14:24 +000019/*
20 * Boot Device : one of
21 * spi, sd (the board has no nand neither onenand)
22 */
Marek Vasut92c34832011-01-19 04:40:37 +000023BOOT_FROM spi
24
Troy Kiskya18d7862013-01-18 16:14:24 +000025/*
26 * Device Configuration Data (DCD)
27 *
28 * Each entry must have the format:
29 * Addr-type Address Value
30 *
31 * where:
32 * Addr-type register length (1,2 or 4 bytes)
33 * Address absolute address of the register
34 * value value to be stored in the register
35 */
36/*
37 * Essential GPIO settings to be done as early as possible
38 * PCBIDn pad settings are all the defaults except #2 which needs HVE off
39 */
Matt Sealey57c0f812012-08-22 09:25:40 +000040DATA 4 0x73fa8134 0x3 # PCBID0 ALT3 GPIO 3_16
41DATA 4 0x73fa8130 0x3 # PCBID1 ALT3 GPIO 3_17
42DATA 4 0x73fa8128 0x3 # PCBID2 ALT3 GPIO 3_11
43DATA 4 0x73fa8504 0xe4 # PCBID2 PAD ~HVE
44DATA 4 0x73fa8198 0x3 # LED0 ALT3 GPIO 3_13
45DATA 4 0x73fa81c4 0x3 # LED1 ALT3 GPIO 3_14
46DATA 4 0x73fa81c8 0x3 # LED2 ALT3 GPIO 3_15
47
Troy Kiskya18d7862013-01-18 16:14:24 +000048/* DDR bus IOMUX PAD settings */
Matt Sealey285961e2012-08-22 09:25:39 +000049DATA 4 0x73fa850c 0x20c5 # SDODT1
50DATA 4 0x73fa8510 0x20c5 # SDODT0
51DATA 4 0x73fa84ac 0xc5 # SDWE
52DATA 4 0x73fa84b0 0xc5 # SDCKE0
53DATA 4 0x73fa84b4 0xc5 # SDCKE1
54DATA 4 0x73fa84cc 0xc5 # DRAM_CS0
55DATA 4 0x73fa84d0 0xc5 # DRAM_CS1
56DATA 4 0x73fa882c 0x2 # DRAM_B4
57DATA 4 0x73fa88a4 0x2 # DRAM_B0
58DATA 4 0x73fa88ac 0x2 # DRAM_B1
59DATA 4 0x73fa88b8 0x2 # DRAM_B2
60DATA 4 0x73fa84d4 0xc5 # DRAM_DQM0
61DATA 4 0x73fa84d8 0xc5 # DRAM_DQM1
62DATA 4 0x73fa84dc 0xc5 # DRAM_DQM2
63DATA 4 0x73fa84e0 0xc5 # DRAM_DQM3
Marek Vasut92c34832011-01-19 04:40:37 +000064
Troy Kiskya18d7862013-01-18 16:14:24 +000065/*
66 * Setting DDR for micron
67 * 13 Rows, 10 Cols, 32 bit, SREF=4 Micron Model
68 * CAS=3 BL=4
69 */
70/* ESDCTL_ESDCTL0 */
Marek Vasut92c34832011-01-19 04:40:37 +000071DATA 4 0x83fd9000 0x82a20000
Troy Kiskya18d7862013-01-18 16:14:24 +000072/* ESDCTL_ESDCTL1 */
Marek Vasut92c34832011-01-19 04:40:37 +000073DATA 4 0x83fd9008 0x82a20000
Troy Kiskya18d7862013-01-18 16:14:24 +000074/* ESDCTL_ESDMISC */
Marek Vasut92c34832011-01-19 04:40:37 +000075DATA 4 0x83fd9010 0xcaaaf6d0
Troy Kiskya18d7862013-01-18 16:14:24 +000076/* ESDCTL_ESDCFG0 */
Marek Vasut92c34832011-01-19 04:40:37 +000077DATA 4 0x83fd9004 0x3f3574aa
Troy Kiskya18d7862013-01-18 16:14:24 +000078/* ESDCTL_ESDCFG1 */
Marek Vasut92c34832011-01-19 04:40:37 +000079DATA 4 0x83fd900c 0x3f3574aa
80
Troy Kiskya18d7862013-01-18 16:14:24 +000081/* Init DRAM on CS0 */
82/* ESDCTL_ESDSCR */
Marek Vasut92c34832011-01-19 04:40:37 +000083DATA 4 0x83fd9014 0x04008008
84DATA 4 0x83fd9014 0x0000801a
85DATA 4 0x83fd9014 0x0000801b
86DATA 4 0x83fd9014 0x00448019
87DATA 4 0x83fd9014 0x07328018
88DATA 4 0x83fd9014 0x04008008
89DATA 4 0x83fd9014 0x00008010
90DATA 4 0x83fd9014 0x00008010
91DATA 4 0x83fd9014 0x06328018
92DATA 4 0x83fd9014 0x03808019
93DATA 4 0x83fd9014 0x00408019
94DATA 4 0x83fd9014 0x00008000
95
Troy Kiskya18d7862013-01-18 16:14:24 +000096/* Init DRAM on CS1 */
Marek Vasut92c34832011-01-19 04:40:37 +000097DATA 4 0x83fd9014 0x0400800c
98DATA 4 0x83fd9014 0x0000801e
99DATA 4 0x83fd9014 0x0000801f
100DATA 4 0x83fd9014 0x0000801d
101DATA 4 0x83fd9014 0x0732801c
102DATA 4 0x83fd9014 0x0400800c
103DATA 4 0x83fd9014 0x00008014
104DATA 4 0x83fd9014 0x00008014
105DATA 4 0x83fd9014 0x0632801c
106DATA 4 0x83fd9014 0x0380801d
107DATA 4 0x83fd9014 0x0040801d
108DATA 4 0x83fd9014 0x00008004
109
Troy Kiskya18d7862013-01-18 16:14:24 +0000110/* Write to CTL0 */
Marek Vasut92c34832011-01-19 04:40:37 +0000111DATA 4 0x83fd9000 0xb2a20000
Troy Kiskya18d7862013-01-18 16:14:24 +0000112/* Write to CTL1 */
Marek Vasut92c34832011-01-19 04:40:37 +0000113DATA 4 0x83fd9008 0xb2a20000
Troy Kiskya18d7862013-01-18 16:14:24 +0000114/* ESDMISC */
Marek Vasut92c34832011-01-19 04:40:37 +0000115DATA 4 0x83fd9010 0x000ad6d0
Troy Kiskya18d7862013-01-18 16:14:24 +0000116/* ESDCTL_ESDCDLYGD */
Marek Vasut92c34832011-01-19 04:40:37 +0000117DATA 4 0x83fd9034 0x90000000
118DATA 4 0x83fd9014 0x00000000