blob: d47c1f52b411d998956af2b056e9ca708bcc5312 [file] [log] [blame]
Shad Ansari2f7f9be2017-06-07 13:34:53 -07001#
2# $Id: combo28_dram.soc,v 1.0 2014/04/28 15:50:00 nhefetz Exp $
3#
4# $Copyright: (c) 2014 Broadcom Corporation
5# All Rights Reserved.$
6#
7
8#################### General Notes ########################
9# Our controller support both DDR4 and GDDR5, we need to "modify" ext_ram_columns in the following way:
10# For DDR4, need to use column number as in DRAM Data Sheet, meaning 1024 in drams supported.
11# For GDDR5, need to multiply number in Data Sheet by 8 (representing the 3 address bits, which are constant 000 in DDR4.), meaning 512 in drams supported.
12
13
14if $?dram_type_DDR4_SAMSUNG_K4A4G165WD_4GBIT "\
15 config add ext_ram_type=DDR4; \
16 config add ext_ram_t_rfc=260000;\
17 config add ext_ram_t_rc=45320;\
18 config add ext_ram_t_rcd_wr=13320;\
19 config add ext_ram_t_rcd_rd=13320;\
20 config add ext_ram_t_rrd_l=8c;\
21 config add ext_ram_t_rrd_s=7c;\
22 config add ext_ram_t_ras=32000;\
23 config add ext_ram_t_rp=13320;\
24 config add ext_ram_t_wr=15000;\
25 config add ext_ram_t_faw=30000;\
26 config add ext_ram_t_rtp_s=10c;\
27 config add ext_ram_t_rtp_l=10c;\
28 config add ext_ram_t_wtr_s=4c;\\
29 config add ext_ram_t_wtr_l=10c;\\
30 config add ext_ram_t_ccd_l=6c;\\
31 config add ext_ram_t_ccd_s=4c;\
32 config add ext_ram_t_zqcs=128c;\
33 config add ext_ram_t_crc_alert=13000;\
34 config add ext_ram_t_rst=500000000;\
35 config add ext_ram_t_ref=3900000;\
36 config add ext_ram_c_wr_latency=12c;\
37 config add ext_ram_c_cas_latency=17c;\
38 config add ext_ram_t_al=0;\
39 config add ext_ram_columns=1024; \
40 config add ext_ram_rows=32768; \
41 config add ext_ram_banks=8;"
42
43if $?dram_type_DDR4_MICRON_EDY4016AABG_DRFR_4GBIT "\
44 config add ext_ram_type=DDR4; \
45 config add ext_ram_t_rfc=260000;\
46 config add ext_ram_t_rc=45320;\
47 config add ext_ram_t_rcd_wr=13320;\
48 config add ext_ram_t_rcd_rd=13320;\
49 config add ext_ram_t_rrd_l=8c;\
50 config add ext_ram_t_rrd_s=7c;\
51 config add ext_ram_t_ras=32000;\
52 config add ext_ram_t_rp=13320;\
53 config add ext_ram_t_wr=15000;\
54 config add ext_ram_t_faw=30000;\
55 config add ext_ram_t_rtp_s=10c;\
56 config add ext_ram_t_rtp_l=10c;\
57 config add ext_ram_t_wtr_s=4c;\\
58 config add ext_ram_t_wtr_l=10c;\\
59 config add ext_ram_t_ccd_l=6c;\\
60 config add ext_ram_t_ccd_s=4c;\
61 config add ext_ram_t_zqcs=128c;\
62 config add ext_ram_t_crc_alert=13000;\
63 config add ext_ram_t_rst=500000000;\
64 config add ext_ram_t_ref=3900000;\
65 config add ext_ram_c_wr_latency=12c;\
66 config add ext_ram_c_cas_latency=16c;\
67 config add ext_ram_t_al=0;\
68 config add ext_ram_columns=1024; \
69 config add ext_ram_rows=32768; \
70 config add ext_ram_banks=8;"
71
72########################################################################
73# Note: Not for new design not recommended to be used and not supported
74########################################################################
75if $?dram_type_DDR4_MICRON_MT40A256M16HA_083EA_4GBIT "\
76 config add ext_ram_type=DDR4; \
77 config add ext_ram_t_rfc=260000;\
78 config add ext_ram_t_rc=47000;\
79 config add ext_ram_t_rcd_wr=15000;\
80 config add ext_ram_t_rcd_rd=15000;\
81 config add ext_ram_t_rrd_l=11c;\
82 config add ext_ram_t_rrd_s=9c;\
83 config add ext_ram_t_ras=32000;\
84 config add ext_ram_t_rp=15000;\
85 config add ext_ram_t_wr=14900;\
86 config add ext_ram_t_faw=30000;\
87 config add ext_ram_t_rtp_s=12c;\
88 config add ext_ram_t_rtp_l=12c;\
89 config add ext_ram_t_wtr_s=4c;\\
90 config add ext_ram_t_wtr_l=12c;\\
91 config add ext_ram_t_ccd_l=8c;\\
92 config add ext_ram_t_ccd_s=4c;\
93 config add ext_ram_t_zqcs=170c;\
94 config add ext_ram_t_crc_alert=13000;\
95 config add ext_ram_t_rst=500000000;\
96 config add ext_ram_t_ref=3900000;\
97 config add ext_ram_c_wr_latency=18c;\
98 config add ext_ram_c_cas_latency=24c;\
99 config add ext_ram_t_al=0;\
100 config add ext_ram_columns=1024; \
101 config add ext_ram_rows=32768; \
102 config add ext_ram_banks=8;"
103
104########################################################################
105# Note: Not for new design not recommended to be used and not supported
106########################################################################
107if $?dram_type_DDR4_MICRON_MT40A512M16_8GBIT "\
108 config add ext_ram_type=DDR4; \
109 config add ext_ram_t_rfc=350000;\
110 config add ext_ram_t_rc=45320;\
111 config add ext_ram_t_rcd_wr=13320;\
112 config add ext_ram_t_rcd_rd=13320;\
113 config add ext_ram_t_rrd_l=8c;\
114 config add ext_ram_t_rrd_s=7c;\
115 config add ext_ram_t_ras=32000;\
116 config add ext_ram_t_wr=15000;\
117 config add ext_ram_t_faw=30000;\
118 config add ext_ram_t_rtp_s=10c;\
119 config add ext_ram_t_rtp_l=10c;\
120 config add ext_ram_t_wtr_s=4c;\\
121 config add ext_ram_t_wtr_l=10c;\
122 config add ext_ram_t_ccd_l=8c;\
123 config add ext_ram_t_ccd_s=4c;\
124 config add ext_ram_t_zqcs=128c;\
125 config add ext_ram_t_crc_alert=13000;\
126 config add ext_ram_t_rst=500000000;\
127 config add ext_ram_t_ref=3900000;\
128 config add ext_ram_c_wr_latency=12c;\
129 config add ext_ram_c_cas_latency=16c;\
130 config add ext_ram_t_al=0;\
131 config add ext_ram_columns=1024; \
132 config add ext_ram_rows=65536; \
133 config add ext_ram_t_rp=13320;\
134 config add ext_ram_banks=8;"
135
136if $?dram_type_DDR4_HYNIX_H5AN4G6NMFR_VJC_4GBIT "\
137 config add ext_ram_type=DDR4; \
138 config add ext_ram_t_rfc=260000;\
139 config add ext_ram_t_rc=45320;\
140 config add ext_ram_t_rcd_wr=13320;\
141 config add ext_ram_t_rcd_rd=13320;\
142 config add ext_ram_t_rrd_l=8c;\
143 config add ext_ram_t_rrd_s=4c;\
144 config add ext_ram_t_ras=32000;\
145 config add ext_ram_t_rp=13320;\
146 config add ext_ram_t_wr=15000;\
147 config add ext_ram_t_faw=30000;\
148 config add ext_ram_t_rtp_s=7500;\
149 config add ext_ram_t_rtp_l=7500;\
150 config add ext_ram_t_wtr_s=2500;\
151 config add ext_ram_t_wtr_l=7500;\
152 config add ext_ram_t_ccd_l=8c;\
153 config add ext_ram_t_ccd_s=4c;\
154 config add ext_ram_t_zqcs=128c;\
155 config add ext_ram_t_crc_alert=13000;\
156 config add ext_ram_t_crc_wr_latency=12c;\
157 config add ext_ram_t_rst=500000000;\
158 config add ext_ram_t_ref=3900000;\
159 config add ext_ram_c_wr_latency=16c;\
160 config add ext_ram_c_cas_latency=20c;\
161 config add ext_ram_t_al=0;\
162 config add ext_ram_columns=1024; \
163 config add ext_ram_rows=32768; \
164 config add ext_ram_banks=8;"
165
166if $?dram_type_DDR4_MICRON_Y4016AABG_JD_F_4GBIT "\
167 config add ext_ram_type=DDR4; \
168 config add ext_ram_t_rfc=260000;\
169 config add ext_ram_t_rc=47000;\
170 config add ext_ram_t_rcd_wr=15000;\
171 config add ext_ram_t_rcd_rd=15000;\
172 config add ext_ram_t_rrd_l=11c;\
173 config add ext_ram_t_rrd_s=9c;\
174 config add ext_ram_t_ras=32000;\
175 config add ext_ram_t_rp=15000;\
176 config add ext_ram_t_wr=14900;\
177 config add ext_ram_t_faw=30000;\
178 config add ext_ram_t_rtp_s=12c;\
179 config add ext_ram_t_rtp_l=12c;\
180 config add ext_ram_t_wtr_s=4c;\\
181 config add ext_ram_t_wtr_l=12c;\\
182 config add ext_ram_t_ccd_l=8c;\\
183 config add ext_ram_t_ccd_s=4c;\
184 config add ext_ram_t_zqcs=170c;\
185 config add ext_ram_t_crc_alert=13000;\
186 config add ext_ram_t_rst=500000000;\
187 config add ext_ram_t_ref=3900000;\
188 config add ext_ram_c_wr_latency=16c;\
189 config add ext_ram_c_cas_latency=24c;\
190 config add ext_ram_t_al=0;\
191 config add ext_ram_columns=1024; \
192 config add ext_ram_rows=32768; \
193 config add ext_ram_banks=8;"
194
195if $?dram_type_GDDR5_SAMSUNG_K4G20325FD_2GBIT "\
196 config add ext_ram_type=GDDR5; \
197 config add ext_ram_t_rfc=78000;\
198 config add ext_ram_t_rc=48000;\
199 config add ext_ram_t_rcd_wr=15000;\
200 config add ext_ram_t_rcd_rd=16000;\
201 config add ext_ram_t_rrd_l=6000;\
202 config add ext_ram_t_rrd_s=6000;\
203 config add ext_ram_t_ras=34000;\
204 config add ext_ram_t_rp=14000;\
205 config add ext_ram_t_wr=16000;\
206 config add ext_ram_t_faw=24000;\
207 config add ext_ram_t_32aw=192000;\
208 config add ext_ram_t_rtp_s=2c;\
209 config add ext_ram_t_rtp_l=4c;\
210 config add ext_ram_t_wtr_s=8c;\
211 config add ext_ram_t_wtr_l=10c;\
212 config add ext_ram_t_ccd_l=3c;\
213 config add ext_ram_t_ccd_s=2c;\
214 config add ext_ram_t_ref=1900000;\
215 config add ext_ram_c_wr_latency=3c;\
216 config add ext_ram_c_cas_latency=20c;\
217 config add ext_ram_t_crc_rd_latency=3c;\
218 config add ext_ram_t_crc_wr_latency=14c;\
219 config add ext_ram_t_rst=200000000;\
220 config add ext_ram_t_al=1c;\
221 config add ext_ram_columns=512; \
222 config add ext_ram_rows=8192; \
223 config add ext_ram_banks=16;"
224
225########################################################################
226# Note: Not for new design not recommended to be used and not supported
227########################################################################
228if $?dram_type_GDDR5_SAMSUNG_K4G41325FC_4GBIT "\
229 config add ext_ram_type=GDDR5; \
230 config add ext_ram_t_rfc=110000;\
231 config add ext_ram_t_rc=48000;\
232 config add ext_ram_t_rcd_wr=15000;\
233 config add ext_ram_t_rcd_rd=16000;\
234 config add ext_ram_t_rrd_l=6000;\
235 config add ext_ram_t_rrd_s=6000;\
236 config add ext_ram_t_ras=34000;\
237 config add ext_ram_t_rp=14000;\
238 config add ext_ram_t_wr=16000;\
239 config add ext_ram_t_faw=24000;\
240 config add ext_ram_t_32aw=192000;\
241 config add ext_ram_t_rtp_s=2c;\
242 config add ext_ram_t_rtp_l=4c;\
243 config add ext_ram_t_wtr_s=8c;\
244 config add ext_ram_t_wtr_l=10c;\
245 config add ext_ram_t_ccd_l=3c;\
246 config add ext_ram_t_ccd_s=2c;\
247 config add ext_ram_t_ref=1900000;\
248 config add ext_ram_c_wr_latency=3c;\
249 config add ext_ram_c_cas_latency=20c;\
250 config add ext_ram_t_crc_rd_latency=3c;\
251 config add ext_ram_t_crc_wr_latency=14c;\
252 config add ext_ram_t_rst=200000000;\
253 config add ext_ram_t_al=1c;\
254 config add ext_ram_columns=512; \
255 config add ext_ram_rows=16384; \
256 config add ext_ram_banks=16;"
257
258#if $?dram_type_GDDR5_HYNIX_H5GQ2H24AFR_R0C_2GBIT "\
259# config add ext_ram_type=GDDR5; \
260# config add ext_ram_t_rfc=120000;\
261# config add ext_ram_t_rc=48000;\
262# config add ext_ram_t_rcd_wr=14000;\
263# config add ext_ram_t_rcd_rd=18000;\
264# config add ext_ram_t_rrd_l=9c;\
265# config add ext_ram_t_rrd_s=9c;\
266# config add ext_ram_t_ras=32000;\
267# config add ext_ram_t_rp=16000;\
268# config add ext_ram_t_wr=16000;\
269# config add ext_ram_t_faw=30000;\
270# config add ext_ram_t_32aw=245000;\
271# config add ext_ram_t_rtp_s=2c;\
272# config add ext_ram_t_rtp_l=2c;\
273# config add ext_ram_t_wtr_s=8c;\
274# config add ext_ram_t_wtr_l=8c;\
275# config add ext_ram_t_ccd_l=3c;\
276# config add ext_ram_t_ccd_s=2c;\
277# config add ext_ram_t_ref=3900000;\
278# config add ext_ram_c_wr_latency=3c;\
279# config add ext_ram_c_cas_latency=16c;\
280# config add ext_ram_t_crc_rd_latency=2c;\
281# config add ext_ram_t_crc_wr_latency=11c;\
282# config add ext_ram_t_rst=200000000;\
283# config add ext_ram_t_al=1c;\
284# config add ext_ram_columns=512; \
285# config add ext_ram_rows=8192; \
286# config add ext_ram_banks=16;"
287#
288
289###################################################
290# ELPIDA GDDR5
291###################################################
292if $?dram_type_GDDR5_MICRON_EDW4032CABG_4GBIT "\
293 config add ext_ram_type=GDDR5; \
294 config add ext_ram_t_rfc=90000;\
295 config add ext_ram_t_rc=44000;\
296 config add ext_ram_t_rcd_wr=13000;\
297 config add ext_ram_t_rcd_rd=17000;\
298 config add ext_ram_t_rrd_l=5000;\
299 config add ext_ram_t_rrd_s=5000;\
300 config add ext_ram_t_ras=27000;\
301 config add ext_ram_t_rp=17000;\
302 config add ext_ram_t_wr=18000;\
303 config add ext_ram_t_faw=20000;\
304 config add ext_ram_t_32aw=160000;\
305 config add ext_ram_t_rtp_s=2c;\
306 config add ext_ram_t_rtp_l=2c;\
307 config add ext_ram_t_wtr_s=7c;\
308 config add ext_ram_t_wtr_l=7c;\
309 config add ext_ram_t_ccd_l=3c;\
310 config add ext_ram_t_ccd_s=2c;\
311 config add ext_ram_t_ref=1900000;\
312 config add ext_ram_c_wr_latency=4c;\
313 config add ext_ram_c_cas_latency=18c;\
314 config add ext_ram_t_crc_rd_latency=3c;\
315 config add ext_ram_t_crc_wr_latency=11c;\
316 config add ext_ram_t_rst=200000000;\
317 config add ext_ram_t_al=2c;\
318 config add ext_ram_columns=512; \
319 config add ext_ram_rows=16384; \
320 config add ext_ram_banks=16;"
321
322if $?dram_type_GDDR5_HYNIX_H5GC4H24MFR_T2C_4GBIT "\
323 config add ext_ram_type=GDDR5; \
324 config add ext_ram_t_rfc=120000;\
325 config add ext_ram_t_rc=48000;\
326 config add ext_ram_t_rcd_wr=14000;\
327 config add ext_ram_t_rcd_rd=18000;\
328 config add ext_ram_t_rrd_l=9c;\
329 config add ext_ram_t_rrd_s=9c;\
330 config add ext_ram_t_ras=32000;\
331 config add ext_ram_t_rp=16000;\
332 config add ext_ram_t_wr=16000;\
333 config add ext_ram_t_faw=30000;\
334 config add ext_ram_t_32aw=245000;\
335 config add ext_ram_t_rtp_s=2c;\
336 config add ext_ram_t_rtp_l=2c;\
337 config add ext_ram_t_wtr_s=8c;\
338 config add ext_ram_t_wtr_l=8c;\
339 config add ext_ram_t_ccd_l=3c;\
340 config add ext_ram_t_ccd_s=2c;\
341 config add ext_ram_t_ref=1900000;\
342 config add ext_ram_c_wr_latency=4c;\
343 config add ext_ram_c_cas_latency=18c;\
344 config add ext_ram_t_crc_rd_latency=2c;\
345 config add ext_ram_t_crc_wr_latency=13c;\
346 config add ext_ram_t_rst=200000000;\
347 config add ext_ram_t_al=1c;\
348 config add ext_ram_columns=512; \
349 config add ext_ram_rows=16384; \
350 config add ext_ram_banks=16;"
351
352###############################################################################################
353# Note: For extended devices for example Micron dram_type_DDR4_MICRON_MT40A256M16HA_083E
354# please use none extended parameters for example dram_type_DDR4_MICRON_MT40A256M16HA_083
355###############################################################################################
356if $?dram_type_DDR4_MICRON_MT40A256M16HA_083_4GBIT "\
357 config add ext_ram_type=DDR4;\
358 config add ext_ram_freq=1200;\
359 config add ext_ram_t_rfc=260000;\
360 config add ext_ram_t_rc=46160;\
361 config add ext_ram_t_rcd_wr=14160;\
362 config add ext_ram_t_rcd_rd=14160;\
363 config add ext_ram_t_rrd_l=8c;\
364 config add ext_ram_t_rrd_s=7c;\
365 config add ext_ram_t_ras=32000;\
366 config add ext_ram_t_rp=14160;\
367 config add ext_ram_t_wr=15000;\
368 config add ext_ram_t_faw=30000;\
369 config add ext_ram_t_rtp_s=10c;\
370 config add ext_ram_t_rtp_l=10c;\
371 config add ext_ram_t_wtr_s=4c;\
372 config add ext_ram_t_wtr_l=10c;\
373 config add ext_ram_t_ccd_l=6c;\
374 config add ext_ram_t_ccd_s=4c;\
375 config add ext_ram_t_zqcs=128c;\
376 config add ext_ram_t_crc_alert=13000;\
377 config add ext_ram_t_rst=500000000;\
378 config add ext_ram_t_ref=3900000;\
379 config add ext_ram_c_wr_latency=12c;\
380 config add ext_ram_t_al=0;\
381 config add ext_ram_columns=1024;\
382 config add ext_ram_rows=32768;\
383 config add ext_ram_banks=8;\
384 config delete ext_ram_cmd_par_latency*;\
385 config add ext_ram_cmd_par_latency=5;\
386 config add ext_ram_c_cas_latency=17c;"
387expr $ext_ram_write_dbi+0 == 1
388if $? && $?dram_type_DDR4_MICRON_MT40A256M16HA_083_4GBIT "\
389 config add ext_ram_c_cas_latency=20c;"
390
391if $?dram_type_DDR4_MICRON_MT40A512M16HA_083_8GBIT "\
392 config add ext_ram_type=DDR4;\
393 config add ext_ram_freq=1200;\
394 config add ext_ram_t_rfc=350000;\
395 config add ext_ram_t_rc=46160;\
396 config add ext_ram_t_rcd_wr=14160;\
397 config add ext_ram_t_rcd_rd=14160;\
398 config add ext_ram_t_rrd_l=8c;\
399 config add ext_ram_t_rrd_s=7c;\
400 config add ext_ram_t_ras=32000;\
401 config add ext_ram_t_rp=14160;\
402 config add ext_ram_t_wr=15000;\
403 config add ext_ram_t_faw=30000;\
404 config add ext_ram_t_rtp_s=10c;\
405 config add ext_ram_t_rtp_l=10c;\
406 config add ext_ram_t_wtr_s=4c;\
407 config add ext_ram_t_wtr_l=10c;\
408 config add ext_ram_t_ccd_l=6c;\
409 config add ext_ram_t_ccd_s=4c;\
410 config add ext_ram_t_zqcs=128c;\
411 config add ext_ram_t_crc_alert=13000;\
412 config add ext_ram_t_rst=500000000;\
413 config add ext_ram_t_ref=3900000;\
414 config add ext_ram_c_wr_latency=12c;\
415 config add ext_ram_t_al=0;\
416 config add ext_ram_columns=1024;\
417 config add ext_ram_rows=65536;\
418 config add ext_ram_banks=8;\
419 config delete ext_ram_cmd_par_latency*;\
420 config add ext_ram_cmd_par_latency=5;\
421 config add ext_ram_c_cas_latency=17c;"
422expr $ext_ram_write_dbi+0 == 1
423if $? && $?dram_type_DDR4_MICRON_MT40A512M16HA_083_8GBIT "\
424 config add ext_ram_c_cas_latency=20c;"
425
426if $?dram_type_DDR4_MICRON_MT40A256M16GE_062_4GBIT "\
427 config add ext_ram_type=DDR4;\
428 config add ext_ram_freq=1600;\
429 config add ext_ram_t_rfc=260000;\
430 config add ext_ram_t_rc=47000;\
431 config add ext_ram_t_rcd_wr=15000;\
432 config add ext_ram_t_rcd_rd=15000;\
433 config add ext_ram_t_rrd_l=11c;\
434 config add ext_ram_t_rrd_s=9c;\
435 config add ext_ram_t_ras=32000;\
436 config add ext_ram_t_rp=15000;\
437 config add ext_ram_t_wr=14900;\
438 config add ext_ram_t_faw=30000;\
439 config add ext_ram_t_rtp_s=12c;\
440 config add ext_ram_t_rtp_l=12c;\
441 config add ext_ram_t_wtr_s=4c;\
442 config add ext_ram_t_wtr_l=12c;\
443 config add ext_ram_t_ccd_l=8c;\
444 config add ext_ram_t_ccd_s=4c;\
445 config add ext_ram_t_zqcs=170c;\
446 config add ext_ram_t_crc_alert=13000;\
447 config add ext_ram_t_rst=500000000;\
448 config add ext_ram_t_ref=3900000;\
449 config add ext_ram_c_wr_latency=16c;\
450 config add ext_ram_t_al=0;\
451 config add ext_ram_columns=1024;\
452 config add ext_ram_rows=32768;\
453 config add ext_ram_banks=8;\
454 config delete ext_ram_cmd_par_latency*;\
455 config add ext_ram_cmd_par_latency=8;\
456 config add ext_ram_c_cas_latency=24c;"
457expr $ext_ram_write_dbi+0 == 1
458if $? && $?dram_type_DDR4_MICRON_MT40A256M16GE_062_4GBIT "\
459 config add ext_ram_c_cas_latency=28c;"
460
461if $?dram_type_DDR4_SAMSUNG_K4A4G165WE_4GBIT "\
462 config add ext_ram_type=DDR4;\
463 config add ext_ram_freq=1200;\
464 config add ext_ram_t_rfc=260000;\
465 config add ext_ram_t_rc=46160;\
466 config add ext_ram_t_rcd_wr=14160;\
467 config add ext_ram_t_rcd_rd=14160;\
468 config add ext_ram_t_rrd_l=8c;\
469 config add ext_ram_t_rrd_s=7c;\
470 config add ext_ram_t_ras=32000;\
471 config add ext_ram_t_rp=14160;\
472 config add ext_ram_t_wr=15000;\
473 config add ext_ram_t_faw=30000;\
474 config add ext_ram_t_rtp_s=10c;\
475 config add ext_ram_t_rtp_l=10c;\
476 config add ext_ram_t_wtr_s=4c;\
477 config add ext_ram_t_wtr_l=10c;\
478 config add ext_ram_t_ccd_l=6c;\
479 config add ext_ram_t_ccd_s=4c;\
480 config add ext_ram_t_zqcs=128c;\
481 config add ext_ram_t_crc_alert=13000;\
482 config add ext_ram_t_rst=500000000;\
483 config add ext_ram_t_ref=3900000;\
484 config add ext_ram_c_wr_latency=12c ;\
485 config add ext_ram_t_al=0;\
486 config add ext_ram_columns=1024;\
487 config add ext_ram_rows=32768;\
488 config add ext_ram_banks=8;\
489 config delete ext_ram_cmd_par_latency*;\
490 config add ext_ram_cmd_par_latency=5;\
491 config add ext_ram_c_cas_latency=17c;"
492expr $ext_ram_write_dbi+0 == 1
493if $? && $?dram_type_DDR4_SAMSUNG_K4A4G165WE_4GBIT "\
494 config add ext_ram_c_cas_latency=20c;"
495
496if $?dram_type_GDDR5_MICRON_MT51K256M32HF_50_8GBIT "\
497 config add ext_ram_type=GDDR5;\
498 config add ext_ram_t_rfc=110000;\
499 config add ext_ram_t_rc=44000;\
500 config add ext_ram_t_rcd_wr=12000;\
501 config add ext_ram_t_rcd_rd=17000;\
502 config add ext_ram_t_rrd_l=5000;\
503 config add ext_ram_t_rrd_s=5000;\
504 config add ext_ram_t_ras=27000;\
505 config add ext_ram_t_rp=17000;\
506 config add ext_ram_t_wr=18000;\
507 config add ext_ram_t_faw=20000;\
508 config add ext_ram_t_32aw=160000;\
509 config add ext_ram_t_rtp_s=2c;\
510 config add ext_ram_t_rtp_l=2c;\
511 config add ext_ram_t_wtr_s=6c;\
512 config add ext_ram_t_wtr_l=6c;\
513 config add ext_ram_t_ccd_l=2c;\
514 config add ext_ram_t_ccd_s=2c;\
515 config add ext_ram_t_ref=1900000;\
516 config add ext_ram_c_wr_latency=4c;\
517 config add ext_ram_t_crc_rd_latency=3c;\
518 config add ext_ram_t_crc_wr_latency=11c;\
519 config add ext_ram_t_rst=200000000;\
520 config add ext_ram_t_al=2c;\
521 config add ext_ram_columns=1024;\
522 config add ext_ram_rows=16384;\
523 config add ext_ram_banks=16;\
524 config add ext_ram_c_cas_latency=16c;"
525expr $ext_ram_write_dbi==1
526if $? && $?dram_type_GDDR5_MICRON_MT51K256M32HF_50_8GBIT "\
527 config add ext_ram_c_cas_latency=16c;"
528
529if $?dram_type_GDDR5_SAMSUNG_K4G41325FE_HC28_4GBIT "\
530 config add ext_ram_type=GDDR5;\
531 config add ext_ram_t_rfc=110000;\
532 config add ext_ram_t_rc=48000;\
533 config add ext_ram_t_rcd_wr=15000;\
534 config add ext_ram_t_rcd_rd=16000;\
535 config add ext_ram_t_rrd_l=6000;\
536 config add ext_ram_t_rrd_s=6000;\
537 config add ext_ram_t_ras=34000;\
538 config add ext_ram_t_rp=14000;\
539 config add ext_ram_t_wr=16000;\
540 config add ext_ram_t_faw=24000;\
541 config add ext_ram_t_32aw=192000;\
542 config add ext_ram_t_rtp_s=2c;\
543 config add ext_ram_t_rtp_l=4c;\
544 config add ext_ram_t_wtr_s=3c;\
545 config add ext_ram_t_wtr_l=8c;\
546 config add ext_ram_t_ccd_l=3c;\
547 config add ext_ram_t_ccd_s=2c;\
548 config add ext_ram_t_ref=1900000;\
549 config add ext_ram_c_wr_latency=3c;\
550 config add ext_ram_t_crc_rd_latency=3c;\
551 config add ext_ram_t_crc_wr_latency=14c;\
552 config add ext_ram_t_rst=200000000;\
553 config add ext_ram_t_al=1c;\
554 config add ext_ram_columns=512;\
555 config add ext_ram_rows=16384;\
556 config add ext_ram_banks=16;\
557 config add ext_ram_c_cas_latency=18c;"
558expr $ext_ram_write_dbi+0 == 1
559if $? && $?dram_type_GDDR5_SAMSUNG_K4G41325FE_HC28_4GBIT "\
560 config add ext_ram_c_cas_latency=19c;"