blob: a67d41b42e9c2dcf26ba4210f9fded36f6c7ff78 [file] [log] [blame]
Troy Kisky71a988a2013-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 Denk1a459662013-07-08 09:37:19 +020011 * SPDX-License-Identifier: GPL-2.0+
Troy Kisky71a988a2013-01-18 16:14:24 +000012 */
Marek Vasut0ef4fc52011-09-25 09:52:04 +000013
Troy Kisky71a988a2013-01-18 16:14:24 +000014/*
15 * Boot Device : one of
16 * spi, sd (the board has no nand neither onenand)
17 */
Marek Vasut0ef4fc52011-09-25 09:52:04 +000018BOOT_FROM spi
19
Troy Kisky71a988a2013-01-18 16:14:24 +000020/*
21 * Device Configuration Data (DCD)
22 *
23 * Each entry must have the format:
24 * Addr-type Address Value
25 *
26 * where:
27 * Addr-type register length (1,2 or 4 bytes)
28 * Address absolute address of the register
29 * value value to be stored in the register
30*/
31/* DDR bus IOMUX PAD settings */
Matt Sealey10e21782012-08-24 06:44:24 +000032DATA 4 0x73fa88a0 0x200 # GRP_INMODE1
33DATA 4 0x73fa850c 0x20c5 # SDODT1
34DATA 4 0x73fa8510 0x20c5 # SDODT0
35DATA 4 0x73fa8848 0x4 # DDR_A1
36DATA 4 0x73fa84b8 0xe7 # DRAM_SDCLK
37DATA 4 0x73fa84bc 0x45 # DRAM_SDQS0
38DATA 4 0x73fa84c0 0x45 # DRAM_SDQS1
39DATA 4 0x73fa84c4 0x45 # DRAM_SDQS2
40DATA 4 0x73fa84c8 0x45 # DRAM_SDQS3
41DATA 4 0x73fa8820 0x0 # DDRPKS
42DATA 4 0x73fa84ac 0xe5 # SDWE
43DATA 4 0x73fa84b0 0xe5 # SDCKE0
44DATA 4 0x73fa84b4 0xe5 # SDCKE1
45DATA 4 0x73fa84cc 0xe5 # DRAM_CS0
46DATA 4 0x73fa84d0 0xe4 # DRAM_CS1
Marek Vasut0ef4fc52011-09-25 09:52:04 +000047
Troy Kisky71a988a2013-01-18 16:14:24 +000048/*
49 * Setting DDR for micron
50 * 13 Rows, 10 Cols, 32 bit, SREF=4 Micron Model
51 * CAS=3 BL=4
52 */
53/* ESDCTL_ESDCTL0 */
Marek Vasut0ef4fc52011-09-25 09:52:04 +000054DATA 4 0x83fd9000 0x82a20000
Troy Kisky71a988a2013-01-18 16:14:24 +000055/* ESDCTL_ESDCTL1 */
Marek Vasut0ef4fc52011-09-25 09:52:04 +000056DATA 4 0x83fd9008 0x82a20000
Troy Kisky71a988a2013-01-18 16:14:24 +000057/* ESDCTL_ESDMISC */
Marek Vasut0ef4fc52011-09-25 09:52:04 +000058DATA 4 0x83fd9010 0xcaaaf6d0
Troy Kisky71a988a2013-01-18 16:14:24 +000059/* ESDCTL_ESDCFG0 */
Marek Vasut0ef4fc52011-09-25 09:52:04 +000060DATA 4 0x83fd9004 0x333574aa
Troy Kisky71a988a2013-01-18 16:14:24 +000061/* ESDCTL_ESDCFG1 */
Marek Vasut0ef4fc52011-09-25 09:52:04 +000062DATA 4 0x83fd900c 0x333574aa
63
Troy Kisky71a988a2013-01-18 16:14:24 +000064/* Init DRAM on CS0 */
65/* ESDCTL_ESDSCR */
Marek Vasut0ef4fc52011-09-25 09:52:04 +000066DATA 4 0x83fd9014 0x04008008
67DATA 4 0x83fd9014 0x0000801a
68DATA 4 0x83fd9014 0x0000801b
69DATA 4 0x83fd9014 0x00448019
70DATA 4 0x83fd9014 0x07328018
71DATA 4 0x83fd9014 0x04008008
72DATA 4 0x83fd9014 0x00008010
73DATA 4 0x83fd9014 0x00008010
74DATA 4 0x83fd9014 0x06328018
75DATA 4 0x83fd9014 0x03808019
76DATA 4 0x83fd9014 0x00408019
77DATA 4 0x83fd9014 0x00008000
78
Troy Kisky71a988a2013-01-18 16:14:24 +000079/* Init DRAM on CS1 */
Marek Vasut0ef4fc52011-09-25 09:52:04 +000080DATA 4 0x83fd9014 0x0400800c
81DATA 4 0x83fd9014 0x0000801e
82DATA 4 0x83fd9014 0x0000801f
83DATA 4 0x83fd9014 0x0000801d
84DATA 4 0x83fd9014 0x0732801c
85DATA 4 0x83fd9014 0x0400800c
86DATA 4 0x83fd9014 0x00008014
87DATA 4 0x83fd9014 0x00008014
88DATA 4 0x83fd9014 0x0632801c
89DATA 4 0x83fd9014 0x0380801d
Matt Sealey10e21782012-08-24 06:44:24 +000090DATA 4 0x83fd9014 0x0042801d
Marek Vasut0ef4fc52011-09-25 09:52:04 +000091DATA 4 0x83fd9014 0x00008004
92
Troy Kisky71a988a2013-01-18 16:14:24 +000093/* Write to CTL0 */
Marek Vasut0ef4fc52011-09-25 09:52:04 +000094DATA 4 0x83fd9000 0xb2a20000
Troy Kisky71a988a2013-01-18 16:14:24 +000095/* Write to CTL1 */
Marek Vasut0ef4fc52011-09-25 09:52:04 +000096DATA 4 0x83fd9008 0xb2a20000
Troy Kisky71a988a2013-01-18 16:14:24 +000097/* ESDMISC */
Marek Vasut0ef4fc52011-09-25 09:52:04 +000098DATA 4 0x83fd9010 0xcaaaf6d0
Troy Kisky71a988a2013-01-18 16:14:24 +000099/* ESDCTL_ESDCDLYGD */
Marek Vasut0ef4fc52011-09-25 09:52:04 +0000100DATA 4 0x83fd9034 0x90000000
101DATA 4 0x83fd9014 0x00000000