blob: 65a3c455ef08528a699ae2a33c08186760058d2e [file] [log] [blame]
Peng Fanc81c41f2016-10-11 14:29:15 +08001/*
2 * Copyright (C) 2016 Freescale Semiconductor, Inc.
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#include <config.h>
8
9/* DDR script */
10.macro imx6ull_ddr3_evk_setting
11 ldr r0, =IOMUXC_BASE_ADDR
12 ldr r1, =0x000C0000
13 str r1, [r0, #0x4B4]
14 ldr r1, =0x00000000
15 str r1, [r0, #0x4AC]
16 ldr r1, =0x00000030
17 str r1, [r0, #0x27C]
18 ldr r1, =0x00000030
19 str r1, [r0, #0x250]
20 str r1, [r0, #0x24C]
21 str r1, [r0, #0x490]
22 ldr r1, =0x000C0030
23 str r1, [r0, #0x288]
24
25 ldr r1, =0x00000000
26 str r1, [r0, #0x270]
27
28 ldr r1, =0x00000030
29 str r1, [r0, #0x260]
30 str r1, [r0, #0x264]
31 str r1, [r0, #0x4A0]
32
33 ldr r1, =0x00020000
34 str r1, [r0, #0x494]
35
36 ldr r1, =0x00000030
37 str r1, [r0, #0x280]
38 ldr r1, =0x00000030
39 str r1, [r0, #0x284]
40
41 ldr r1, =0x00020000
42 str r1, [r0, #0x4B0]
43
44 ldr r1, =0x00000030
45 str r1, [r0, #0x498]
46 str r1, [r0, #0x4A4]
47 str r1, [r0, #0x244]
48 str r1, [r0, #0x248]
49
50 ldr r0, =MMDC_P0_BASE_ADDR
51 ldr r1, =0x00008000
52 str r1, [r0, #0x1C]
53 ldr r1, =0xA1390003
54 str r1, [r0, #0x800]
55 ldr r1, =0x00000004
56 str r1, [r0, #0x80C]
57 ldr r1, =0x41640158
58 str r1, [r0, #0x83C]
59 ldr r1, =0x40403237
60 str r1, [r0, #0x848]
61 ldr r1, =0x40403C33
62 str r1, [r0, #0x850]
63 ldr r1, =0x33333333
64 str r1, [r0, #0x81C]
65 str r1, [r0, #0x820]
66 ldr r1, =0xF3333333
67 str r1, [r0, #0x82C]
68 str r1, [r0, #0x830]
69 ldr r1, =0x00944009
70 str r1, [r0, #0x8C0]
71 ldr r1, =0x00000800
72 str r1, [r0, #0x8B8]
73 ldr r1, =0x0002002D
74 str r1, [r0, #0x004]
75 ldr r1, =0x1B333030
76 str r1, [r0, #0x008]
77 ldr r1, =0x676B52F3
78 str r1, [r0, #0x00C]
79 ldr r1, =0xB66D0B63
80 str r1, [r0, #0x010]
81 ldr r1, =0x01FF00DB
82 str r1, [r0, #0x014]
83 ldr r1, =0x00201740
84 str r1, [r0, #0x018]
85 ldr r1, =0x00008000
86 str r1, [r0, #0x01C]
87 ldr r1, =0x000026D2
88 str r1, [r0, #0x02C]
89 ldr r1, =0x006B1023
90 str r1, [r0, #0x030]
91 ldr r1, =0x0000004F
92 str r1, [r0, #0x040]
93 ldr r1, =0x84180000
94 str r1, [r0, #0x000]
95 ldr r1, =0x00400000
96 str r1, [r0, #0x890]
97 ldr r1, =0x02008032
98 str r1, [r0, #0x01C]
99 ldr r1, =0x00008033
100 str r1, [r0, #0x01C]
101 ldr r1, =0x00048031
102 str r1, [r0, #0x01C]
103 ldr r1, =0x15208030
104 str r1, [r0, #0x01C]
105 ldr r1, =0x04008040
106 str r1, [r0, #0x01C]
107 ldr r1, =0x00000800
108 str r1, [r0, #0x020]
109 ldr r1, =0x00000227
110 str r1, [r0, #0x818]
111 ldr r1, =0x0002552D
112 str r1, [r0, #0x004]
113 ldr r1, =0x00011006
114 str r1, [r0, #0x404]
115 ldr r1, =0x00000000
116 str r1, [r0, #0x01C]
117.endm
118
119.macro imx6_clock_gating
120 ldr r0, =CCM_BASE_ADDR
121 ldr r1, =0xFFFFFFFF
122 str r1, [r0, #0x68]
123 str r1, [r0, #0x6C]
124 str r1, [r0, #0x70]
125 str r1, [r0, #0x74]
126 str r1, [r0, #0x78]
127 str r1, [r0, #0x7C]
128 str r1, [r0, #0x80]
129.endm
130
131.macro imx6_qos_setting
132.endm
133
134.macro imx6_ddr_setting
135 imx6ull_ddr3_evk_setting
136.endm
137
138/* include the common plugin code here */
139#include <asm/arch/mx6_plugin.S>