blob: f92fc19de47fe749f47c3f001a99908ca4109479 [file] [log] [blame]
Fabio Estevamf22d7592014-01-03 15:55:58 -02001/*
2 * Copyright (C) 2013 Boundary Devices
3 * Copyright (C) 2013 SolidRun ltd.
4 * Copyright (C) 2013 Jon Nettleton <jon.nettleton@gmail.com>
5 *
6 * SPDX-License-Identifier: GPL-2.0+
7 */
8
9/*
10 * DDR3 settings
11 * MX6Q ddr is limited to 1066 Mhz currently 1056 MHz(528 MHz clock),
12 * memory bus width: 64 bits x16/x32/x64
13 * MX6DL ddr is limited to 800 MHz(400 MHz clock)
14 * memory bus width: 64 bits x16/x32/x64
15 * MX6SOLO ddr is limited to 800 MHz(400 MHz clock)
16 * memory bus width: 32 bits x16/x32
17 */
18/* DDR IO TYPE */
19DATA 4, MX6_IOM_GRP_DDR_TYPE, 0x000c0000
20DATA 4, MX6_IOM_GRP_DDRPKE, 0x00000000
21/* Clock */
22DATA 4, MX6_IOM_DRAM_SDCLK_0, 0x00000028
23DATA 4, MX6_IOM_DRAM_SDCLK_1, 0x00000028
24/* Address */
25DATA 4, MX6_IOM_DRAM_CAS, 0x00000010
26DATA 4, MX6_IOM_DRAM_RAS, 0x00000010
27DATA 4, MX6_IOM_GRP_ADDDS, 0x00000010
28/* Control */
29DATA 4, MX6_IOM_DRAM_RESET, 0x00000010
30DATA 4, MX6_IOM_DRAM_SDCKE0, 0x00003000
31DATA 4, MX6_IOM_DRAM_SDCKE1, 0x00003000
32DATA 4, MX6_IOM_DRAM_SDBA2, 0x00000000
33DATA 4, MX6_IOM_DRAM_SDODT0, 0x00000010
34DATA 4, MX6_IOM_DRAM_SDODT1, 0x00000010
35DATA 4, MX6_IOM_GRP_CTLDS, 0x00000010
36
37/*
38 * Data Strobe: IOMUXC_SW_PAD_CTL_GRP_DDRMODE_CTL - DDR_INPUT=0, CMOS,
39 * CMOS mode saves power, but have less timing margin in case of DDR
40 * timing issue on your board you can try DDR_MODE: [= 0x00020000]
41 */
42DATA 4, MX6_IOM_DDRMODE_CTL, 0x00020000
43
44DATA 4, MX6_IOM_DRAM_SDQS0, 0x00000028
45DATA 4, MX6_IOM_DRAM_SDQS1, 0x00000028
46DATA 4, MX6_IOM_DRAM_SDQS2, 0x00000028
47DATA 4, MX6_IOM_DRAM_SDQS3, 0x00000028
48DATA 4, MX6_IOM_DRAM_SDQS4, 0x00000000
49DATA 4, MX6_IOM_DRAM_SDQS5, 0x00000000
50DATA 4, MX6_IOM_DRAM_SDQS6, 0x00000000
51DATA 4, MX6_IOM_DRAM_SDQS7, 0x00000000
52
53/*
54 * DATA:IOMUXC_SW_PAD_CTL_GRP_DDRMODE - DDR_INPUT=0, CMOS,
55 * CMOS mode saves power, but have less timing margin in case of DDR
56 * timing issue on your board you can try DDR_MODE: [= 0x00020000]
57 */
58DATA 4, MX6_IOM_GRP_DDRMODE, 0x00020000
59
60DATA 4, MX6_IOM_GRP_B0DS, 0x00000028
61DATA 4, MX6_IOM_GRP_B1DS, 0x00000028
62DATA 4, MX6_IOM_GRP_B2DS, 0x00000028
63DATA 4, MX6_IOM_GRP_B3DS, 0x00000028
64DATA 4, MX6_IOM_GRP_B4DS, 0x00000000
65DATA 4, MX6_IOM_GRP_B5DS, 0x00000000
66DATA 4, MX6_IOM_GRP_B6DS, 0x00000000
67DATA 4, MX6_IOM_GRP_B7DS, 0x00000000
68
69DATA 4, MX6_IOM_DRAM_DQM0, 0x00000028
70DATA 4, MX6_IOM_DRAM_DQM1, 0x00000028
71DATA 4, MX6_IOM_DRAM_DQM2, 0x00000028
72DATA 4, MX6_IOM_DRAM_DQM3, 0x00000028
73DATA 4, MX6_IOM_DRAM_DQM4, 0x00000000
74DATA 4, MX6_IOM_DRAM_DQM5, 0x00000000
75DATA 4, MX6_IOM_DRAM_DQM6, 0x00000000
76DATA 4, MX6_IOM_DRAM_DQM7, 0x00000000