Debian Codegraph @

util/nvidia/cbootimage/src/t210/nvboot_sdram_param_t210.h

raw symbols SCIP
1 /*
2 * Copyright (c) 2015, 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_T210_H
27 #define INCLUDED_NVBOOT_SDRAM_PARAM_T210_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 /* Specifies the memory type to be LPDDR4 SDRAM */
51 nvboot_memory_type_lpddr4,
52
53 nvboot_memory_type_num,
54 nvboot_memory_type_force32 = 0x7FFFFFF
55 } nvboot_memory_type;
56
57 /**
58 * Defines the SDRAM parameter structure
59 */
60 typedef struct nvboot_sdram_params_rec {
61 /* sdram data structure generated by tool warmboot_code_gen */
62
63 /* Specifies the type of memory device */
64 nvboot_memory_type memory_type;
65
66 /* MC/EMC clock source configuration */
67
68 /* Specifies the M value for PllM */
69 uint32_t pllm_input_divider;
70 /* Specifies the N value for PllM */
71 uint32_t pllm_feedback_divider;
72 /* Specifies the time to wait for PLLM to lock (in microseconds) */
73 uint32_t pllm_stable_time;
74 /* Specifies misc. control bits */
75 uint32_t pllm_setup_control;
76 /* Specifies the P value for PLLM */
77 uint32_t pllm_post_divider;
78 /* Specifies value for Charge Pump Gain Control */
79 uint32_t pllm_kcp;
80 /* Specifies VCO gain */
81 uint32_t pllm_kvco;
82 /* Spare BCT param */
83 uint32_t emc_bct_spare0;
84 /* Spare BCT param */
85 uint32_t emc_bct_spare1;
86 /* Spare BCT param */
87 uint32_t emc_bct_spare2;
88 /* Spare BCT param */
89 uint32_t emc_bct_spare3;
90 /* Spare BCT param */
91 uint32_t emc_bct_spare4;
92 /* Spare BCT param */
93 uint32_t emc_bct_spare5;
94 /* Spare BCT param */
95 uint32_t emc_bct_spare6;
96 /* Spare BCT param */
97 uint32_t emc_bct_spare7;
98 /* Spare BCT param */
99 uint32_t emc_bct_spare8;
100 /* Spare BCT param */
101 uint32_t emc_bct_spare9;
102 /* Spare BCT param */
103 uint32_t emc_bct_spare10;
104 /* Spare BCT param */
105 uint32_t emc_bct_spare11;
106 /* Spare BCT param */
107 uint32_t emc_bct_spare12;
108 /* Spare BCT param */
109 uint32_t emc_bct_spare13;
110
111 /* Defines EMC_2X_CLK_SRC, EMC_2X_CLK_DIVISOR, EMC_INVERT_DCD */
112 uint32_t emc_clock_source;
113 uint32_t emc_clock_source_dll;
114
115 /* Defines possible override for PLLLM_MISC2 */
116 uint32_t clk_rst_pllm_misc20_override;
117 /* enables override for PLLLM_MISC2 */
118 uint32_t clk_rst_pllm_misc20_override_enable;
119 /* defines CLK_ENB_MC1 in register clk_rst_controller_clk_enb_w_clr */
120 uint32_t clear_clock2_mc1;
121
122 /* Auto-calibration of EMC pads */
123
124 /* Specifies the value for EMC_AUTO_CAL_INTERVAL */
125 uint32_t emc_auto_cal_interval;
126 /*
127 * Specifies the value for EMC_AUTO_CAL_CONFIG
128 * Note: Trigger bits are set by the SDRAM code.
129 */
130 uint32_t emc_auto_cal_config;
131
132 /* Specifies the value for EMC_AUTO_CAL_CONFIG2 */
133 uint32_t emc_auto_cal_config2;
134
135 /* Specifies the value for EMC_AUTO_CAL_CONFIG3 */
136 uint32_t emc_auto_cal_config3;
137
138 uint32_t emc_auto_cal_config4;
139 uint32_t emc_auto_cal_config5;
140 uint32_t emc_auto_cal_config6;
141 uint32_t emc_auto_cal_config7;
142 uint32_t emc_auto_cal_config8;
143 /* Specifies the value for EMC_AUTO_CAL_VREF_SEL_0 */
144 uint32_t emc_auto_cal_vref_sel0;
145 uint32_t emc_auto_cal_vref_sel1;
146
147 /* Specifies the value for EMC_AUTO_CAL_CHANNEL */
148 uint32_t emc_auto_cal_channel;
149
150 /* Specifies the value for EMC_PMACRO_AUTOCAL_CFG_0 */
151 uint32_t emc_pmacro_auto_cal_cfg0;
152 uint32_t emc_pmacro_auto_cal_cfg1;
153 uint32_t emc_pmacro_auto_cal_cfg2;
154
155 uint32_t emc_pmacro_rx_term;
156 uint32_t emc_pmacro_dq_tx_drive;
157 uint32_t emc_pmacro_ca_tx_drive;
158 uint32_t emc_pmacro_cmd_tx_drive;
159 uint32_t emc_pmacro_auto_cal_common;
160 uint32_t emc_pmacro_zcrtl;
161
162 /*
163 * Specifies the time for the calibration
164 * to stabilize (in microseconds)
165 */
166 uint32_t emc_auto_cal_wait;
167
168 uint32_t emc_xm2_comp_pad_ctrl;
169 uint32_t emc_xm2_comp_pad_ctrl2;
170 uint32_t emc_xm2_comp_pad_ctrl3;
171
172 /*
173 * DRAM size information
174 * Specifies the value for EMC_ADR_CFG
175 */
176 uint32_t emc_adr_cfg;
177
178 /*
179 * Specifies the time to wait after asserting pin
180 * CKE (in microseconds)
181 */
182 uint32_t emc_pin_program_wait;
183 /* Specifies the extra delay before/after pin RESET/CKE command */
184 uint32_t emc_pin_extra_wait;
185
186 uint32_t emc_pin_gpio_enable;
187 uint32_t emc_pin_gpio;
188
189 /*
190 * Specifies the extra delay after the first writing
191 * of EMC_TIMING_CONTROL
192 */
193 uint32_t emc_timing_control_wait;
194
195 /* Timing parameters required for the SDRAM */
196
197 /* Specifies the value for EMC_RC */
198 uint32_t emc_rc;
199 /* Specifies the value for EMC_RFC */
200 uint32_t emc_rfc;
201
202 uint32_t emc_rfc_pb;
203 uint32_t emc_ref_ctrl2;
204
205 /* Specifies the value for EMC_RFC_SLR */
206 uint32_t emc_rfc_slr;
207 /* Specifies the value for EMC_RAS */
208 uint32_t emc_ras;
209 /* Specifies the value for EMC_RP */
210 uint32_t emc_rp;
211 /* Specifies the value for EMC_R2R */
212 uint32_t emc_r2r;
213 /* Specifies the value for EMC_W2W */
214 uint32_t emc_w2w;
215 /* Specifies the value for EMC_R2W */
216 uint32_t emc_r2w;
217 /* Specifies the value for EMC_W2R */
218 uint32_t emc_w2r;
219 /* Specifies the value for EMC_R2P */
220 uint32_t emc_r2p;
221 /* Specifies the value for EMC_W2P */
222 uint32_t emc_w2p;
223 /* Specifies the value for EMC_RD_RCD */
224
225 uint32_t emc_tppd;
226 uint32_t emc_ccdmw;
227
228 uint32_t emc_rd_rcd;
229 /* Specifies the value for EMC_WR_RCD */
230 uint32_t emc_wr_rcd;
231 /* Specifies the value for EMC_RRD */
232 uint32_t emc_rrd;
233 /* Specifies the value for EMC_REXT */
234 uint32_t emc_rext;
235 /* Specifies the value for EMC_WEXT */
236 uint32_t emc_wext;
237 /* Specifies the value for EMC_WDV */
238 uint32_t emc_wdv;
239
240 uint32_t emc_wdv_chk;
241 uint32_t emc_wsv;
242 uint32_t emc_wev;
243
244 /* Specifies the value for EMC_WDV_MASK */
245 uint32_t emc_wdv_mask;
246
247 uint32_t emc_ws_duration;
248 uint32_t emc_we_duration;
249
250 /* Specifies the value for EMC_QUSE */
251 uint32_t emc_quse;
252 /* Specifies the value for EMC_QUSE_WIDTH */
253 uint32_t emc_quse_width;
254 /* Specifies the value for EMC_IBDLY */
255 uint32_t emc_ibdly;
256
257 uint32_t emc_obdly;
258
259 /* Specifies the value for EMC_EINPUT */
260 uint32_t emc_einput;
261 /* Specifies the value for EMC_EINPUT_DURATION */
262 uint32_t emc_einput_duration;
263 /* Specifies the value for EMC_PUTERM_EXTRA */
264 uint32_t emc_puterm_extra;
265 /* Specifies the value for EMC_PUTERM_WIDTH */
266 uint32_t emc_puterm_width;
267
268 uint32_t emc_qrst;
269 uint32_t emc_qsafe;
270 uint32_t emc_rdv;
271 uint32_t emc_rdv_mask;
272
273 uint32_t emc_rdv_early;
274 uint32_t emc_rdv_early_mask;
275
276 /* Specifies the value for EMC_QPOP */
277 uint32_t emc_qpop;
278
279 /* Specifies the value for EMC_REFRESH */
280 uint32_t emc_refresh;
281 /* Specifies the value for EMC_BURST_REFRESH_NUM */
282 uint32_t emc_burst_refresh_num;
283 /* Specifies the value for EMC_PRE_REFRESH_REQ_CNT */
284 uint32_t emc_prerefresh_req_cnt;
285 /* Specifies the value for EMC_PDEX2WR */
286 uint32_t emc_pdex2wr;
287 /* Specifies the value for EMC_PDEX2RD */
288 uint32_t emc_pdex2rd;
289 /* Specifies the value for EMC_PCHG2PDEN */
290 uint32_t emc_pchg2pden;
291 /* Specifies the value for EMC_ACT2PDEN */
292 uint32_t emc_act2pden;
293 /* Specifies the value for EMC_AR2PDEN */
294 uint32_t emc_ar2pden;
295 /* Specifies the value for EMC_RW2PDEN */
296 uint32_t emc_rw2pden;
297
298 uint32_t emc_cke2pden;
299 uint32_t emc_pdex2che;
300 uint32_t emc_pdex2mrr;
301
302 /* Specifies the value for EMC_TXSR */
303 uint32_t emc_txsr;
304 /* Specifies the value for EMC_TXSRDLL */
305 uint32_t emc_txsr_dll;
306 /* Specifies the value for EMC_TCKE */
307 uint32_t emc_tcke;
308 /* Specifies the value for EMC_TCKESR */
309 uint32_t emc_tckesr;
310 /* Specifies the value for EMC_TPD */
311 uint32_t emc_tpd;
312 /* Specifies the value for EMC_TFAW */
313 uint32_t emc_tfaw;
314 /* Specifies the value for EMC_TRPAB */
315 uint32_t emc_trpab;
316 /* Specifies the value for EMC_TCLKSTABLE */
317 uint32_t emc_tclkstable;
318 /* Specifies the value for EMC_TCLKSTOP */
319 uint32_t emc_tclkstop;
320 /* Specifies the value for EMC_TREFBW */
321 uint32_t emc_trefbw;
322
323 /* FBIO configuration values */
324
325 /* Specifies the value for EMC_FBIO_CFG5 */
326 uint32_t emc_fbio_cfg5;
327 /* Specifies the value for EMC_FBIO_CFG7 */
328 uint32_t emc_fbio_cfg7;
329 uint32_t emc_fbio_cfg8;
330
331 /* Command mapping for CMD brick 0 */
332 uint32_t emc_cmd_mapping_cmd0_0;
333 uint32_t emc_cmd_mapping_cmd0_1;
334 uint32_t emc_cmd_mapping_cmd0_2;
335 uint32_t emc_cmd_mapping_cmd1_0;
336 uint32_t emc_cmd_mapping_cmd1_1;
337 uint32_t emc_cmd_mapping_cmd1_2;
338 uint32_t emc_cmd_mapping_cmd2_0;
339 uint32_t emc_cmd_mapping_cmd2_1;
340 uint32_t emc_cmd_mapping_cmd2_2;
341 uint32_t emc_cmd_mapping_cmd3_0;
342 uint32_t emc_cmd_mapping_cmd3_1;
343 uint32_t emc_cmd_mapping_cmd3_2;
344 uint32_t emc_cmd_mapping_byte;
345
346 /* Specifies the value for EMC_FBIO_SPARE */
347 uint32_t emc_fbio_spare;
348
349 /* Specifies the value for EMC_CFG_RSV */
350 uint32_t emc_cfg_rsv;
351
352 /* MRS command values */
353
354 /* Specifies the value for EMC_MRS */
355 uint32_t emc_mrs;
356 /* Specifies the MP0 command to initialize mode registers */
357 uint32_t emc_emrs;
358 /* Specifies the MP2 command to initialize mode registers */
359 uint32_t emc_emrs2;
360 /* Specifies the MP3 command to initialize mode registers */
361 uint32_t emc_emrs3;
362 /* Specifies the programming to LPDDR2 Mode Register 1 at cold boot */
363 uint32_t emc_mrw1;
364 /* Specifies the programming to LPDDR2 Mode Register 2 at cold boot */
365 uint32_t emc_mrw2;
366 /* Specifies the programming to LPDDR2 Mode Register 3 at cold boot */
367 uint32_t emc_mrw3;
368 /* Specifies the programming to LPDDR2 Mode Register 11 at cold boot */
369 uint32_t emc_mrw4;
370
371 /* Specifies the programming to LPDDR4 Mode Register 3 at cold boot */
372 uint32_t emc_mrw6;
373 /* Specifies the programming to LPDDR4 Mode Register 11 at cold boot */
374 uint32_t emc_mrw8;
375 /* Specifies the programming to LPDDR4 Mode Register 11 at cold boot */
376 uint32_t emc_mrw9;
377 /* Specifies the programming to LPDDR4 Mode Register 12 at cold boot */
378 uint32_t emc_mrw10;
379 /* Specifies the programming to LPDDR4 Mode Register 14 at cold boot */
380 uint32_t emc_mrw12;
381 /* Specifies the programming to LPDDR4 Mode Register 14 at cold boot */
382 uint32_t emc_mrw13;
383 /* Specifies the programming to LPDDR4 Mode Register 22 at cold boot */
384 uint32_t emc_mrw14;
385
386 /*
387 * Specifies the programming to extra LPDDR2 Mode Register
388 * at cold boot
389 */
390 uint32_t emc_mrw_extra;
391 /*
392 * Specifies the programming to extra LPDDR2 Mode Register
393 * at warm boot
394 */
395 uint32_t emc_warm_boot_mrw_extra;
396 /*
397 * Specify the enable of extra Mode Register programming at
398 * warm boot
399 */
400 uint32_t emc_warm_boot_extramode_reg_write_enable;
401 /*
402 * Specify the enable of extra Mode Register programming at
403 * cold boot
404 */
405 uint32_t emc_extramode_reg_write_enable;
406
407 /* Specifies the EMC_MRW reset command value */
408 uint32_t emc_mrw_reset_command;
409 /* Specifies the EMC Reset wait time (in microseconds) */
410 uint32_t emc_mrw_reset_ninit_wait;
411 /* Specifies the value for EMC_MRS_WAIT_CNT */
412 uint32_t emc_mrs_wait_cnt;
413 /* Specifies the value for EMC_MRS_WAIT_CNT2 */
414 uint32_t emc_mrs_wait_cnt2;
415
416 /* EMC miscellaneous configurations */
417
418 /* Specifies the value for EMC_CFG */
419 uint32_t emc_cfg;
420 /* Specifies the value for EMC_CFG_2 */
421 uint32_t emc_cfg2;
422 /* Specifies the pipe bypass controls */
423 uint32_t emc_cfg_pipe;
424
425 uint32_t emc_cfg_pipe_clk;
426 uint32_t emc_fdpd_ctrl_cmd_no_ramp;
427 uint32_t emc_cfg_update;
428
429 /* Specifies the value for EMC_DBG */
430 uint32_t emc_dbg;
431
432 uint32_t emc_dbg_write_mux;
433
434 /* Specifies the value for EMC_CMDQ */
435 uint32_t emc_cmd_q;
436 /* Specifies the value for EMC_MC2EMCQ */
437 uint32_t emc_mc2emc_q;
438 /* Specifies the value for EMC_DYN_SELF_REF_CONTROL */
439 uint32_t emc_dyn_self_ref_control;
440
441 /* Specifies the value for MEM_INIT_DONE */
442 uint32_t ahb_arbitration_xbar_ctrl_meminit_done;
443
444 /* Specifies the value for EMC_CFG_DIG_DLL */
445 uint32_t emc_cfg_dig_dll;
446 uint32_t emc_cfg_dig_dll_1;
447
448 /* Specifies the value for EMC_CFG_DIG_DLL_PERIOD */
449 uint32_t emc_cfg_dig_dll_period;
450 /* Specifies the value of *DEV_SELECTN of various EMC registers */
451 uint32_t emc_dev_select;
452
453 /* Specifies the value for EMC_SEL_DPD_CTRL */
454 uint32_t emc_sel_dpd_ctrl;
455
456 /* Pads trimmer delays */
457 uint32_t emc_fdpd_ctrl_dq;
458 uint32_t emc_fdpd_ctrl_cmd;
459 uint32_t emc_pmacro_ib_vref_dq_0;
460 uint32_t emc_pmacro_ib_vref_dq_1;
461 uint32_t emc_pmacro_ib_vref_dqs_0;
462 uint32_t emc_pmacro_ib_vref_dqs_1;
463 uint32_t emc_pmacro_ib_rxrt;
464 uint32_t emc_cfg_pipe1;
465 uint32_t emc_cfg_pipe2;
466
467 /* Specifies the value for EMC_PMACRO_QUSE_DDLL_RANK0_0 */
468 uint32_t emc_pmacro_quse_ddll_rank0_0;
469 uint32_t emc_pmacro_quse_ddll_rank0_1;
470 uint32_t emc_pmacro_quse_ddll_rank0_2;
471 uint32_t emc_pmacro_quse_ddll_rank0_3;
472 uint32_t emc_pmacro_quse_ddll_rank0_4;
473 uint32_t emc_pmacro_quse_ddll_rank0_5;
474 uint32_t emc_pmacro_quse_ddll_rank1_0;
475 uint32_t emc_pmacro_quse_ddll_rank1_1;
476 uint32_t emc_pmacro_quse_ddll_rank1_2;
477 uint32_t emc_pmacro_quse_ddll_rank1_3;
478 uint32_t emc_pmacro_quse_ddll_rank1_4;
479 uint32_t emc_pmacro_quse_ddll_rank1_5;
480
481 uint32_t emc_pmacro_ob_ddll_long_dq_rank0_0;
482 uint32_t emc_pmacro_ob_ddll_long_dq_rank0_1;
483 uint32_t emc_pmacro_ob_ddll_long_dq_rank0_2;
484 uint32_t emc_pmacro_ob_ddll_long_dq_rank0_3;
485 uint32_t emc_pmacro_ob_ddll_long_dq_rank0_4;
486 uint32_t emc_pmacro_ob_ddll_long_dq_rank0_5;
487 uint32_t emc_pmacro_ob_ddll_long_dq_rank1_0;
488 uint32_t emc_pmacro_ob_ddll_long_dq_rank1_1;
489 uint32_t emc_pmacro_ob_ddll_long_dq_rank1_2;
490 uint32_t emc_pmacro_ob_ddll_long_dq_rank1_3;
491 uint32_t emc_pmacro_ob_ddll_long_dq_rank1_4;
492 uint32_t emc_pmacro_ob_ddll_long_dq_rank1_5;
493
494 uint32_t emc_pmacro_ob_ddll_long_dqs_rank0_0;
495 uint32_t emc_pmacro_ob_ddll_long_dqs_rank0_1;
496 uint32_t emc_pmacro_ob_ddll_long_dqs_rank0_2;
497 uint32_t emc_pmacro_ob_ddll_long_dqs_rank0_3;
498 uint32_t emc_pmacro_ob_ddll_long_dqs_rank0_4;
499 uint32_t emc_pmacro_ob_ddll_long_dqs_rank0_5;
500 uint32_t emc_pmacro_ob_ddll_long_dqs_rank1_0;
501 uint32_t emc_pmacro_ob_ddll_long_dqs_rank1_1;
502 uint32_t emc_pmacro_ob_ddll_long_dqs_rank1_2;
503 uint32_t emc_pmacro_ob_ddll_long_dqs_rank1_3;
504 uint32_t emc_pmacro_ob_ddll_long_dqs_rank1_4;
505 uint32_t emc_pmacro_ob_ddll_long_dqs_rank1_5;
506
507 uint32_t emc_pmacro_ib_ddll_long_dqs_rank0_0;
508 uint32_t emc_pmacro_ib_ddll_long_dqs_rank0_1;
509 uint32_t emc_pmacro_ib_ddll_long_dqs_rank0_2;
510 uint32_t emc_pmacro_ib_ddll_long_dqs_rank0_3;
511 uint32_t emc_pmacro_ib_ddll_long_dqs_rank1_0;
512 uint32_t emc_pmacro_ib_ddll_long_dqs_rank1_1;
513 uint32_t emc_pmacro_ib_ddll_long_dqs_rank1_2;
514 uint32_t emc_pmacro_ib_ddll_long_dqs_rank1_3;
515
516 uint32_t emc_pmacro_ddll_long_cmd_0;
517 uint32_t emc_pmacro_ddll_long_cmd_1;
518 uint32_t emc_pmacro_ddll_long_cmd_2;
519 uint32_t emc_pmacro_ddll_long_cmd_3;
520 uint32_t emc_pmacro_ddll_long_cmd_4;
521 uint32_t emc_pmacro_ddll_short_cmd_0;
522 uint32_t emc_pmacro_ddll_short_cmd_1;
523 uint32_t emc_pmacro_ddll_short_cmd_2;
524
525 /*
526 * Specifies the delay after asserting CKE pin during a WarmBoot0
527 * sequence (in microseconds)
528 */
529 uint32_t warm_boot_wait;
530
531 /* Specifies the value for EMC_ODT_WRITE */
532 uint32_t emc_odt_write;
533
534 /* Periodic ZQ calibration */
535
536 /*
537 * Specifies the value for EMC_ZCAL_INTERVAL
538 * Value 0 disables ZQ calibration
539 */
540 uint32_t emc_zcal_interval;
541 /* Specifies the value for EMC_ZCAL_WAIT_CNT */
542 uint32_t emc_zcal_wait_cnt;
543 /* Specifies the value for EMC_ZCAL_MRW_CMD */
544 uint32_t emc_zcal_mrw_cmd;
545
546 /* DRAM initialization sequence flow control */
547
548 /* Specifies the MRS command value for resetting DLL */
549 uint32_t emc_mrs_reset_dll;
550 /* Specifies the command for ZQ initialization of device 0 */
551 uint32_t emc_zcal_init_dev0;
552 /* Specifies the command for ZQ initialization of device 1 */
553 uint32_t emc_zcal_init_dev1;
554 /*
555 * Specifies the wait time after programming a ZQ initialization
556 * command (in microseconds)
557 */
558 uint32_t emc_zcal_init_wait;
559 /*
560 * Specifies the enable for ZQ calibration at cold boot [bit 0]
561 * and warm boot [bit 1]
562 */
563 uint32_t emc_zcal_warm_cold_boot_enables;
564
565 /*
566 * Specifies the MRW command to LPDDR2 for ZQ calibration
567 * on warmboot
568 */
569 /* Is issued to both devices separately */
570 uint32_t emc_mrw_lpddr2zcal_warm_boot;
571 /*
572 * Specifies the ZQ command to DDR3 for ZQ calibration on warmboot
573 * Is issued to both devices separately
574 */
575 uint32_t emc_zqcal_ddr3_warm_boot;
576
577 uint32_t emc_zqcal_lpddr4_warm_boot;
578
579 /*
580 * Specifies the wait time for ZQ calibration on warmboot
581 * (in microseconds)
582 */
583 uint32_t emc_zcal_warm_boot_wait;
584 /*
585 * Specifies the enable for DRAM Mode Register programming
586 * at warm boot
587 */
588 uint32_t emc_mrs_warm_boot_enable;
589 /*
590 * Specifies the wait time after sending an MRS DLL reset command
591 * in microseconds)
592 */
593 uint32_t emc_mrs_reset_dll_wait;
594 /* Specifies the extra MRS command to initialize mode registers */
595 uint32_t emc_mrs_extra;
596 /* Specifies the extra MRS command at warm boot */
597 uint32_t emc_warm_boot_mrs_extra;
598 /* Specifies the EMRS command to enable the DDR2 DLL */
599 uint32_t emc_emrs_ddr2_dll_enable;
600 /* Specifies the MRS command to reset the DDR2 DLL */
601 uint32_t emc_mrs_ddr2_dll_reset;
602 /* Specifies the EMRS command to set OCD calibration */
603 uint32_t emc_emrs_ddr2_ocd_calib;
604 /*
605 * Specifies the wait between initializing DDR and setting OCD
606 * calibration (in microseconds)
607 */
608 uint32_t emc_ddr2_wait;
609 /* Specifies the value for EMC_CLKEN_OVERRIDE */
610 uint32_t emc_clken_override;
611 /*
612 * Specifies LOG2 of the extra refresh numbers after booting
613 * Program 0 to disable
614 */
615 uint32_t emc_extra_refresh_num;
616 /* Specifies the master override for all EMC clocks */
617 uint32_t emc_clken_override_allwarm_boot;
618 /* Specifies the master override for all MC clocks */
619 uint32_t mc_clken_override_allwarm_boot;
620 /* Specifies digital dll period, choosing between 4 to 64 ms */
621 uint32_t emc_cfg_dig_dll_period_warm_boot;
622
623 /* Pad controls */
624
625 /* Specifies the value for PMC_VDDP_SEL */
626 uint32_t pmc_vddp_sel;
627 /* Specifies the wait time after programming PMC_VDDP_SEL */
628 uint32_t pmc_vddp_sel_wait;
629 /* Specifies the value for PMC_DDR_PWR */
630 uint32_t pmc_ddr_pwr;
631 /* Specifies the value for PMC_DDR_CFG */
632 uint32_t pmc_ddr_cfg;
633 /* Specifies the value for PMC_IO_DPD3_REQ */
634 uint32_t pmc_io_dpd3_req;
635 /* Specifies the wait time after programming PMC_IO_DPD3_REQ */
636 uint32_t pmc_io_dpd3_req_wait;
637
638 uint32_t pmc_io_dpd4_req_wait;
639
640 /* Specifies the value for PMC_REG_SHORT */
641 uint32_t pmc_reg_short;
642 /* Specifies the value for PMC_NO_IOPOWER */
643 uint32_t pmc_no_io_power;
644
645 uint32_t pmc_ddr_ctrl_wait;
646 uint32_t pmc_ddr_ctrl;
647
648 /* Specifies the value for EMC_ACPD_CONTROL */
649 uint32_t emc_acpd_control;
650
651 /* Specifies the value for EMC_SWIZZLE_RANK0_BYTE0 */
652 uint32_t emc_swizzle_rank0_byte0;
653 /* Specifies the value for EMC_SWIZZLE_RANK0_BYTE1 */
654 uint32_t emc_swizzle_rank0_byte1;
655 /* Specifies the value for EMC_SWIZZLE_RANK0_BYTE2 */
656 uint32_t emc_swizzle_rank0_byte2;
657 /* Specifies the value for EMC_SWIZZLE_RANK0_BYTE3 */
658 uint32_t emc_swizzle_rank0_byte3;
659 /* Specifies the value for EMC_SWIZZLE_RANK1_BYTE0 */
660 uint32_t emc_swizzle_rank1_byte0;
661 /* Specifies the value for EMC_SWIZZLE_RANK1_BYTE1 */
662 uint32_t emc_swizzle_rank1_byte1;
663 /* Specifies the value for EMC_SWIZZLE_RANK1_BYTE2 */
664 uint32_t emc_swizzle_rank1_byte2;
665 /* Specifies the value for EMC_SWIZZLE_RANK1_BYTE3 */
666 uint32_t emc_swizzle_rank1_byte3;
667
668 /* Specifies the value for EMC_TXDSRVTTGEN */
669 uint32_t emc_txdsrvttgen;
670
671 /* Specifies the value for EMC_DATA_BRLSHFT_0 */
672 uint32_t emc_data_brlshft0;
673 uint32_t emc_data_brlshft1;
674
675 uint32_t emc_dqs_brlshft0;
676 uint32_t emc_dqs_brlshft1;
677
678 uint32_t emc_cmd_brlshft0;
679 uint32_t emc_cmd_brlshft1;
680 uint32_t emc_cmd_brlshft2;
681 uint32_t emc_cmd_brlshft3;
682
683 uint32_t emc_quse_brlshft0;
684 uint32_t emc_quse_brlshft1;
685 uint32_t emc_quse_brlshft2;
686 uint32_t emc_quse_brlshft3;
687
688 uint32_t emc_dll_cfg0;
689 uint32_t emc_dll_cfg1;
690
691 uint32_t emc_pmc_scratch1;
692 uint32_t emc_pmc_scratch2;
693 uint32_t emc_pmc_scratch3;
694
695 uint32_t emc_pmacro_pad_cfg_ctrl;
696
697 uint32_t emc_pmacro_vttgen_ctrl0;
698 uint32_t emc_pmacro_vttgen_ctrl1;
699 uint32_t emc_pmacro_vttgen_ctrl2;
700
701 uint32_t emc_pmacro_brick_ctrl_rfu1;
702 uint32_t emc_pmacro_cmd_brick_ctrl_fdpd;
703 uint32_t emc_pmacro_brick_ctrl_rfu2;
704 uint32_t emc_pmacro_data_brick_ctrl_fdpd;
705 uint32_t emc_pmacro_bg_bias_ctrl0;
706 uint32_t emc_pmacro_data_pad_rx_ctrl;
707 uint32_t emc_pmacro_cmd_pad_rx_ctrl;
708 uint32_t emc_pmacro_data_rx_term_mode;
709 uint32_t emc_pmacro_cmd_rx_term_mode;
710 uint32_t emc_pmacro_data_pad_tx_ctrl;
711 uint32_t emc_pmacro_common_pad_tx_ctrl;
712 uint32_t emc_pmacro_cmd_pad_tx_ctrl;
713 uint32_t emc_cfg3;
714
715 uint32_t emc_pmacro_tx_pwrd0;
716 uint32_t emc_pmacro_tx_pwrd1;
717 uint32_t emc_pmacro_tx_pwrd2;
718 uint32_t emc_pmacro_tx_pwrd3;
719 uint32_t emc_pmacro_tx_pwrd4;
720 uint32_t emc_pmacro_tx_pwrd5;
721
722 uint32_t emc_config_sample_delay;
723
724 uint32_t emc_pmacro_brick_mapping0;
725 uint32_t emc_pmacro_brick_mapping1;
726 uint32_t emc_pmacro_brick_mapping2;
727
728 uint32_t emc_pmacro_tx_sel_clk_src0;
729 uint32_t emc_pmacro_tx_sel_clk_src1;
730 uint32_t emc_pmacro_tx_sel_clk_src2;
731 uint32_t emc_pmacro_tx_sel_clk_src3;
732 uint32_t emc_pmacro_tx_sel_clk_src4;
733 uint32_t emc_pmacro_tx_sel_clk_src5;
734
735 uint32_t emc_pmacro_ddll_bypass;
736
737 uint32_t emc_pmacro_ddll_pwrd0;
738 uint32_t emc_pmacro_ddll_pwrd1;
739 uint32_t emc_pmacro_ddll_pwrd2;
740
741 uint32_t emc_pmacro_cmd_ctrl0;
742 uint32_t emc_pmacro_cmd_ctrl1;
743 uint32_t emc_pmacro_cmd_ctrl2;
744
745 /* DRAM size information */
746
747 /* Specifies the value for MC_EMEM_ADR_CFG */
748 uint32_t mc_emem_adr_cfg;
749 /* Specifies the value for MC_EMEM_ADR_CFG_DEV0 */
750 uint32_t mc_emem_adr_cfg_dev0;
751 /* Specifies the value for MC_EMEM_ADR_CFG_DEV1 */
752 uint32_t mc_emem_adr_cfg_dev1;
753
754 uint32_t mc_emem_adr_cfg_channel_mask;
755
756 /* Specifies the value for MC_EMEM_BANK_SWIZZLE_CFG0 */
757 uint32_t mc_emem_adr_cfg_bank_mask0;
758 /* Specifies the value for MC_EMEM_BANK_SWIZZLE_CFG1 */
759 uint32_t mc_emem_adr_cfg_bank_mask1;
760 /* Specifies the value for MC_EMEM_BANK_SWIZZLE_CFG2 */
761 uint32_t mc_emem_adr_cfg_bank_mask2;
762
763 /*
764 * Specifies the value for MC_EMEM_CFG which holds the external memory
765 * size (in KBytes)
766 */
767 uint32_t mc_emem_cfg;
768
769 /* MC arbitration configuration */
770
771 /* Specifies the value for MC_EMEM_ARB_CFG */
772 uint32_t mc_emem_arb_cfg;
773 /* Specifies the value for MC_EMEM_ARB_OUTSTANDING_REQ */
774 uint32_t mc_emem_arb_outstanding_req;
775
776 uint32_t emc_emem_arb_refpb_hp_ctrl;
777 uint32_t emc_emem_arb_refpb_bank_ctrl;
778
779 /* Specifies the value for MC_EMEM_ARB_TIMING_RCD */
780 uint32_t mc_emem_arb_timing_rcd;
781 /* Specifies the value for MC_EMEM_ARB_TIMING_RP */
782 uint32_t mc_emem_arb_timing_rp;
783 /* Specifies the value for MC_EMEM_ARB_TIMING_RC */
784 uint32_t mc_emem_arb_timing_rc;
785 /* Specifies the value for MC_EMEM_ARB_TIMING_RAS */
786 uint32_t mc_emem_arb_timing_ras;
787 /* Specifies the value for MC_EMEM_ARB_TIMING_FAW */
788 uint32_t mc_emem_arb_timing_faw;
789 /* Specifies the value for MC_EMEM_ARB_TIMING_RRD */
790 uint32_t mc_emem_arb_timing_rrd;
791 /* Specifies the value for MC_EMEM_ARB_TIMING_RAP2PRE */
792 uint32_t mc_emem_arb_timing_rap2pre;
793 /* Specifies the value for MC_EMEM_ARB_TIMING_WAP2PRE */
794 uint32_t mc_emem_arb_timing_wap2pre;
795 /* Specifies the value for MC_EMEM_ARB_TIMING_R2R */
796 uint32_t mc_emem_arb_timing_r2r;
797 /* Specifies the value for MC_EMEM_ARB_TIMING_W2W */
798 uint32_t mc_emem_arb_timing_w2w;
799 /* Specifies the value for MC_EMEM_ARB_TIMING_R2W */
800 uint32_t mc_emem_arb_timing_r2w;
801 /* Specifies the value for MC_EMEM_ARB_TIMING_W2R */
802 uint32_t mc_emem_arb_timing_w2r;
803
804 uint32_t mc_emem_arb_timing_rfcpb;
805
806 /* Specifies the value for MC_EMEM_ARB_DA_TURNS */
807 uint32_t mc_emem_arb_da_turns;
808 /* Specifies the value for MC_EMEM_ARB_DA_COVERS */
809 uint32_t mc_emem_arb_da_covers;
810 /* Specifies the value for MC_EMEM_ARB_MISC0 */
811 uint32_t mc_emem_arb_misc0;
812 /* Specifies the value for MC_EMEM_ARB_MISC1 */
813 uint32_t mc_emem_arb_misc1;
814 uint32_t mc_emem_arb_misc2;
815
816 /* Specifies the value for MC_EMEM_ARB_RING1_THROTTLE */
817 uint32_t mc_emem_arb_ring1_throttle;
818 /* Specifies the value for MC_EMEM_ARB_OVERRIDE */
819 uint32_t mc_emem_arb_override;
820 /* Specifies the value for MC_EMEM_ARB_OVERRIDE_1 */
821 uint32_t mc_emem_arb_override1;
822 /* Specifies the value for MC_EMEM_ARB_RSV */
823 uint32_t mc_emem_arb_rsv;
824
825 uint32_t mc_da_cfg0;
826 uint32_t mc_emem_arb_timing_ccdmw;
827
828 /* Specifies the value for MC_CLKEN_OVERRIDE */
829 uint32_t mc_clken_override;
830
831 /* Specifies the value for MC_STAT_CONTROL */
832 uint32_t mc_stat_control;
833 /* Specifies the value for MC_VIDEO_PROTECT_BOM */
834 uint32_t mc_video_protect_bom;
835 /* Specifies the value for MC_VIDEO_PROTECT_BOM_ADR_HI */
836 uint32_t mc_video_protect_bom_adr_hi;
837 /* Specifies the value for MC_VIDEO_PROTECT_SIZE_MB */
838 uint32_t mc_video_protect_size_mb;
839 /* Specifies the value for MC_VIDEO_PROTECT_VPR_OVERRIDE */
840 uint32_t mc_video_protect_vpr_override;
841 /* Specifies the value for MC_VIDEO_PROTECT_VPR_OVERRIDE1 */
842 uint32_t mc_video_protect_vpr_override1;
843 /* Specifies the value for MC_VIDEO_PROTECT_GPU_OVERRIDE_0 */
844 uint32_t mc_video_protect_gpu_override0;
845 /* Specifies the value for MC_VIDEO_PROTECT_GPU_OVERRIDE_1 */
846 uint32_t mc_video_protect_gpu_override1;
847 /* Specifies the value for MC_SEC_CARVEOUT_BOM */
848 uint32_t mc_sec_carveout_bom;
849 /* Specifies the value for MC_SEC_CARVEOUT_ADR_HI */
850 uint32_t mc_sec_carveout_adr_hi;
851 /* Specifies the value for MC_SEC_CARVEOUT_SIZE_MB */
852 uint32_t mc_sec_carveout_size_mb;
853 /* Specifies the value for MC_VIDEO_PROTECT_REG_CTRL.VIDEO_PROTECT_WRITE_ACCESS */
854 uint32_t mc_video_protect_write_access;
855 /* Specifies the value for MC_SEC_CARVEOUT_REG_CTRL.SEC_CARVEOUT_WRITE_ACCESS */
856 uint32_t mc_sec_carveout_protect_write_access;
857
858 uint32_t mc_generalized_carveout1_bom;
859 uint32_t mc_generalized_carveout1_bom_hi;
860 uint32_t mc_generalized_carveout1_size_128kb;
861 uint32_t mc_generalized_carveout1_access0;
862 uint32_t mc_generalized_carveout1_access1;
863 uint32_t mc_generalized_carveout1_access2;
864 uint32_t mc_generalized_carveout1_access3;
865 uint32_t mc_generalized_carveout1_access4;
866 uint32_t mc_generalized_carveout1_force_internal_access0;
867 uint32_t mc_generalized_carveout1_force_internal_access1;
868 uint32_t mc_generalized_carveout1_force_internal_access2;
869 uint32_t mc_generalized_carveout1_force_internal_access3;
870 uint32_t mc_generalized_carveout1_force_internal_access4;
871 uint32_t mc_generalized_carveout1_cfg0;
872
873 uint32_t mc_generalized_carveout2_bom;
874 uint32_t mc_generalized_carveout2_bom_hi;
875 uint32_t mc_generalized_carveout2_size_128kb;
876 uint32_t mc_generalized_carveout2_access0;
877 uint32_t mc_generalized_carveout2_access1;
878 uint32_t mc_generalized_carveout2_access2;
879 uint32_t mc_generalized_carveout2_access3;
880 uint32_t mc_generalized_carveout2_access4;
881 uint32_t mc_generalized_carveout2_force_internal_access0;
882 uint32_t mc_generalized_carveout2_force_internal_access1;
883 uint32_t mc_generalized_carveout2_force_internal_access2;
884 uint32_t mc_generalized_carveout2_force_internal_access3;
885 uint32_t mc_generalized_carveout2_force_internal_access4;
886 uint32_t mc_generalized_carveout2_cfg0;
887
888 uint32_t mc_generalized_carveout3_bom;
889 uint32_t mc_generalized_carveout3_bom_hi;
890 uint32_t mc_generalized_carveout3_size_128kb;
891 uint32_t mc_generalized_carveout3_access0;
892 uint32_t mc_generalized_carveout3_access1;
893 uint32_t mc_generalized_carveout3_access2;
894 uint32_t mc_generalized_carveout3_access3;
895 uint32_t mc_generalized_carveout3_access4;
896 uint32_t mc_generalized_carveout3_force_internal_access0;
897 uint32_t mc_generalized_carveout3_force_internal_access1;
898 uint32_t mc_generalized_carveout3_force_internal_access2;
899 uint32_t mc_generalized_carveout3_force_internal_access3;
900 uint32_t mc_generalized_carveout3_force_internal_access4;
901 uint32_t mc_generalized_carveout3_cfg0;
902
903 uint32_t mc_generalized_carveout4_bom;
904 uint32_t mc_generalized_carveout4_bom_hi;
905 uint32_t mc_generalized_carveout4_size_128kb;
906 uint32_t mc_generalized_carveout4_access0;
907 uint32_t mc_generalized_carveout4_access1;
908 uint32_t mc_generalized_carveout4_access2;
909 uint32_t mc_generalized_carveout4_access3;
910 uint32_t mc_generalized_carveout4_access4;
911 uint32_t mc_generalized_carveout4_force_internal_access0;
912 uint32_t mc_generalized_carveout4_force_internal_access1;
913 uint32_t mc_generalized_carveout4_force_internal_access2;
914 uint32_t mc_generalized_carveout4_force_internal_access3;
915 uint32_t mc_generalized_carveout4_force_internal_access4;
916 uint32_t mc_generalized_carveout4_cfg0;
917
918 uint32_t mc_generalized_carveout5_bom;
919 uint32_t mc_generalized_carveout5_bom_hi;
920 uint32_t mc_generalized_carveout5_size_128kb;
921 uint32_t mc_generalized_carveout5_access0;
922 uint32_t mc_generalized_carveout5_access1;
923 uint32_t mc_generalized_carveout5_access2;
924 uint32_t mc_generalized_carveout5_access3;
925 uint32_t mc_generalized_carveout5_access4;
926 uint32_t mc_generalized_carveout5_force_internal_access0;
927 uint32_t mc_generalized_carveout5_force_internal_access1;
928 uint32_t mc_generalized_carveout5_force_internal_access2;
929 uint32_t mc_generalized_carveout5_force_internal_access3;
930 uint32_t mc_generalized_carveout5_force_internal_access4;
931 uint32_t mc_generalized_carveout5_cfg0;
932
933 /* Specifies enable for CA training */
934 uint32_t emc_ca_training_enable;
935 /* Set if bit 6 select is greater than bit 7 select; uses aremc.spec packet SWIZZLE_BIT6_GT_BIT7 */
936 uint32_t swizzle_rank_byte_encode;
937 /* Specifies enable and offset for patched boot rom write */
938 uint32_t boot_rom_patch_control;
939 /* Specifies data for patched boot rom write */
940 uint32_t boot_rom_patch_data;
941
942 /* Specifies the value for MC_MTS_CARVEOUT_BOM */
943 uint32_t mc_mts_carveout_bom;
944 /* Specifies the value for MC_MTS_CARVEOUT_ADR_HI */
945 uint32_t mc_mts_carveout_adr_hi;
946 /* Specifies the value for MC_MTS_CARVEOUT_SIZE_MB */
947 uint32_t mc_mts_carveout_size_mb;
948 /* Specifies the value for MC_MTS_CARVEOUT_REG_CTRL */
949 uint32_t mc_mts_carveout_reg_ctrl;
950 /* End of generated code by warmboot_code_gen */
951
952 } nvboot_sdram_params;
953 #endif /* #ifndef INCLUDED_NVBOOT_SDRAM_PARAM_T210_H */