Debian Codegraph @

util/nvidia/cbootimage/src/t124/nvboot_sdram_param_t124.h

raw symbols SCIP
1 /*
2 * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * See file CREDITS for list of people who contributed to this
17 * project.
18 */
19
20 /**
21 * Defines the SDRAM parameter structure.
22 *
23 * Note that PLLM is used by EMC.
24 */
25
26 #ifndef INCLUDED_NVBOOT_SDRAM_PARAM_T124_H
27 #define INCLUDED_NVBOOT_SDRAM_PARAM_T124_H
28
29 #define NVBOOT_BCT_SDRAM_ARB_CONFIG_WORDS 27
30
31 typedef enum {
32 /* Specifies the memory type to be undefined */
33 nvboot_memory_type_none = 0,
34
35 /* Specifies the memory type to be DDR SDRAM */
36 nvboot_memory_type_ddr = 0,
37
38 /* Specifies the memory type to be LPDDR SDRAM */
39 nvboot_memory_type_lpddr = 0,
40
41 /* Specifies the memory type to be DDR2 SDRAM */
42 nvboot_memory_type_ddr2 = 0,
43
44 /* Specifies the memory type to be LPDDR2 SDRAM */
45 nvboot_memory_type_lpddr2,
46
47 /* Specifies the memory type to be DDR3 SDRAM */
48 nvboot_memory_type_ddr3,
49
50 nvboot_memory_type_num,
51 nvboot_memory_type_force32 = 0x7FFFFFF
52 } nvboot_memory_type;
53
54 /**
55 * Defines the SDRAM parameter structure
56 */
57 typedef struct nvboot_sdram_params_rec {
58 /* sdram data structure generated by tool warmboot_code_gen */
59
60 /* Specifies the type of memory device */
61 nvboot_memory_type memory_type;
62
63 /* MC/EMC clock source configuration */
64
65 /* Specifies the M value for PllM */
66 uint32_t pllm_input_divider;
67 /* Specifies the N value for PllM */
68 uint32_t pllm_feedback_divider;
69 /* Specifies the time to wait for PLLM to lock (in microseconds) */
70 uint32_t pllm_stable_time;
71 /* Specifies misc. control bits */
72 uint32_t pllm_setup_control;
73 /* Enables the Div by 2 */
74 uint32_t pllm_select_div2;
75 /* Powers down VCO output Level shifter */
76 uint32_t pllm_pdlshift_ph45;
77 /* Powers down VCO output Level shifter */
78 uint32_t pllm_pdlshift_ph90;
79 /* Powers down VCO output Level shifter */
80 uint32_t pllm_pdlshift_ph135;
81 /* Specifies value for Charge Pump Gain Control */
82 uint32_t pllm_kcp;
83 /* Specifies VCO gain */
84 uint32_t pllm_kvco;
85 /* Spare BCT param */
86 uint32_t emc_bct_spare0;
87 /* Spare BCT param */
88 uint32_t emc_bct_spare1;
89 /* Spare BCT param */
90 uint32_t emc_bct_spare2;
91 /* Spare BCT param */
92 uint32_t emc_bct_spare3;
93 /* Spare BCT param */
94 uint32_t emc_bct_spare4;
95 /* Spare BCT param */
96 uint32_t emc_bct_spare5;
97 /* Spare BCT param */
98 uint32_t emc_bct_spare6;
99 /* Spare BCT param */
100 uint32_t emc_bct_spare7;
101 /* Spare BCT param */
102 uint32_t emc_bct_spare8;
103 /* Spare BCT param */
104 uint32_t emc_bct_spare9;
105 /* Spare BCT param */
106 uint32_t emc_bct_spare10;
107 /* Spare BCT param */
108 uint32_t emc_bct_spare11;
109 /* Defines EMC_2X_CLK_SRC, EMC_2X_CLK_DIVISOR, EMC_INVERT_DCD */
110 uint32_t emc_clock_source;
111
112 /* Auto-calibration of EMC pads */
113
114 /* Specifies the value for EMC_AUTO_CAL_INTERVAL */
115 uint32_t emc_auto_cal_interval;
116 /*
117 * Specifies the value for EMC_AUTO_CAL_CONFIG
118 * Note: Trigger bits are set by the SDRAM code.
119 */
120 uint32_t emc_auto_cal_config;
121
122 /* Specifies the value for EMC_AUTO_CAL_CONFIG2 */
123 uint32_t emc_auto_cal_config2;
124
125 /* Specifies the value for EMC_AUTO_CAL_CONFIG3 */
126 uint32_t emc_auto_cal_config3;
127
128 /*
129 * Specifies the time for the calibration
130 * to stabilize (in microseconds)
131 */
132 uint32_t emc_auto_cal_wait;
133
134 /*
135 * DRAM size information
136 * Specifies the value for EMC_ADR_CFG
137 */
138 uint32_t emc_adr_cfg;
139
140 /*
141 * Specifies the time to wait after asserting pin
142 * CKE (in microseconds)
143 */
144 uint32_t emc_pin_program_wait;
145 /* Specifies the extra delay before/after pin RESET/CKE command */
146 uint32_t emc_pin_extra_wait;
147 /*
148 * Specifies the extra delay after the first writing
149 * of EMC_TIMING_CONTROL
150 */
151 uint32_t emc_timing_control_wait;
152
153 /* Timing parameters required for the SDRAM */
154
155 /* Specifies the value for EMC_RC */
156 uint32_t emc_rc;
157 /* Specifies the value for EMC_RFC */
158 uint32_t emc_rfc;
159 /* Specifies the value for EMC_RFC_SLR */
160 uint32_t emc_rfc_slr;
161 /* Specifies the value for EMC_RAS */
162 uint32_t emc_ras;
163 /* Specifies the value for EMC_RP */
164 uint32_t emc_rp;
165 /* Specifies the value for EMC_R2R */
166 uint32_t emc_r2r;
167 /* Specifies the value for EMC_W2W */
168 uint32_t emc_w2w;
169 /* Specifies the value for EMC_R2W */
170 uint32_t emc_r2w;
171 /* Specifies the value for EMC_W2R */
172 uint32_t emc_w2r;
173 /* Specifies the value for EMC_R2P */
174 uint32_t emc_r2p;
175 /* Specifies the value for EMC_W2P */
176 uint32_t emc_w2p;
177 /* Specifies the value for EMC_RD_RCD */
178 uint32_t emc_rd_rcd;
179 /* Specifies the value for EMC_WR_RCD */
180 uint32_t emc_wr_rcd;
181 /* Specifies the value for EMC_RRD */
182 uint32_t emc_rrd;
183 /* Specifies the value for EMC_REXT */
184 uint32_t emc_rext;
185 /* Specifies the value for EMC_WEXT */
186 uint32_t emc_wext;
187 /* Specifies the value for EMC_WDV */
188 uint32_t emc_wdv;
189 /* Specifies the value for EMC_WDV_MASK */
190 uint32_t emc_wdv_mask;
191 /* Specifies the value for EMC_QUSE */
192 uint32_t emc_quse;
193 /* Specifies the value for EMC_QUSE_WIDTH */
194 uint32_t emc_quse_width;
195 /* Specifies the value for EMC_IBDLY */
196 uint32_t emc_ibdly;
197 /* Specifies the value for EMC_EINPUT */
198 uint32_t emc_einput;
199 /* Specifies the value for EMC_EINPUT_DURATION */
200 uint32_t emc_einput_duration;
201 /* Specifies the value for EMC_PUTERM_EXTRA */
202 uint32_t emc_puterm_extra;
203 /* Specifies the value for EMC_PUTERM_WIDTH */
204 uint32_t emc_puterm_width;
205 /* Specifies the value for EMC_PUTERM_ADJ */
206 uint32_t emc_puterm_adj;
207 /* Specifies the value for EMC_CDB_CNTL_1 */
208 uint32_t emc_cdb_cntl1;
209 /* Specifies the value for EMC_CDB_CNTL_2 */
210 uint32_t emc_cdb_cntl2;
211 /* Specifies the value for EMC_CDB_CNTL_3 */
212 uint32_t emc_cdb_cntl3;
213 /* Specifies the value for EMC_QRST */
214 uint32_t emc_qrst;
215 /* Specifies the value for EMC_QSAFE */
216 uint32_t emc_qsafe;
217 /* Specifies the value for EMC_RDV */
218 uint32_t emc_rdv;
219 /* Specifies the value for EMC_RDV_MASK */
220 uint32_t emc_rdv_mask;
221 /* Specifies the value for EMC_QPOP */
222 uint32_t emc_qpop;
223 /* Specifies the value for EMC_CTT */
224 uint32_t emc_ctt;
225 /* Specifies the value for EMC_CTT_DURATION */
226 uint32_t emc_ctt_duration;
227 /* Specifies the value for EMC_REFRESH */
228 uint32_t emc_refresh;
229 /* Specifies the value for EMC_BURST_REFRESH_NUM */
230 uint32_t emc_burst_refresh_num;
231 /* Specifies the value for EMC_PRE_REFRESH_REQ_CNT */
232 uint32_t emc_prerefresh_req_cnt;
233 /* Specifies the value for EMC_PDEX2WR */
234 uint32_t emc_pdex2wr;
235 /* Specifies the value for EMC_PDEX2RD */
236 uint32_t emc_pdex2rd;
237 /* Specifies the value for EMC_PCHG2PDEN */
238 uint32_t emc_pchg2pden;
239 /* Specifies the value for EMC_ACT2PDEN */
240 uint32_t emc_act2pden;
241 /* Specifies the value for EMC_AR2PDEN */
242 uint32_t emc_ar2pden;
243 /* Specifies the value for EMC_RW2PDEN */
244 uint32_t emc_rw2pden;
245 /* Specifies the value for EMC_TXSR */
246 uint32_t emc_txsr;
247 /* Specifies the value for EMC_TXSRDLL */
248 uint32_t emc_txsr_dll;
249 /* Specifies the value for EMC_TCKE */
250 uint32_t emc_tcke;
251 /* Specifies the value for EMC_TCKESR */
252 uint32_t emc_tckesr;
253 /* Specifies the value for EMC_TPD */
254 uint32_t emc_tpd;
255 /* Specifies the value for EMC_TFAW */
256 uint32_t emc_tfaw;
257 /* Specifies the value for EMC_TRPAB */
258 uint32_t emc_trpab;
259 /* Specifies the value for EMC_TCLKSTABLE */
260 uint32_t emc_tclkstable;
261 /* Specifies the value for EMC_TCLKSTOP */
262 uint32_t emc_tclkstop;
263 /* Specifies the value for EMC_TREFBW */
264 uint32_t emc_trefbw;
265
266 /* FBIO configuration values */
267
268 /* Specifies the value for EMC_FBIO_CFG5 */
269 uint32_t emc_fbio_cfg5;
270 /* Specifies the value for EMC_FBIO_CFG6 */
271 uint32_t emc_fbio_cfg6;
272 /* Specifies the value for EMC_FBIO_SPARE */
273 uint32_t emc_fbio_spare;
274
275 /* Specifies the value for EMC_CFG_RSV */
276 uint32_t emc_cfg_rsv;
277
278 /* MRS command values */
279
280 /* Specifies the value for EMC_MRS */
281 uint32_t emc_mrs;
282 /* Specifies the MP0 command to initialize mode registers */
283 uint32_t emc_emrs;
284 /* Specifies the MP2 command to initialize mode registers */
285 uint32_t emc_emrs2;
286 /* Specifies the MP3 command to initialize mode registers */
287 uint32_t emc_emrs3;
288 /* Specifies the programming to LPDDR2 Mode Register 1 at cold boot */
289 uint32_t emc_mrw1;
290 /* Specifies the programming to LPDDR2 Mode Register 2 at cold boot */
291 uint32_t emc_mrw2;
292 /* Specifies the programming to LPDDR2 Mode Register 3 at cold boot */
293 uint32_t emc_mrw3;
294 /* Specifies the programming to LPDDR2 Mode Register 11 at cold boot */
295 uint32_t emc_mrw4;
296 /*
297 * Specifies the programming to extra LPDDR2 Mode Register
298 * at cold boot
299 */
300 uint32_t emc_mrw_extra;
301 /*
302 * Specifies the programming to extra LPDDR2 Mode Register
303 * at warm boot
304 */
305 uint32_t emc_warm_boot_mrw_extra;
306 /*
307 * Specify the enable of extra Mode Register programming at
308 * warm boot
309 */
310 uint32_t emc_warm_boot_extramode_reg_write_enable;
311 /*
312 * Specify the enable of extra Mode Register programming at
313 * cold boot
314 */
315 uint32_t emc_extramode_reg_write_enable;
316
317 /* Specifies the EMC_MRW reset command value */
318 uint32_t emc_mrw_reset_command;
319 /* Specifies the EMC Reset wait time (in microseconds) */
320 uint32_t emc_mrw_reset_ninit_wait;
321 /* Specifies the value for EMC_MRS_WAIT_CNT */
322 uint32_t emc_mrs_wait_cnt;
323 /* Specifies the value for EMC_MRS_WAIT_CNT2 */
324 uint32_t emc_mrs_wait_cnt2;
325
326 /* EMC miscellaneous configurations */
327
328 /* Specifies the value for EMC_CFG */
329 uint32_t emc_cfg;
330 /* Specifies the value for EMC_CFG_2 */
331 uint32_t emc_cfg2;
332 /* Specifies the pipe bypass controls */
333 uint32_t emc_cfg_pipe;
334 /* Specifies the value for EMC_DBG */
335 uint32_t emc_dbg;
336 /* Specifies the value for EMC_CMDQ */
337 uint32_t emc_cmd_q;
338 /* Specifies the value for EMC_MC2EMCQ */
339 uint32_t emc_mc2emc_q;
340 /* Specifies the value for EMC_DYN_SELF_REF_CONTROL */
341 uint32_t emc_dyn_self_ref_control;
342
343 /* Specifies the value for MEM_INIT_DONE */
344 uint32_t ahb_arbitration_xbar_ctrl_meminit_done;
345
346 /* Specifies the value for EMC_CFG_DIG_DLL */
347 uint32_t emc_cfg_dig_dll;
348 /* Specifies the value for EMC_CFG_DIG_DLL_PERIOD */
349 uint32_t emc_cfg_dig_dll_period;
350 /* Specifies the value of *DEV_SELECTN of various EMC registers */
351 uint32_t emc_dev_select;
352
353 /* Specifies the value for EMC_SEL_DPD_CTRL */
354 uint32_t emc_sel_dpd_ctrl;
355
356 /* Pads trimmer delays */
357
358 /* Specifies the value for EMC_DLL_XFORM_DQS0 */
359 uint32_t emc_dll_xform_dqs0;
360 /* Specifies the value for EMC_DLL_XFORM_DQS1 */
361 uint32_t emc_dll_xform_dqs1;
362 /* Specifies the value for EMC_DLL_XFORM_DQS2 */
363 uint32_t emc_dll_xform_dqs2;
364 /* Specifies the value for EMC_DLL_XFORM_DQS3 */
365 uint32_t emc_dll_xform_dqs3;
366 /* Specifies the value for EMC_DLL_XFORM_DQS4 */
367 uint32_t emc_dll_xform_dqs4;
368 /* Specifies the value for EMC_DLL_XFORM_DQS5 */
369 uint32_t emc_dll_xform_dqs5;
370 /* Specifies the value for EMC_DLL_XFORM_DQS6 */
371 uint32_t emc_dll_xform_dqs6;
372 /* Specifies the value for EMC_DLL_XFORM_DQS7 */
373 uint32_t emc_dll_xform_dqs7;
374 /* Specifies the value for EMC_DLL_XFORM_DQS8 */
375 uint32_t emc_dll_xform_dqs8;
376 /* Specifies the value for EMC_DLL_XFORM_DQS9 */
377 uint32_t emc_dll_xform_dqs9;
378 /* Specifies the value for EMC_DLL_XFORM_DQS10 */
379 uint32_t emc_dll_xform_dqs10;
380 /* Specifies the value for EMC_DLL_XFORM_DQS11 */
381 uint32_t emc_dll_xform_dqs11;
382 /* Specifies the value for EMC_DLL_XFORM_DQS12 */
383 uint32_t emc_dll_xform_dqs12;
384 /* Specifies the value for EMC_DLL_XFORM_DQS13 */
385 uint32_t emc_dll_xform_dqs13;
386 /* Specifies the value for EMC_DLL_XFORM_DQS14 */
387 uint32_t emc_dll_xform_dqs14;
388 /* Specifies the value for EMC_DLL_XFORM_DQS15 */
389 uint32_t emc_dll_xform_dqs15;
390 /* Specifies the value for EMC_DLL_XFORM_QUSE0 */
391 uint32_t emc_dll_xform_quse0;
392 /* Specifies the value for EMC_DLL_XFORM_QUSE1 */
393 uint32_t emc_dll_xform_quse1;
394 /* Specifies the value for EMC_DLL_XFORM_QUSE2 */
395 uint32_t emc_dll_xform_quse2;
396 /* Specifies the value for EMC_DLL_XFORM_QUSE3 */
397 uint32_t emc_dll_xform_quse3;
398 /* Specifies the value for EMC_DLL_XFORM_QUSE4 */
399 uint32_t emc_dll_xform_quse4;
400 /* Specifies the value for EMC_DLL_XFORM_QUSE5 */
401 uint32_t emc_dll_xform_quse5;
402 /* Specifies the value for EMC_DLL_XFORM_QUSE6 */
403 uint32_t emc_dll_xform_quse6;
404 /* Specifies the value for EMC_DLL_XFORM_QUSE7 */
405 uint32_t emc_dll_xform_quse7;
406 /* Specifies the value for EMC_DLL_XFORM_ADDR0 */
407 uint32_t emc_dll_xform_addr0;
408 /* Specifies the value for EMC_DLL_XFORM_ADDR1 */
409 uint32_t emc_dll_xform_addr1;
410 /* Specifies the value for EMC_DLL_XFORM_ADDR2 */
411 uint32_t emc_dll_xform_addr2;
412 /* Specifies the value for EMC_DLL_XFORM_ADDR3 */
413 uint32_t emc_dll_xform_addr3;
414 /* Specifies the value for EMC_DLL_XFORM_ADDR4 */
415 uint32_t emc_dll_xform_addr4;
416 /* Specifies the value for EMC_DLL_XFORM_ADDR5 */
417 uint32_t emc_dll_xform_addr5;
418 /* Specifies the value for EMC_DLL_XFORM_QUSE8 */
419 uint32_t emc_dll_xform_quse8;
420 /* Specifies the value for EMC_DLL_XFORM_QUSE9 */
421 uint32_t emc_dll_xform_quse9;
422 /* Specifies the value for EMC_DLL_XFORM_QUSE10 */
423 uint32_t emc_dll_xform_quse10;
424 /* Specifies the value for EMC_DLL_XFORM_QUSE11 */
425 uint32_t emc_dll_xform_quse11;
426 /* Specifies the value for EMC_DLL_XFORM_QUSE12 */
427 uint32_t emc_dll_xform_quse12;
428 /* Specifies the value for EMC_DLL_XFORM_QUSE13 */
429 uint32_t emc_dll_xform_quse13;
430 /* Specifies the value for EMC_DLL_XFORM_QUSE14 */
431 uint32_t emc_dll_xform_quse14;
432 /* Specifies the value for EMC_DLL_XFORM_QUSE15 */
433 uint32_t emc_dll_xform_quse15;
434 /* Specifies the value for EMC_DLI_TRIM_TXDQS0 */
435 uint32_t emc_dli_trim_tx_dqs0;
436 /* Specifies the value for EMC_DLI_TRIM_TXDQS1 */
437 uint32_t emc_dli_trim_tx_dqs1;
438 /* Specifies the value for EMC_DLI_TRIM_TXDQS2 */
439 uint32_t emc_dli_trim_tx_dqs2;
440 /* Specifies the value for EMC_DLI_TRIM_TXDQS3 */
441 uint32_t emc_dli_trim_tx_dqs3;
442 /* Specifies the value for EMC_DLI_TRIM_TXDQS4 */
443 uint32_t emc_dli_trim_tx_dqs4;
444 /* Specifies the value for EMC_DLI_TRIM_TXDQS5 */
445 uint32_t emc_dli_trim_tx_dqs5;
446 /* Specifies the value for EMC_DLI_TRIM_TXDQS6 */
447 uint32_t emc_dli_trim_tx_dqs6;
448 /* Specifies the value for EMC_DLI_TRIM_TXDQS7 */
449 uint32_t emc_dli_trim_tx_dqs7;
450 /* Specifies the value for EMC_DLI_TRIM_TXDQS8 */
451 uint32_t emc_dli_trim_tx_dqs8;
452 /* Specifies the value for EMC_DLI_TRIM_TXDQS9 */
453 uint32_t emc_dli_trim_tx_dqs9;
454 /* Specifies the value for EMC_DLI_TRIM_TXDQS10 */
455 uint32_t emc_dli_trim_tx_dqs10;
456 /* Specifies the value for EMC_DLI_TRIM_TXDQS11 */
457 uint32_t emc_dli_trim_tx_dqs11;
458 /* Specifies the value for EMC_DLI_TRIM_TXDQS12 */
459 uint32_t emc_dli_trim_tx_dqs12;
460 /* Specifies the value for EMC_DLI_TRIM_TXDQS13 */
461 uint32_t emc_dli_trim_tx_dqs13;
462 /* Specifies the value for EMC_DLI_TRIM_TXDQS14 */
463 uint32_t emc_dli_trim_tx_dqs14;
464 /* Specifies the value for EMC_DLI_TRIM_TXDQS15 */
465 uint32_t emc_dli_trim_tx_dqs15;
466 /* Specifies the value for EMC_DLL_XFORM_DQ0 */
467 uint32_t emc_dll_xform_dq0;
468 /* Specifies the value for EMC_DLL_XFORM_DQ1 */
469 uint32_t emc_dll_xform_dq1;
470 /* Specifies the value for EMC_DLL_XFORM_DQ2 */
471 uint32_t emc_dll_xform_dq2;
472 /* Specifies the value for EMC_DLL_XFORM_DQ3 */
473 uint32_t emc_dll_xform_dq3;
474 /* Specifies the value for EMC_DLL_XFORM_DQ4 */
475 uint32_t emc_dll_xform_dq4;
476 /* Specifies the value for EMC_DLL_XFORM_DQ5 */
477 uint32_t emc_dll_xform_dq5;
478 /* Specifies the value for EMC_DLL_XFORM_DQ6 */
479 uint32_t emc_dll_xform_dq6;
480 /* Specifies the value for EMC_DLL_XFORM_DQ7 */
481 uint32_t emc_dll_xform_dq7;
482
483 /*
484 * Specifies the delay after asserting CKE pin during a WarmBoot0
485 * sequence (in microseconds)
486 */
487 uint32_t warm_boot_wait;
488
489 /* Specifies the value for EMC_CTT_TERM_CTRL */
490 uint32_t emc_ctt_term_ctrl;
491
492 /* Specifies the value for EMC_ODT_WRITE */
493 uint32_t emc_odt_write;
494 /* Specifies the value for EMC_ODT_WRITE */
495 uint32_t emc_odt_read;
496
497 /* Periodic ZQ calibration */
498
499 /*
500 * Specifies the value for EMC_ZCAL_INTERVAL
501 * Value 0 disables ZQ calibration
502 */
503 uint32_t emc_zcal_interval;
504 /* Specifies the value for EMC_ZCAL_WAIT_CNT */
505 uint32_t emc_zcal_wait_cnt;
506 /* Specifies the value for EMC_ZCAL_MRW_CMD */
507 uint32_t emc_zcal_mrw_cmd;
508
509 /* DRAM initialization sequence flow control */
510
511 /* Specifies the MRS command value for resetting DLL */
512 uint32_t emc_mrs_reset_dll;
513 /* Specifies the command for ZQ initialization of device 0 */
514 uint32_t emc_zcal_init_dev0;
515 /* Specifies the command for ZQ initialization of device 1 */
516 uint32_t emc_zcal_init_dev1;
517 /*
518 * Specifies the wait time after programming a ZQ initialization
519 * command (in microseconds)
520 */
521 uint32_t emc_zcal_init_wait;
522 /*
523 * Specifies the enable for ZQ calibration at cold boot [bit 0]
524 * and warm boot [bit 1]
525 */
526 uint32_t emc_zcal_warm_cold_boot_enables;
527
528 /*
529 * Specifies the MRW command to LPDDR2 for ZQ calibration
530 * on warmboot
531 */
532 /* Is issued to both devices separately */
533 uint32_t emc_mrw_lpddr2zcal_warm_boot;
534 /*
535 * Specifies the ZQ command to DDR3 for ZQ calibration on warmboot
536 * Is issued to both devices separately
537 */
538 uint32_t emc_zqcal_ddr3_warm_boot;
539 /*
540 * Specifies the wait time for ZQ calibration on warmboot
541 * (in microseconds)
542 */
543 uint32_t emc_zcal_warm_boot_wait;
544 /*
545 * Specifies the enable for DRAM Mode Register programming
546 * at warm boot
547 */
548 uint32_t emc_mrs_warm_boot_enable;
549 /*
550 * Specifies the wait time after sending an MRS DLL reset command
551 * in microseconds)
552 */
553 uint32_t emc_mrs_reset_dll_wait;
554 /* Specifies the extra MRS command to initialize mode registers */
555 uint32_t emc_mrs_extra;
556 /* Specifies the extra MRS command at warm boot */
557 uint32_t emc_warm_boot_mrs_extra;
558 /* Specifies the EMRS command to enable the DDR2 DLL */
559 uint32_t emc_emrs_ddr2_dll_enable;
560 /* Specifies the MRS command to reset the DDR2 DLL */
561 uint32_t emc_mrs_ddr2_dll_reset;
562 /* Specifies the EMRS command to set OCD calibration */
563 uint32_t emc_emrs_ddr2_ocd_calib;
564 /*
565 * Specifies the wait between initializing DDR and setting OCD
566 * calibration (in microseconds)
567 */
568 uint32_t emc_ddr2_wait;
569 /* Specifies the value for EMC_CLKEN_OVERRIDE */
570 uint32_t emc_clken_override;
571 /* Specifies the value for MC_DIS_EXTRA_SNAP_LEVELS */
572 uint32_t mc_dis_extra_snap_levels;
573 /*
574 * Specifies LOG2 of the extra refresh numbers after booting
575 * Program 0 to disable
576 */
577 uint32_t emc_extra_refresh_num;
578 /* Specifies the master override for all EMC clocks */
579 uint32_t emc_clken_override_allwarm_boot;
580 /* Specifies the master override for all MC clocks */
581 uint32_t mc_clken_override_allwarm_boot;
582 /* Specifies digital dll period, choosing between 4 to 64 ms */
583 uint32_t emc_cfg_dig_dll_period_warm_boot;
584
585 /* Pad controls */
586
587 /* Specifies the value for PMC_VDDP_SEL */
588 uint32_t pmc_vddp_sel;
589 /* Specifies the wait time after programming PMC_VDDP_SEL */
590 uint32_t pmc_vddp_sel_wait;
591 /* Specifies the value for PMC_DDR_PWR */
592 uint32_t pmc_ddr_pwr;
593 /* Specifies the value for PMC_DDR_CFG */
594 uint32_t pmc_ddr_cfg;
595 /* Specifies the value for PMC_IO_DPD3_REQ */
596 uint32_t pmc_io_dpd3_req;
597 /* Specifies the wait time after programming PMC_IO_DPD3_REQ */
598 uint32_t pmc_io_dpd3_req_wait;
599 /* Specifies the value for PMC_REG_SHORT */
600 uint32_t pmc_reg_short;
601 /* Specifies the value for PMC_NO_IOPOWER */
602 uint32_t pmc_no_io_power;
603 /* Specifies the wait time after programming PMC_POR_DPD_CTRL */
604 uint32_t pmc_por_dpd_ctrl_wait;
605 /* Specifies the value for EMC_XM2CMDPADCTRL */
606 uint32_t emc_xm2cmd_pad_ctrl;
607 /* Specifies the value for EMC_XM2CMDPADCTRL2 */
608 uint32_t emc_xm2cmd_pad_ctrl2;
609 /* Specifies the value for EMC_XM2CMDPADCTRL3 */
610 uint32_t emc_xm2cmd_pad_ctrl3;
611 /* Specifies the value for EMC_XM2CMDPADCTRL4 */
612 uint32_t emc_xm2cmd_pad_ctrl4;
613 /* Specifies the value for EMC_XM2CMDPADCTRL5 */
614 uint32_t emc_xm2cmd_pad_ctrl5;
615 /* Specifies the value for EMC_XM2DQSPADCTRL */
616 uint32_t emc_xm2dqs_pad_ctrl;
617 /* Specifies the value for EMC_XM2DQSPADCTRL2 */
618 uint32_t emc_xm2dqs_pad_ctrl2;
619 /* Specifies the value for EMC_XM2DQSPADCTRL3 */
620 uint32_t emc_xm2dqs_pad_ctrl3;
621 /* Specifies the value for EMC_XM2DQSPADCTRL4 */
622 uint32_t emc_xm2dqs_pad_ctrl4;
623 /* Specifies the value for EMC_XM2DQSPADCTRL5 */
624 uint32_t emc_xm2dqs_pad_ctrl5;
625 /* Specifies the value for EMC_XM2DQSPADCTRL6 */
626 uint32_t emc_xm2dqs_pad_ctrl6;
627 /* Specifies the value for EMC_XM2DQPADCTRL */
628 uint32_t emc_xm2dq_pad_ctrl;
629 /* Specifies the value for EMC_XM2DQPADCTRL2 */
630 uint32_t emc_xm2dq_pad_ctrl2;
631 /* Specifies the value for EMC_XM2DQPADCTRL3 */
632 uint32_t emc_xm2dq_pad_ctrl3;
633 /* Specifies the value for EMC_XM2CLKPADCTRL */
634 uint32_t emc_xm2clk_pad_ctrl;
635 /* Specifies the value for EMC_XM2CLKPADCTRL2 */
636 uint32_t emc_xm2clk_pad_ctrl2;
637 /* Specifies the value for EMC_XM2COMPPADCTRL */
638 uint32_t emc_xm2comp_pad_ctrl;
639 /* Specifies the value for EMC_XM2VTTGENPADCTRL */
640 uint32_t emc_xm2vttgen_pad_ctrl;
641 /* Specifies the value for EMC_XM2VTTGENPADCTRL2 */
642 uint32_t emc_xm2vttgen_pad_ctrl2;
643 /* Specifies the value for EMC_XM2VTTGENPADCTRL3 */
644 uint32_t emc_xm2vttgen_pad_ctrl3;
645 /* Specifies the value for EMC_ACPD_CONTROL */
646 uint32_t emc_acpd_control;
647
648 /* Specifies the value for EMC_SWIZZLE_RANK0_BYTE_CFG */
649 uint32_t emc_swizzle_rank0_byte_cfg;
650 /* Specifies the value for EMC_SWIZZLE_RANK0_BYTE0 */
651 uint32_t emc_swizzle_rank0_byte0;
652 /* Specifies the value for EMC_SWIZZLE_RANK0_BYTE1 */
653 uint32_t emc_swizzle_rank0_byte1;
654 /* Specifies the value for EMC_SWIZZLE_RANK0_BYTE2 */
655 uint32_t emc_swizzle_rank0_byte2;
656 /* Specifies the value for EMC_SWIZZLE_RANK0_BYTE3 */
657 uint32_t emc_swizzle_rank0_byte3;
658 /* Specifies the value for EMC_SWIZZLE_RANK1_BYTE_CFG */
659 uint32_t emc_swizzle_rank1_byte_cfg;
660 /* Specifies the value for EMC_SWIZZLE_RANK1_BYTE0 */
661 uint32_t emc_swizzle_rank1_byte0;
662 /* Specifies the value for EMC_SWIZZLE_RANK1_BYTE1 */
663 uint32_t emc_swizzle_rank1_byte1;
664 /* Specifies the value for EMC_SWIZZLE_RANK1_BYTE2 */
665 uint32_t emc_swizzle_rank1_byte2;
666 /* Specifies the value for EMC_SWIZZLE_RANK1_BYTE3 */
667 uint32_t emc_swizzle_rank1_byte3;
668
669 /* Specifies the value for EMC_DSR_VTTGEN_DRV */
670 uint32_t emc_dsr_vttgen_drv;
671
672 /* Specifies the value for EMC_TXDSRVTTGEN */
673 uint32_t emc_txdsrvttgen;
674 /* Specifies the value for EMC_BGBIAS_CTL */
675 uint32_t emc_bgbias_ctl0;
676
677 /* DRAM size information */
678
679 /* Specifies the value for MC_EMEM_ADR_CFG */
680 uint32_t mc_emem_adr_cfg;
681 /* Specifies the value for MC_EMEM_ADR_CFG_DEV0 */
682 uint32_t mc_emem_adr_cfg_dev0;
683 /* Specifies the value for MC_EMEM_ADR_CFG_DEV1 */
684 uint32_t mc_emem_adr_cfg_dev1;
685 /* Specifies the value for MC_EMEM_BANK_SWIZZLE_CFG0 */
686 uint32_t mc_emem_adr_cfg_bank_mask0;
687 /* Specifies the value for MC_EMEM_BANK_SWIZZLE_CFG1 */
688 uint32_t mc_emem_adr_cfg_bank_mask1;
689 /* Specifies the value for MC_EMEM_BANK_SWIZZLE_CFG2 */
690 uint32_t mc_emem_adr_cfg_bank_mask2;
691 /* Specifies the value for MC_EMEM_BANK_SWIZZLE_CFG3 */
692 uint32_t mc_emem_adr_cfg_bank_swizzle3;
693
694 /*
695 * Specifies the value for MC_EMEM_CFG which holds the external memory
696 * size (in KBytes)
697 */
698 uint32_t mc_emem_cfg;
699
700 /* MC arbitration configuration */
701
702 /* Specifies the value for MC_EMEM_ARB_CFG */
703 uint32_t mc_emem_arb_cfg;
704 /* Specifies the value for MC_EMEM_ARB_OUTSTANDING_REQ */
705 uint32_t mc_emem_arb_outstanding_req;
706 /* Specifies the value for MC_EMEM_ARB_TIMING_RCD */
707 uint32_t mc_emem_arb_timing_rcd;
708 /* Specifies the value for MC_EMEM_ARB_TIMING_RP */
709 uint32_t mc_emem_arb_timing_rp;
710 /* Specifies the value for MC_EMEM_ARB_TIMING_RC */
711 uint32_t mc_emem_arb_timing_rc;
712 /* Specifies the value for MC_EMEM_ARB_TIMING_RAS */
713 uint32_t mc_emem_arb_timing_ras;
714 /* Specifies the value for MC_EMEM_ARB_TIMING_FAW */
715 uint32_t mc_emem_arb_timing_faw;
716 /* Specifies the value for MC_EMEM_ARB_TIMING_RRD */
717 uint32_t mc_emem_arb_timing_rrd;
718 /* Specifies the value for MC_EMEM_ARB_TIMING_RAP2PRE */
719 uint32_t mc_emem_arb_timing_rap2pre;
720 /* Specifies the value for MC_EMEM_ARB_TIMING_WAP2PRE */
721 uint32_t mc_emem_arb_timing_wap2pre;
722 /* Specifies the value for MC_EMEM_ARB_TIMING_R2R */
723 uint32_t mc_emem_arb_timing_r2r;
724 /* Specifies the value for MC_EMEM_ARB_TIMING_W2W */
725 uint32_t mc_emem_arb_timing_w2w;
726 /* Specifies the value for MC_EMEM_ARB_TIMING_R2W */
727 uint32_t mc_emem_arb_timing_r2w;
728 /* Specifies the value for MC_EMEM_ARB_TIMING_W2R */
729 uint32_t mc_emem_arb_timing_w2r;
730 /* Specifies the value for MC_EMEM_ARB_DA_TURNS */
731 uint32_t mc_emem_arb_da_turns;
732 /* Specifies the value for MC_EMEM_ARB_DA_COVERS */
733 uint32_t mc_emem_arb_da_covers;
734 /* Specifies the value for MC_EMEM_ARB_MISC0 */
735 uint32_t mc_emem_arb_misc0;
736 /* Specifies the value for MC_EMEM_ARB_MISC1 */
737 uint32_t mc_emem_arb_misc1;
738 /* Specifies the value for MC_EMEM_ARB_RING1_THROTTLE */
739 uint32_t mc_emem_arb_ring1_throttle;
740 /* Specifies the value for MC_EMEM_ARB_OVERRIDE */
741 uint32_t mc_emem_arb_override;
742 /* Specifies the value for MC_EMEM_ARB_OVERRIDE_1 */
743 uint32_t mc_emem_arb_override1;
744 /* Specifies the value for MC_EMEM_ARB_RSV */
745 uint32_t mc_emem_arb_rsv;
746
747 /* Specifies the value for MC_CLKEN_OVERRIDE */
748 uint32_t mc_clken_override;
749
750 /* Specifies the value for MC_STAT_CONTROL */
751 uint32_t mc_stat_control;
752 /* Specifies the value for MC_DISPLAY_SNAP_RING */
753 uint32_t mc_display_snap_ring;
754 /* Specifies the value for MC_VIDEO_PROTECT_BOM */
755 uint32_t mc_video_protect_bom;
756 /* Specifies the value for MC_VIDEO_PROTECT_BOM_ADR_HI */
757 uint32_t mc_video_protect_bom_adr_hi;
758 /* Specifies the value for MC_VIDEO_PROTECT_SIZE_MB */
759 uint32_t mc_video_protect_size_mb;
760 /* Specifies the value for MC_VIDEO_PROTECT_VPR_OVERRIDE */
761 uint32_t mc_video_protect_vpr_override;
762 /* Specifies the value for MC_VIDEO_PROTECT_VPR_OVERRIDE1 */
763 uint32_t mc_video_protect_vpr_override1;
764 /* Specifies the value for MC_VIDEO_PROTECT_GPU_OVERRIDE_0 */
765 uint32_t mc_video_protect_gpu_override0;
766 /* Specifies the value for MC_VIDEO_PROTECT_GPU_OVERRIDE_1 */
767 uint32_t mc_video_protect_gpu_override1;
768 /* Specifies the value for MC_SEC_CARVEOUT_BOM */
769 uint32_t mc_sec_carveout_bom;
770 /* Specifies the value for MC_SEC_CARVEOUT_ADR_HI */
771 uint32_t mc_sec_carveout_adr_hi;
772 /* Specifies the value for MC_SEC_CARVEOUT_SIZE_MB */
773 uint32_t mc_sec_carveout_size_mb;
774 /* Specifies the value for MC_VIDEO_PROTECT_REG_CTRL.VIDEO_PROTECT_WRITE_ACCESS */
775 uint32_t mc_video_protect_write_access;
776 /* Specifies the value for MC_SEC_CARVEOUT_REG_CTRL.SEC_CARVEOUT_WRITE_ACCESS */
777 uint32_t mc_sec_carveout_protect_write_access;
778
779 /* Specifies enable for CA training */
780 uint32_t emc_ca_training_enable;
781 /* Specifies the value for EMC_CA_TRAINING_TIMING_CNTRL1 */
782 uint32_t emc_ca_training_timing_cntl1;
783 /* Specifies the value for EMC_CA_TRAINING_TIMING_CNTRL2 */
784 uint32_t emc_ca_training_timing_cntl2;
785 /* Set if bit 6 select is greater than bit 7 select; uses aremc.spec packet SWIZZLE_BIT6_GT_BIT7 */
786 uint32_t swizzle_rank_byte_encode;
787 /* Specifies enable and offset for patched boot rom write */
788 uint32_t boot_rom_patch_control;
789 /* Specifies data for patched boot rom write */
790 uint32_t boot_rom_patch_data;
791 /* Specifies the value for MC_MTS_CARVEOUT_BOM */
792 uint32_t mc_mts_carveout_bom;
793 /* Specifies the value for MC_MTS_CARVEOUT_ADR_HI */
794 uint32_t mc_mts_carveout_adr_hi;
795 /* Specifies the value for MC_MTS_CARVEOUT_SIZE_MB */
796 uint32_t mc_mts_carveout_size_mb;
797 /* Specifies the value for MC_MTS_CARVEOUT_REG_CTRL */
798 uint32_t mc_mts_carveout_reg_ctrl;
799
800 /* End of generated code by warmboot_code_gen */
801 } nvboot_sdram_params;
802 #endif /* #ifndef INCLUDED_NVBOOT_SDRAM_PARAM_T124_H */
803