Lines Matching refs:dram_para
29 static const struct dram_para dram_para = { variable
64 clock_set_pll5(dram_para.clock * 1000000 / 2, in mctl_sys_init()
65 dram_para.tpr13 & 0x40000); in mctl_sys_init()
101 if (dram_para.tpr13 & 0x20) in mctl_init()
106 if (dram_para.clock >= 480) in mctl_init()
114 writel(dram_para.mr0, &mctl_phy->mr0); in mctl_init()
115 writel(dram_para.mr1, &mctl_phy->mr1); in mctl_init()
116 writel(dram_para.mr2, &mctl_phy->mr2); in mctl_init()
117 writel(dram_para.mr3, &mctl_phy->mr3); in mctl_init()
119 if (!(dram_para.tpr13 & 0x10000)) { in mctl_init()
130 writel((dram_para.tpr0 & 0x000fffff), &mctl_phy->ptr2); in mctl_init()
131 writel((dram_para.tpr1 & 0x1fffffff), &mctl_phy->ptr3); in mctl_init()
132 writel((dram_para.tpr0 & 0x3ff00000) >> 2 | in mctl_init()
133 (dram_para.tpr2 & 0x0003ffff), &mctl_phy->ptr4); in mctl_init()
135 writel(dram_para.tpr3, &mctl_phy->dtpr0); in mctl_init()
136 writel(dram_para.tpr4, &mctl_phy->dtpr2); in mctl_init()
140 if (dram_para.clock <= 240 || !dram_para.odt_en) { in mctl_init()
144 if (dram_para.clock <= 240) { in mctl_init()
149 writel(((dram_para.tpr5 & 0x0f00) << 12) | in mctl_init()
150 ((dram_para.tpr5 & 0x00f8) << 9) | in mctl_init()
151 ((dram_para.tpr5 & 0x0007) << 8), in mctl_init()
154 writel(((dram_para.tpr5 & 0x0003f000) << 12) | in mctl_init()
155 ((dram_para.tpr5 & 0x00fc0000) >> 2) | in mctl_init()
156 ((dram_para.tpr5 & 0x3f000000) >> 16) | in mctl_init()
157 ((dram_para.tpr6 & 0x0000003f) >> 0), in mctl_init()
160 writel(((dram_para.tpr6 & 0x000007c0) << 10) | in mctl_init()
161 ((dram_para.tpr6 & 0x0000f800) >> 3) | in mctl_init()
162 ((dram_para.tpr6 & 0x003f0000) >> 16), in mctl_init()
165 writel(((dram_para.tpr6 & 0x0fc00000) << 2) | in mctl_init()
166 ((dram_para.tpr7 & 0x0000001f) << 16) | in mctl_init()
167 ((dram_para.tpr7 & 0x000003e0) << 3) | in mctl_init()
168 ((dram_para.tpr7 & 0x0000fc00) >> 10), in mctl_init()
171 writel(((dram_para.tpr7 & 0x03ff0000) >> 16) | in mctl_init()
172 ((dram_para.tpr6 & 0xf0000000) >> 16), in mctl_init()
175 writel(((dram_para.tpr7 & 0x3c000000) >> 2 ) | in mctl_init()
176 ((dram_para.tpr8 & 0x00000007) << 16) | in mctl_init()
177 ((dram_para.tpr8 & 0x00000038) << 5) | in mctl_init()
178 ((dram_para.tpr8 & 0x000003c0) >> 6), in mctl_init()
181 writel(((dram_para.tpr8 & 0x00003c00) << 14) | in mctl_init()
182 ((dram_para.tpr8 & 0x0003c000) << 2) | in mctl_init()
183 ((dram_para.tpr8 & 0x00fc0000) >> 10) | in mctl_init()
184 ((dram_para.tpr8 & 0x0f000000) >> 24), in mctl_init()
189 writel(((dram_para.tpr8 & 0xf0000000) >> 4) | in mctl_init()
190 ((dram_para.tpr9 & 0x00007c00) << 6) | in mctl_init()
191 ((dram_para.tpr9 & 0x000003e0) << 3) | in mctl_init()
192 ((dram_para.tpr9 & 0x0000001f) >> 0), in mctl_init()
197 writel(((dram_para.tpr9 & 0x003f8000) << 9) | 0x2001, in mctl_init()
200 writel((dram_para.mr0 << 16) | dram_para.mr1, &mctl_ctl->init3); in mctl_init()
201 writel((dram_para.mr2 << 16) | dram_para.mr3, &mctl_ctl->init4); in mctl_init()
206 writel(((dram_para.tpr9 & 0xffc00000) >> 22) | in mctl_init()
207 ((dram_para.tpr10 & 0x00000fff) << 16), in mctl_init()
210 if (dram_para.tpr13 & 0x20) in mctl_init()
215 if (!(dram_para.tpr13 & 0x20000)) { in mctl_init()
229 writel((dram_para.zq >> 8) & 0xff, &mctl_phy->zqcr1); in mctl_init()
236 writel(dram_para.zq & 0xff, &mctl_phy->zqcr1); in mctl_init()
246 writel(dram_para.zq & 0xff, &mctl_phy->zqcr1); in mctl_init()
253 if (dram_para.odt_correction) { in mctl_init()
255 dram_para.odt_correction); in mctl_init()
257 dram_para.odt_correction); in mctl_init()
284 if (!(dram_para.tpr13 & 0x80000000)) { in sunxi_dram_init()
297 rows = (dram_para.para1 >> 16) & 0xff; in sunxi_dram_init()
298 writel(((dram_para.para2 & 0x000000f0) << 11) | in sunxi_dram_init()
300 ((dram_para.para1 & 0x0f000000) >> 22) | in sunxi_dram_init()