xref: /rk3399_rockchip-uboot/board/freescale/mx6sllevk/plugin.S (revision 8ea05705a70135a94419b0d243666c1b51fe1f8d)
1*8e1d92fdSPeng Fan/*
2*8e1d92fdSPeng Fan * Copyright (C) 2016 Freescale Semiconductor, Inc.
3*8e1d92fdSPeng Fan *
4*8e1d92fdSPeng Fan * SPDX-License-Identifier:	GPL-2.0+
5*8e1d92fdSPeng Fan */
6*8e1d92fdSPeng Fan
7*8e1d92fdSPeng Fan#include <config.h>
8*8e1d92fdSPeng Fan
9*8e1d92fdSPeng Fan/* DDR script */
10*8e1d92fdSPeng Fan.macro imx6sll_evk_ddr_setting
11*8e1d92fdSPeng Fan	ldr r0, =IOMUXC_BASE_ADDR
12*8e1d92fdSPeng Fan	ldr r1, =0x00080000
13*8e1d92fdSPeng Fan	str r1, [r0, #0x550]
14*8e1d92fdSPeng Fan	ldr r1, =0x00000000
15*8e1d92fdSPeng Fan	str r1, [r0, #0x534]
16*8e1d92fdSPeng Fan	ldr r1, =0x00000030
17*8e1d92fdSPeng Fan	str r1, [r0, #0x2AC]
18*8e1d92fdSPeng Fan	str r1, [r0, #0x548]
19*8e1d92fdSPeng Fan	str r1, [r0, #0x52C]
20*8e1d92fdSPeng Fan	ldr r1, =0x00020000
21*8e1d92fdSPeng Fan	str r1, [r0, #0x530]
22*8e1d92fdSPeng Fan	ldr r1, =0x00003030
23*8e1d92fdSPeng Fan	str r1, [r0, #0x2B0]
24*8e1d92fdSPeng Fan	str r1, [r0, #0x2B4]
25*8e1d92fdSPeng Fan	str r1, [r0, #0x2B8]
26*8e1d92fdSPeng Fan	str r1, [r0, #0x2BC]
27*8e1d92fdSPeng Fan
28*8e1d92fdSPeng Fan	ldr r1, =0x00020000
29*8e1d92fdSPeng Fan	str r1, [r0, #0x540]
30*8e1d92fdSPeng Fan	ldr r1, =0x00000030
31*8e1d92fdSPeng Fan	str r1, [r0, #0x544]
32*8e1d92fdSPeng Fan	str r1, [r0, #0x54C]
33*8e1d92fdSPeng Fan	str r1, [r0, #0x554]
34*8e1d92fdSPeng Fan	str r1, [r0, #0x558]
35*8e1d92fdSPeng Fan	str r1, [r0, #0x294]
36*8e1d92fdSPeng Fan	str r1, [r0, #0x298]
37*8e1d92fdSPeng Fan	str r1, [r0, #0x29C]
38*8e1d92fdSPeng Fan	str r1, [r0, #0x2A0]
39*8e1d92fdSPeng Fan
40*8e1d92fdSPeng Fan	ldr r1, =0x00082030
41*8e1d92fdSPeng Fan	str r1, [r0, #0x2C0]
42*8e1d92fdSPeng Fan
43*8e1d92fdSPeng Fan	ldr r0, =MMDC_P0_BASE_ADDR
44*8e1d92fdSPeng Fan	ldr r1, =0x00008000
45*8e1d92fdSPeng Fan	str r1, [r0, #0x1C]
46*8e1d92fdSPeng Fan	ldr r1, =0xA1390003
47*8e1d92fdSPeng Fan	str r1, [r0, #0x800]
48*8e1d92fdSPeng Fan	ldr r1, =0x084700C7
49*8e1d92fdSPeng Fan	str r1, [r0, #0x85C]
50*8e1d92fdSPeng Fan	ldr r1, =0x00400000
51*8e1d92fdSPeng Fan	str r1, [r0, #0x890]
52*8e1d92fdSPeng Fan
53*8e1d92fdSPeng Fan	ldr r1, =0x3F393B3C
54*8e1d92fdSPeng Fan	str r1, [r0, #0x848]
55*8e1d92fdSPeng Fan	ldr r1, =0x262C3826
56*8e1d92fdSPeng Fan	str r1, [r0, #0x850]
57*8e1d92fdSPeng Fan
58*8e1d92fdSPeng Fan	ldr r1, =0x33333333
59*8e1d92fdSPeng Fan	str r1, [r0, #0x81C]
60*8e1d92fdSPeng Fan	str r1, [r0, #0x820]
61*8e1d92fdSPeng Fan	str r1, [r0, #0x824]
62*8e1d92fdSPeng Fan	str r1, [r0, #0x828]
63*8e1d92fdSPeng Fan
64*8e1d92fdSPeng Fan	ldr r1, =0xf3333333
65*8e1d92fdSPeng Fan	str r1, [r0, #0x82C]
66*8e1d92fdSPeng Fan	str r1, [r0, #0x830]
67*8e1d92fdSPeng Fan	str r1, [r0, #0x834]
68*8e1d92fdSPeng Fan	str r1, [r0, #0x838]
69*8e1d92fdSPeng Fan
70*8e1d92fdSPeng Fan	ldr r1, =0x24922492
71*8e1d92fdSPeng Fan	str r1, [r0, #0x8C0]
72*8e1d92fdSPeng Fan	ldr r1, =0x00000800
73*8e1d92fdSPeng Fan	str r1, [r0, #0x8B8]
74*8e1d92fdSPeng Fan
75*8e1d92fdSPeng Fan	ldr r1, =0x00020052
76*8e1d92fdSPeng Fan	str r1, [r0, #0x004]
77*8e1d92fdSPeng Fan	ldr r1, =0x53574333
78*8e1d92fdSPeng Fan	str r1, [r0, #0x00C]
79*8e1d92fdSPeng Fan	ldr r1, =0x00100B22
80*8e1d92fdSPeng Fan	str r1, [r0, #0x010]
81*8e1d92fdSPeng Fan	ldr r1, =0x00170778
82*8e1d92fdSPeng Fan	str r1, [r0, #0x038]
83*8e1d92fdSPeng Fan	ldr r1, =0x00C700DB
84*8e1d92fdSPeng Fan	str r1, [r0, #0x014]
85*8e1d92fdSPeng Fan	ldr r1, =0x00201718
86*8e1d92fdSPeng Fan	str r1, [r0, #0x018]
87*8e1d92fdSPeng Fan	ldr r1, =0x0F9F26D2
88*8e1d92fdSPeng Fan	str r1, [r0, #0x02C]
89*8e1d92fdSPeng Fan	ldr r1, =0x009F0E10
90*8e1d92fdSPeng Fan	str r1, [r0, #0x030]
91*8e1d92fdSPeng Fan	ldr r1, =0x0000005F
92*8e1d92fdSPeng Fan	str r1, [r0, #0x040]
93*8e1d92fdSPeng Fan	ldr r1, =0xC4190000
94*8e1d92fdSPeng Fan	str r1, [r0, #0x000]
95*8e1d92fdSPeng Fan	ldr r1, =0x20000000
96*8e1d92fdSPeng Fan	str r1, [r0, #0x83C]
97*8e1d92fdSPeng Fan
98*8e1d92fdSPeng Fan	ldr r1, =0x00008050
99*8e1d92fdSPeng Fan	str r1, [r0, #0x01C]
100*8e1d92fdSPeng Fan	ldr r1, =0x00008058
101*8e1d92fdSPeng Fan	str r1, [r0, #0x01C]
102*8e1d92fdSPeng Fan	ldr r1, =0x003F8030
103*8e1d92fdSPeng Fan	str r1, [r0, #0x01C]
104*8e1d92fdSPeng Fan	ldr r1, =0x003F8038
105*8e1d92fdSPeng Fan	str r1, [r0, #0x01C]
106*8e1d92fdSPeng Fan	ldr r1, =0xFF0A8030
107*8e1d92fdSPeng Fan	str r1, [r0, #0x01C]
108*8e1d92fdSPeng Fan	ldr r1, =0xFF0A8038
109*8e1d92fdSPeng Fan	str r1, [r0, #0x01C]
110*8e1d92fdSPeng Fan	ldr r1, =0x04028030
111*8e1d92fdSPeng Fan	str r1, [r0, #0x01C]
112*8e1d92fdSPeng Fan	ldr r1, =0x04028038
113*8e1d92fdSPeng Fan	str r1, [r0, #0x01C]
114*8e1d92fdSPeng Fan	ldr r1, =0x83018030
115*8e1d92fdSPeng Fan	str r1, [r0, #0x01C]
116*8e1d92fdSPeng Fan	ldr r1, =0x83018038
117*8e1d92fdSPeng Fan	str r1, [r0, #0x01C]
118*8e1d92fdSPeng Fan	ldr r1, =0x01038030
119*8e1d92fdSPeng Fan	str r1, [r0, #0x01C]
120*8e1d92fdSPeng Fan	ldr r1, =0x01038038
121*8e1d92fdSPeng Fan	str r1, [r0, #0x01C]
122*8e1d92fdSPeng Fan
123*8e1d92fdSPeng Fan	ldr r1, =0x00001800
124*8e1d92fdSPeng Fan	str r1, [r0, #0x020]
125*8e1d92fdSPeng Fan	ldr r1, =0xA1390003
126*8e1d92fdSPeng Fan	str r1, [r0, #0x800]
127*8e1d92fdSPeng Fan	ldr r1, =0x00020052
128*8e1d92fdSPeng Fan	str r1, [r0, #0x004]
129*8e1d92fdSPeng Fan	ldr r1, =0x00011006
130*8e1d92fdSPeng Fan	str r1, [r0, #0x404]
131*8e1d92fdSPeng Fan	ldr r1, =0x00000000
132*8e1d92fdSPeng Fan	str r1, [r0, #0x01C]
133*8e1d92fdSPeng Fan.endm
134*8e1d92fdSPeng Fan
135*8e1d92fdSPeng Fan.macro imx6_clock_gating
136*8e1d92fdSPeng Fan	ldr r0, =CCM_BASE_ADDR
137*8e1d92fdSPeng Fan	ldr r1, =0xffffffff
138*8e1d92fdSPeng Fan	str r1, [r0, #0x068]
139*8e1d92fdSPeng Fan	str r1, [r0, #0x06c]
140*8e1d92fdSPeng Fan	str r1, [r0, #0x070]
141*8e1d92fdSPeng Fan	str r1, [r0, #0x074]
142*8e1d92fdSPeng Fan	str r1, [r0, #0x078]
143*8e1d92fdSPeng Fan	str r1, [r0, #0x07c]
144*8e1d92fdSPeng Fan	str r1, [r0, #0x080]
145*8e1d92fdSPeng Fan.endm
146*8e1d92fdSPeng Fan
147*8e1d92fdSPeng Fan.macro imx6_qos_setting
148*8e1d92fdSPeng Fan.endm
149*8e1d92fdSPeng Fan
150*8e1d92fdSPeng Fan.macro imx6_ddr_setting
151*8e1d92fdSPeng Fan	imx6sll_evk_ddr_setting
152*8e1d92fdSPeng Fan.endm
153*8e1d92fdSPeng Fan
154*8e1d92fdSPeng Fan/* include the common plugin code here */
155*8e1d92fdSPeng Fan#include <asm/arch/mx6_plugin.S>
156