Debian Codegraph @

util/nvidia/cbootimage/src/t114/nvboot_sdram_param_t114.h

raw symbols SCIP
1 /*
2 * Copyright (c) 2012, 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_T114_H
27 #define INCLUDED_NVBOOT_SDRAM_PARAM_T114_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 /* Defines EMC_2X_CLK_SRC, EMC_2X_CLK_DIVISOR, EMC_INVERT_DCD */
88 uint32_t emc_clock_source;
89
90 /* Auto-calibration of EMC pads */
91
92 /* Specifies the value for EMC_AUTO_CAL_INTERVAL */
93 uint32_t emc_auto_cal_interval;
94 /*
95 * Specifies the value for EMC_AUTO_CAL_CONFIG
96 * Note: Trigger bits are set by the SDRAM code.
97 */
98 uint32_t emc_auto_cal_config;
99
100 /* Specifies the value for EMC_AUTO_CAL_CONFIG2 */
101 uint32_t emc_auto_cal_config2;
102
103 /* Specifies the value for EMC_AUTO_CAL_CONFIG3 */
104 uint32_t emc_auto_cal_config3;
105
106 /*
107 * Specifies the time for the calibration
108 * to stabilize (in microseconds)
109 */
110 uint32_t emc_auto_cal_wait;
111
112 /*
113 * DRAM size information
114 * Specifies the value for EMC_ADR_CFG
115 */
116 uint32_t emc_adr_cfg;
117
118 /*
119 * Specifies the time to wait after asserting pin
120 * CKE (in microseconds)
121 */
122 uint32_t emc_pin_program_wait;
123 /* Specifies the extra delay before/after pin RESET/CKE command */
124 uint32_t emc_pin_extra_wait;
125 /*
126 * Specifies the extra delay after the first writing
127 * of EMC_TIMING_CONTROL
128 */
129 uint32_t emc_timing_control_wait;
130
131 /* Timing parameters required for the SDRAM */
132
133 /* Specifies the value for EMC_RC */
134 uint32_t emc_rc;
135 /* Specifies the value for EMC_RFC */
136 uint32_t emc_rfc;
137 /* Specifies the value for EMC_RFC_SLR */
138 uint32_t emc_rfc_slr;
139 /* Specifies the value for EMC_RAS */
140 uint32_t emc_ras;
141 /* Specifies the value for EMC_RP */
142 uint32_t emc_rp;
143 /* Specifies the value for EMC_R2R */
144 uint32_t emc_r2r;
145 /* Specifies the value for EMC_W2W */
146 uint32_t emc_w2w;
147 /* Specifies the value for EMC_R2W */
148 uint32_t emc_r2w;
149 /* Specifies the value for EMC_R2W */
150 uint32_t emc_w2r;
151 /* Specifies the value for EMC_R2P */
152 uint32_t emc_r2p;
153 /* Specifies the value for EMC_W2P */
154 uint32_t emc_w2p;
155 /* Specifies the value for EMC_RD_RCD */
156 uint32_t emc_rd_rcd;
157 /* Specifies the value for EMC_WR_RCD */
158 uint32_t emc_wr_rcd;
159 /* Specifies the value for EMC_RRD */
160 uint32_t emc_rrd;
161 /* Specifies the value for EMC_REXT */
162 uint32_t emc_rext;
163 /* Specifies the value for EMC_WEXT */
164 uint32_t emc_wext;
165 /* Specifies the value for EMC_WDV */
166 uint32_t emc_wdv;
167 /* Specifies the value for EMC_WDV_MASK */
168 uint32_t emc_wdv_mask;
169 /* Specifies the value for EMC_QUSE */
170 uint32_t emc_quse;
171 /* Specifies the value for EMC_IBDLY */
172 uint32_t emc_ibdly;
173 /* Specifies the value for EMC_EINPUT */
174 uint32_t emc_einput;
175 /* Specifies the value for EMC_EINPUT_DURATION */
176 uint32_t emc_einput_duration;
177 /* Specifies the value for EMC_PUTERM_EXTRA */
178 uint32_t emc_puterm_extra;
179 /* Specifies the value for EMC_CDB_CNTL_1 */
180 uint32_t emc_cdb_cntl1;
181 /* Specifies the value for EMC_CDB_CNTL_2 */
182 uint32_t emc_cdb_cntl2;
183 /* Specifies the value for EMC_QRST */
184 uint32_t emc_qrst;
185 /* Specifies the value for EMC_QSAFE */
186 uint32_t emc_qsafe;
187 /* Specifies the value for EMC_RDV */
188 uint32_t emc_rdv;
189 /* Specifies the value for EMC_RDV_MASK */
190 uint32_t emc_rdv_mask;
191 /* Specifies the value for EMC_CTT */
192 uint32_t emc_ctt;
193 /* Specifies the value for EMC_CTT_DURATION */
194 uint32_t emc_ctt_duration;
195 /* Specifies the value for EMC_REFRESH */
196 uint32_t emc_refresh;
197 /* Specifies the value for EMC_BURST_REFRESH_NUM */
198 uint32_t emc_burst_refresh_num;
199 /* Specifies the value for EMC_PRE_REFRESH_REQ_CNT */
200 uint32_t emc_prerefresh_req_cnt;
201 /* Specifies the value for EMC_PDEX2WR */
202 uint32_t emc_pdex2wr;
203 /* Specifies the value for EMC_PDEX2RD */
204 uint32_t emc_pdex2rd;
205 /* Specifies the value for EMC_PCHG2PDEN */
206 uint32_t emc_pchg2pden;
207 /* Specifies the value for EMC_ACT2PDEN */
208 uint32_t emc_act2pden;
209 /* Specifies the value for EMC_AR2PDEN */
210 uint32_t emc_ar2pden;
211 /* Specifies the value for EMC_RW2PDEN */
212 uint32_t emc_rw2pden;
213 /* Specifies the value for EMC_TXSR */
214 uint32_t emc_txsr;
215 /* Specifies the value for EMC_TXSRDLL */
216 uint32_t emc_txsr_dll;
217 /* Specifies the value for EMC_TCKE */
218 uint32_t emc_tcke;
219 /* Specifies the value for EMC_TCKESR */
220 uint32_t emc_tckesr;
221 /* Specifies the value for EMC_TPD */
222 uint32_t emc_tpd;
223 /* Specifies the value for EMC_TFAW */
224 uint32_t emc_tfaw;
225 /* Specifies the value for EMC_TRPAB */
226 uint32_t emc_trpab;
227 /* Specifies the value for EMC_TCLKSTABLE */
228 uint32_t emc_tclkstable;
229 /* Specifies the value for EMC_TCLKSTOP */
230 uint32_t emc_tclkstop;
231 /* Specifies the value for EMC_TREFBW */
232 uint32_t emc_trefbw;
233 /* Specifies the value for EMC_QUSE_EXTRA */
234 uint32_t emc_quse_extra;
235
236 /* FBIO configuration values */
237
238 /* Specifies the value for EMC_FBIO_CFG5 */
239 uint32_t emc_fbio_cfg5;
240 /* Specifies the value for EMC_FBIO_CFG6 */
241 uint32_t emc_fbio_cfg6;
242 /* Specifies the value for EMC_FBIO_SPARE */
243 uint32_t emc_fbio_spare;
244
245 /* Specifies the value for EMC_CFG_RSV */
246 uint32_t emc_cfg_rsv;
247
248 /* MRS command values */
249
250 /* Specifies the value for EMC_MRS */
251 uint32_t emc_mrs;
252 /* Specifies the MP0 command to initialize mode registers */
253 uint32_t emc_emrs;
254 /* Specifies the MP2 command to initialize mode registers */
255 uint32_t emc_emrs2;
256 /* Specifies the MP3 command to initialize mode registers */
257 uint32_t emc_emrs3;
258 /* Specifies the programming to LPDDR2 Mode Register 1 at cold boot */
259 uint32_t emc_mrw1;
260 /* Specifies the programming to LPDDR2 Mode Register 2 at cold boot */
261 uint32_t emc_mrw2;
262 /* Specifies the programming to LPDDR2 Mode Register 3 at cold boot */
263 uint32_t emc_mrw3;
264 /* Specifies the programming to LPDDR2 Mode Register 11 at cold boot */
265 uint32_t emc_mrw4;
266 /*
267 * Specifies the programming to extra LPDDR2 Mode Register
268 * at cold boot
269 */
270 uint32_t emc_mrw_extra;
271 /*
272 * Specifies the programming to extra LPDDR2 Mode Register
273 * at warm boot
274 */
275 uint32_t emc_warm_boot_mrw_extra;
276 /*
277 * Specify the enable of extra Mode Register programming at
278 * warm boot
279 */
280 uint32_t emc_warm_boot_extramode_reg_write_enable;
281 /*
282 * Specify the enable of extra Mode Register programming at
283 * cold boot
284 */
285 uint32_t emc_extramode_reg_write_enable;
286
287 /* Specifies the EMC_MRW reset command value */
288 uint32_t emc_mrw_reset_command;
289 /* Specifies the EMC Reset wait time (in microseconds) */
290 uint32_t emc_mrw_reset_ninit_wait;
291 /* Specifies the value for EMC_MRS_WAIT_CNT */
292 uint32_t emc_mrs_wait_cnt;
293 /* Specifies the value for EMC_MRS_WAIT_CNT2 */
294 uint32_t emc_mrs_wait_cnt2;
295
296 /* EMC miscellaneous configurations */
297
298 /* Specifies the value for EMC_CFG */
299 uint32_t emc_cfg;
300 /* Specifies the value for EMC_CFG_2 */
301 uint32_t emc_cfg2;
302 /* Specifies the value for EMC_DBG */
303 uint32_t emc_dbg;
304 /* Specifies the value for EMC_CMDQ */
305 uint32_t emc_cmd_q;
306 /* Specifies the value for EMC_MC2EMCQ */
307 uint32_t emc_mc2emc_q;
308 /* Specifies the value for EMC_DYN_SELF_REF_CONTROL */
309 uint32_t emc_dyn_self_ref_control;
310
311 /* Specifies the value for MEM_INIT_DONE */
312 uint32_t ahb_arbitration_xbar_ctrl_meminit_done;
313
314 /* Specifies the value for EMC_CFG_DIG_DLL */
315 uint32_t emc_cfg_dig_dll;
316 /* Specifies the value for EMC_CFG_DIG_DLL_PERIOD */
317 uint32_t emc_cfg_dig_dll_period;
318 /* Specifies the value of *DEV_SELECTN of various EMC registers */
319 uint32_t emc_dev_select;
320
321 /* Specifies the value for EMC_SEL_DPD_CTRL */
322 uint32_t emc_sel_dpd_ctrl;
323
324 /* Pads trimmer delays */
325
326 /* Specifies the value for EMC_DLL_XFORM_DQS0 */
327 uint32_t emc_dll_xform_dqs0;
328 /* Specifies the value for EMC_DLL_XFORM_DQS1 */
329 uint32_t emc_dll_xform_dqs1;
330 /* Specifies the value for EMC_DLL_XFORM_DQS2 */
331 uint32_t emc_dll_xform_dqs2;
332 /* Specifies the value for EMC_DLL_XFORM_DQS3 */
333 uint32_t emc_dll_xform_dqs3;
334 /* Specifies the value for EMC_DLL_XFORM_DQS4 */
335 uint32_t emc_dll_xform_dqs4;
336 /* Specifies the value for EMC_DLL_XFORM_DQS5 */
337 uint32_t emc_dll_xform_dqs5;
338 /* Specifies the value for EMC_DLL_XFORM_DQS6 */
339 uint32_t emc_dll_xform_dqs6;
340 /* Specifies the value for EMC_DLL_XFORM_DQS7 */
341 uint32_t emc_dll_xform_dqs7;
342 /* Specifies the value for EMC_DLL_XFORM_QUSE0 */
343 uint32_t emc_dll_xform_quse0;
344 /* Specifies the value for EMC_DLL_XFORM_QUSE1 */
345 uint32_t emc_dll_xform_quse1;
346 /* Specifies the value for EMC_DLL_XFORM_QUSE2 */
347 uint32_t emc_dll_xform_quse2;
348 /* Specifies the value for EMC_DLL_XFORM_QUSE3 */
349 uint32_t emc_dll_xform_quse3;
350 /* Specifies the value for EMC_DLL_XFORM_QUSE4 */
351 uint32_t emc_dll_xform_quse4;
352 /* Specifies the value for EMC_DLL_XFORM_QUSE5 */
353 uint32_t emc_dll_xform_quse5;
354 /* Specifies the value for EMC_DLL_XFORM_QUSE6 */
355 uint32_t emc_dll_xform_quse6;
356 /* Specifies the value for EMC_DLL_XFORM_QUSE7 */
357 uint32_t emc_dll_xform_quse7;
358 /* Specifies the value for EMC_DLL_XFORM_ADDR0 */
359 uint32_t emc_dll_xform_addr0;
360 /* Specifies the value for EMC_DLL_XFORM_ADDR1 */
361 uint32_t emc_dll_xform_addr1;
362 /* Specifies the value for EMC_DLL_XFORM_ADDR2 */
363 uint32_t emc_dll_xform_addr2;
364 /* Specifies the value for EMC_DLI_TRIM_TXDQS0 */
365 uint32_t emc_dli_trim_tx_dqs0;
366 /* Specifies the value for EMC_DLI_TRIM_TXDQS1 */
367 uint32_t emc_dli_trim_tx_dqs1;
368 /* Specifies the value for EMC_DLI_TRIM_TXDQS2 */
369 uint32_t emc_dli_trim_tx_dqs2;
370 /* Specifies the value for EMC_DLI_TRIM_TXDQS3 */
371 uint32_t emc_dli_trim_tx_dqs3;
372 /* Specifies the value for EMC_DLI_TRIM_TXDQS4 */
373 uint32_t emc_dli_trim_tx_dqs4;
374 /* Specifies the value for EMC_DLI_TRIM_TXDQS5 */
375 uint32_t emc_dli_trim_tx_dqs5;
376 /* Specifies the value for EMC_DLI_TRIM_TXDQS6 */
377 uint32_t emc_dli_trim_tx_dqs6;
378 /* Specifies the value for EMC_DLI_TRIM_TXDQS7 */
379 uint32_t emc_dli_trim_tx_dqs7;
380 /* Specifies the value for EMC_DLL_XFORM_DQ0 */
381 uint32_t emc_dll_xform_dq0;
382 /* Specifies the value for EMC_DLL_XFORM_DQ1 */
383 uint32_t emc_dll_xform_dq1;
384 /* Specifies the value for EMC_DLL_XFORM_DQ2 */
385 uint32_t emc_dll_xform_dq2;
386 /* Specifies the value for EMC_DLL_XFORM_DQ3 */
387 uint32_t emc_dll_xform_dq3;
388
389 /*
390 * Specifies the delay after asserting CKE pin during a WarmBoot0
391 * sequence (in microseconds)
392 */
393 uint32_t warm_boot_wait;
394
395 /* Specifies the value for EMC_CTT_TERM_CTRL */
396 uint32_t emc_ctt_term_ctrl;
397
398 /* Specifies the value for EMC_ODT_WRITE */
399 uint32_t emc_odt_write;
400 /* Specifies the value for EMC_ODT_WRITE */
401 uint32_t emc_odt_read;
402
403 /* Periodic ZQ calibration */
404
405 /*
406 * Specifies the value for EMC_ZCAL_INTERVAL
407 * Value 0 disables ZQ calibration
408 */
409 uint32_t emc_zcal_interval;
410 /* Specifies the value for EMC_ZCAL_WAIT_CNT */
411 uint32_t emc_zcal_wait_cnt;
412 /* Specifies the value for EMC_ZCAL_MRW_CMD */
413 uint32_t emc_zcal_mrw_cmd;
414
415 /* DRAM initialization sequence flow control */
416
417 /* Specifies the MRS command value for resetting DLL */
418 uint32_t emc_mrs_reset_dll;
419 /* Specifies the command for ZQ initialization of device 0 */
420 uint32_t emc_zcal_init_dev0;
421 /* Specifies the command for ZQ initialization of device 1 */
422 uint32_t emc_zcal_init_dev1;
423 /*
424 * Specifies the wait time after programming a ZQ initialization
425 * command (in microseconds)
426 */
427 uint32_t emc_zcal_init_wait;
428 /* Specifies the enable for ZQ calibration at cold boot */
429 uint32_t emc_zcal_warm_cold_boot_enables;
430
431 /*
432 * Specifies the MRW command to LPDDR2 for ZQ calibration
433 * on warmboot
434 */
435 /* Is issued to both devices separately */
436 uint32_t emc_mrw_lpddr2zcal_warm_boot;
437 /*
438 * Specifies the ZQ command to DDR3 for ZQ calibration on warmboot
439 * Is issued to both devices separately
440 */
441 uint32_t emc_zqcal_ddr3_warm_boot;
442 /*
443 * Specifies the wait time for ZQ calibration on warmboot
444 * (in microseconds)
445 */
446 uint32_t emc_zcal_warm_boot_wait;
447 /*
448 * Specifies the enable for DRAM Mode Register programming
449 * at warm boot
450 */
451 uint32_t emc_mrs_warm_boot_enable;
452 /*
453 * Specifies the wait time after sending an MRS DLL reset command
454 * in microseconds)
455 */
456 uint32_t emc_mrs_reset_dll_wait;
457 /* Specifies the extra MRS command to initialize mode registers */
458 uint32_t emc_mrs_extra;
459 /* Specifies the extra MRS command at warm boot */
460 uint32_t emc_warm_boot_mrs_extra;
461 /* Specifies the EMRS command to enable the DDR2 DLL */
462 uint32_t emc_emrs_ddr2_dll_enable;
463 /* Specifies the MRS command to reset the DDR2 DLL */
464 uint32_t emc_mrs_ddr2_dll_reset;
465 /* Specifies the EMRS command to set OCD calibration */
466 uint32_t emc_emrs_ddr2_ocd_calib;
467 /*
468 * Specifies the wait between initializing DDR and setting OCD
469 * calibration (in microseconds)
470 */
471 uint32_t emc_ddr2_wait;
472 /* Specifies the value for EMC_CLKEN_OVERRIDE */
473 uint32_t emc_clken_override;
474 /*
475 * Specifies LOG2 of the extra refresh numbers after booting
476 * Program 0 to disable
477 */
478 uint32_t emc_extra_refresh_num;
479 /* Specifies the master override for all EMC clocks */
480 uint32_t emc_clken_override_allwarm_boot;
481 /* Specifies the master override for all MC clocks */
482 uint32_t mc_clken_override_allwarm_boot;
483 /* Specifies digital dll period, choosing between 4 to 64 ms */
484 uint32_t emc_cfg_dig_dll_period_warm_boot;
485
486 /* Pad controls */
487
488 /* Specifies the value for PMC_VDDP_SEL */
489 uint32_t pmc_vddp_sel;
490 /* Specifies the value for PMC_DDR_PWR */
491 uint32_t pmc_ddr_pwr;
492 /* Specifies the value for PMC_DDR_CFG */
493 uint32_t pmc_ddr_cfg;
494 /* Specifies the value for PMC_IO_DPD_REQ */
495 uint32_t pmc_io_dpd_req;
496 /* Specifies the value for PMC_IO_DPD2_REQ */
497 uint32_t pmc_io_dpd2_req;
498 /* Specifies the value for PMC_REG_SHORT */
499 uint32_t pmc_reg_short;
500 /* Specifies the value for PMC_E_NO_VTTGEN */
501 uint32_t pmc_eno_vtt_gen;
502 /* Specifies the value for PMC_NO_IOPOWER */
503 uint32_t pmc_no_io_power;
504 /* Specifies the value for EMC_XM2CMDPADCTRL */
505 uint32_t emc_xm2cmd_pad_ctrl;
506 /* Specifies the value for EMC_XM2CMDPADCTRL2 */
507 uint32_t emc_xm2cmd_pad_ctrl2;
508 /* Specifies the value for EMC_XM2CMDPADCTRL3 */
509 uint32_t emc_xm2cmd_pad_ctrl3;
510 /* Specifies the value for EMC_XM2CMDPADCTRL4 */
511 uint32_t emc_xm2cmd_pad_ctrl4;
512 /* Specifies the value for EMC_XM2DQSPADCTRL */
513 uint32_t emc_xm2dqs_pad_ctrl;
514 /* Specifies the value for EMC_XM2DQSPADCTRL2 */
515 uint32_t emc_xm2dqs_pad_ctrl2;
516 /* Specifies the value for EMC_XM2DQSPADCTRL3 */
517 uint32_t emc_xm2dqs_pad_ctrl3;
518 /* Specifies the value for EMC_XM2DQSPADCTRL4 */
519 uint32_t emc_xm2dqs_pad_ctrl4;
520 /* Specifies the value for EMC_XM2DQPADCTRL */
521 uint32_t emc_xm2dq_pad_ctrl;
522 /* Specifies the value for EMC_XM2DQPADCTRL2 */
523 uint32_t emc_xm2dq_pad_ctrl2;
524 /* Specifies the value for EMC_XM2CLKPADCTRL */
525 uint32_t emc_xm2clk_pad_ctrl;
526 /* Specifies the value for EMC_XM2CLKPADCTRL2 */
527 uint32_t emc_xm2clk_pad_ctrl2;
528 /* Specifies the value for EMC_XM2COMPPADCTRL */
529 uint32_t emc_xm2comp_pad_ctrl;
530 /* Specifies the value for EMC_XM2VTTGENPADCTRL */
531 uint32_t emc_xm2vttgen_pad_ctrl;
532 /* Specifies the value for EMC_XM2VTTGENPADCTRL2 */
533 uint32_t emc_xm2vttgen_pad_ctrl2;
534 /* Specifies the value for EMC_ACPD_CONTROL */
535 uint32_t emc_acpd_control;
536
537 /* Specifies the value for EMC_SWIZZLE_RANK0_BYTE_CFG */
538 uint32_t emc_swizzle_rank0_byte_cfg;
539 /* Specifies the value for EMC_SWIZZLE_RANK0_BYTE0 */
540 uint32_t emc_swizzle_rank0_byte0;
541 /* Specifies the value for EMC_SWIZZLE_RANK0_BYTE1 */
542 uint32_t emc_swizzle_rank0_byte1;
543 /* Specifies the value for EMC_SWIZZLE_RANK0_BYTE2 */
544 uint32_t emc_swizzle_rank0_byte2;
545 /* Specifies the value for EMC_SWIZZLE_RANK0_BYTE3 */
546 uint32_t emc_swizzle_rank0_byte3;
547 /* Specifies the value for EMC_SWIZZLE_RANK1_BYTE_CFG */
548 uint32_t emc_swizzle_rank1_byte_cfg;
549 /* Specifies the value for EMC_SWIZZLE_RANK1_BYTE0 */
550 uint32_t emc_swizzle_rank1_byte0;
551 /* Specifies the value for EMC_SWIZZLE_RANK1_BYTE1 */
552 uint32_t emc_swizzle_rank1_byte1;
553 /* Specifies the value for EMC_SWIZZLE_RANK1_BYTE2 */
554 uint32_t emc_swizzle_rank1_byte2;
555 /* Specifies the value for EMC_SWIZZLE_RANK1_BYTE3 */
556 uint32_t emc_swizzle_rank1_byte3;
557 /* Specifies the value for EMC_ADDR_SWIZZLE_STACK1A */
558 uint32_t emc_addr_swizzle_stack1a;
559 /* Specifies the value for EMC_ADDR_SWIZZLE_STACK1B */
560 uint32_t emc_addr_swizzle_stack1b;
561 /* Specifies the value for EMC_ADDR_SWIZZLE_STACK2A */
562 uint32_t emc_addr_swizzle_stack2a;
563 /* Specifies the value for EMC_ADDR_SWIZZLE_STACK2B */
564 uint32_t emc_addr_swizzle_stack2b;
565 /* Specifies the value for EMC_ADDR_SWIZZLE_STACK3 */
566 uint32_t emc_addr_swizzle_stack3;
567
568 /* Specifies the value for EMC_DSR_VTTGEN_DRV */
569 uint32_t emc_dsr_vttgen_drv;
570
571 /* Specifies the value for EMC_TXDSRVTTGEN */
572 uint32_t emc_txdsrvttgen;
573
574 /* DRAM size information */
575
576 /* Specifies the value for MC_EMEM_ADR_CFG */
577 uint32_t mc_emem_adr_cfg;
578 /* Specifies the value for MC_EMEM_ADR_CFG_DEV0 */
579 uint32_t mc_emem_adr_cfg_dev0;
580 /* Specifies the value for MC_EMEM_ADR_CFG_DEV1 */
581 uint32_t mc_emem_adr_cfg_dev1;
582 /* Specifies the value for MC_EMEM_ADR_CFG_CHANNEL_MASK */
583 uint32_t mc_emem_adr_cfg_channel_mask;
584 /* Specifies the value for MC_EMEM_ADR_CFG_CHANNEL_MASK_PROPAGATION_COUNT */
585 uint32_t mc_emem_adr_cfg_channel_mask_propagation_count;
586 /* Specifies the value for MC_EMEM_ADR_CFG_BANK_MASK_0 */
587 uint32_t mc_emem_adr_cfg_bank_mask0;
588 /* Specifies the value for MC_EMEM_ADR_CFG_BANK_MASK_1 */
589 uint32_t mc_emem_adr_cfg_bank_mask1;
590 /* Specifies the value for MC_EMEM_ADR_CFG_BANK_MASK_2 */
591 uint32_t mc_emem_adr_cfg_bank_mask2;
592
593 /*
594 * Specifies the value for MC_EMEM_CFG which holds the external memory
595 * size (in KBytes)
596 */
597 uint32_t mc_emem_cfg;
598
599 /* MC arbitration configuration */
600
601 /* Specifies the value for MC_EMEM_ARB_CFG */
602 uint32_t mc_emem_arb_cfg;
603 /* Specifies the value for MC_EMEM_ARB_OUTSTANDING_REQ */
604 uint32_t mc_emem_arb_outstanding_req;
605 /* Specifies the value for MC_EMEM_ARB_TIMING_RCD */
606 uint32_t mc_emem_arb_timing_rcd;
607 /* Specifies the value for MC_EMEM_ARB_TIMING_RP */
608 uint32_t mc_emem_arb_timing_rp;
609 /* Specifies the value for MC_EMEM_ARB_TIMING_RC */
610 uint32_t mc_emem_arb_timing_rc;
611 /* Specifies the value for MC_EMEM_ARB_TIMING_RAS */
612 uint32_t mc_emem_arb_timing_ras;
613 /* Specifies the value for MC_EMEM_ARB_TIMING_FAW */
614 uint32_t mc_emem_arb_timing_faw;
615 /* Specifies the value for MC_EMEM_ARB_TIMING_RRD */
616 uint32_t mc_emem_arb_timing_rrd;
617 /* Specifies the value for MC_EMEM_ARB_TIMING_RAP2PRE */
618 uint32_t mc_emem_arb_timing_rap2pre;
619 /* Specifies the value for MC_EMEM_ARB_TIMING_WAP2PRE */
620 uint32_t mc_emem_arb_timing_wap2pre;
621 /* Specifies the value for MC_EMEM_ARB_TIMING_R2R */
622 uint32_t mc_emem_arb_timing_r2r;
623 /* Specifies the value for MC_EMEM_ARB_TIMING_W2W */
624 uint32_t mc_emem_arb_timing_w2w;
625 /* Specifies the value for MC_EMEM_ARB_TIMING_R2W */
626 uint32_t mc_emem_arb_timing_r2w;
627 /* Specifies the value for MC_EMEM_ARB_TIMING_W2R */
628 uint32_t mc_emem_arb_timing_w2r;
629 /* Specifies the value for MC_EMEM_ARB_DA_TURNS */
630 uint32_t mc_emem_arb_da_turns;
631 /* Specifies the value for MC_EMEM_ARB_DA_COVERS */
632 uint32_t mc_emem_arb_da_covers;
633 /* Specifies the value for MC_EMEM_ARB_MISC0 */
634 uint32_t mc_emem_arb_misc0;
635 /* Specifies the value for MC_EMEM_ARB_MISC1 */
636 uint32_t mc_emem_arb_misc1;
637 /* Specifies the value for MC_EMEM_ARB_RING1_THROTTLE */
638 uint32_t mc_emem_arb_ring1_throttle;
639 /* Specifies the value for MC_EMEM_ARB_OVERRIDE */
640 uint32_t mc_emem_arb_override;
641 /* Specifies the value for MC_EMEM_ARB_RSV */
642 uint32_t mc_emem_arb_rsv;
643
644 /* Specifies the value for MC_CLKEN_OVERRIDE */
645 uint32_t mc_clken_override;
646
647 /* Specifies the MC/EMC register address aperture */
648 uint32_t mc_emc_reg_mode;
649 /* Specifies the value for MC_VIDEO_PROTECT_BOM */
650 uint32_t mc_video_protect_bom;
651 /* Specifies the value for MC_VIDEO_PROTECT_SIZE_MB */
652 uint32_t mc_video_protect_size_mb;
653 /* Specifies the value for MC_VIDEO_PROTECT_VPR_OVERRIDE */
654 uint32_t mc_video_protect_vpr_override;
655 /* Specifies the value for MC_SEC_CARVEOUT_BOM */
656 uint32_t mc_sec_carveout_bom;
657 /* Specifies the value for MC_SEC_CARVEOUT_SIZE_MB */
658 uint32_t mc_sec_carveout_size_mb;
659 /* Specifies the value for MC_VIDEO_PROTECT_REG_CTRL.VIDEO_PROTECT_WRITE_ACCESS */
660 uint32_t mc_video_protect_write_access;
661 /* Specifies the value for MC_SEC_CARVEOUT_REG_CTRL.SEC_CARVEOUT_WRITE_ACCESS */
662 uint32_t mc_sec_carveout_protect_write_access;
663
664 /* Specifies enable for CA training */
665 uint32_t emc_ca_training_enable;
666 /* Specifies the value for EMC_CA_TRAINING_TIMING_CNTRL1 */
667 uint32_t emc_ca_training_timing_cntl1;
668 /* Specifies the value for EMC_CA_TRAINING_TIMING_CNTRL2 */
669 uint32_t emc_ca_training_timing_cntl2;
670 /* Set if bit 6 select is greater than bit 7 select; uses aremc.spec packet SWIZZLE_BIT6_GT_BIT7 */
671 uint32_t swizzle_rank_byte_encode;
672 /* Specifies enable and offset for patched boot rom write */
673 uint32_t boot_rom_patch_control;
674 /* Specifies data for patched boot rom write */
675 uint32_t boot_rom_patch_data;
676
677 /* (Channel 1) Specifies the value for EMC_DLL_XFORM_DQS0 */
678 uint32_t ch1_emc_dll_xform_dqs0;
679 /* (Channel 1) Specifies the value for EMC_DLL_XFORM_DQS1 */
680 uint32_t ch1_emc_dll_xform_dqs1;
681 /* (Channel 1) Specifies the value for EMC_DLL_XFORM_DQS2 */
682 uint32_t ch1_emc_dll_xform_dqs2;
683 /* (Channel 1) Specifies the value for EMC_DLL_XFORM_DQS3 */
684 uint32_t ch1_emc_dll_xform_dqs3;
685 /* (Channel 1) Specifies the value for EMC_DLL_XFORM_DQS4 */
686 uint32_t ch1_emc_dll_xform_dqs4;
687 /* (Channel 1) Specifies the value for EMC_DLL_XFORM_DQS5 */
688 uint32_t ch1_emc_dll_xform_dqs5;
689 /* (Channel 1) Specifies the value for EMC_DLL_XFORM_DQS6 */
690 uint32_t ch1_emc_dll_xform_dqs6;
691 /* (Channel 1) Specifies the value for EMC_DLL_XFORM_DQS7 */
692 uint32_t ch1_emc_dll_xform_dqs7;
693 /* (Channel 1) Specifies the value for EMC_DLL_XFORM_QUSE0 */
694 uint32_t ch1_emc_dll_xform_quse0;
695 /* (Channel 1) Specifies the value for EMC_DLL_XFORM_QUSE1 */
696 uint32_t ch1_emc_dll_xform_quse1;
697 /* (Channel 1) Specifies the value for EMC_DLL_XFORM_QUSE2 */
698 uint32_t ch1_emc_dll_xform_quse2;
699 /* (Channel 1) Specifies the value for EMC_DLL_XFORM_QUSE3 */
700 uint32_t ch1_emc_dll_xform_quse3;
701 /* (Channel 1) Specifies the value for EMC_DLL_XFORM_QUSE4 */
702 uint32_t ch1_emc_dll_xform_quse4;
703 /* (Channel 1) Specifies the value for EMC_DLL_XFORM_QUSE5 */
704 uint32_t ch1_emc_dll_xform_quse5;
705 /* (Channel 1) Specifies the value for EMC_DLL_XFORM_QUSE6 */
706 uint32_t ch1_emc_dll_xform_quse6;
707 /* (Channel 1) Specifies the value for EMC_DLL_XFORM_QUSE7 */
708 uint32_t ch1_emc_dll_xform_quse7;
709 /* (Channel 1) Specifies the value for EMC_DLI_TRIM_TXDQS0 */
710 uint32_t ch1_emc_dli_trim_tx_dqs0;
711 /* (Channel 1) Specifies the value for EMC_DLI_TRIM_TXDQS1 */
712 uint32_t ch1_emc_dli_trim_tx_dqs1;
713 /* (Channel 1) Specifies the value for EMC_DLI_TRIM_TXDQS2 */
714 uint32_t ch1_emc_dli_trim_tx_dqs2;
715 /* (Channel 1) Specifies the value for EMC_DLI_TRIM_TXDQS3 */
716 uint32_t ch1_emc_dli_trim_tx_dqs3;
717 /* (Channel 1) Specifies the value for EMC_DLI_TRIM_TXDQS4 */
718 uint32_t ch1_emc_dli_trim_tx_dqs4;
719 /* (Channel 1) Specifies the value for EMC_DLI_TRIM_TXDQS5 */
720 uint32_t ch1_emc_dli_trim_tx_dqs5;
721 /* (Channel 1) Specifies the value for EMC_DLI_TRIM_TXDQS6 */
722 uint32_t ch1_emc_dli_trim_tx_dqs6;
723 /* (Channel 1) Specifies the value for EMC_DLI_TRIM_TXDQS7 */
724 uint32_t ch1_emc_dli_trim_tx_dqs7;
725 /* (Channel 1) Specifies the value for EMC_DLL_XFORM_DQ0 */
726 uint32_t ch1_emc_dll_xform_dq0;
727 /* (Channel 1) Specifies the value for EMC_DLL_XFORM_DQ1 */
728 uint32_t ch1_emc_dll_xform_dq1;
729 /* (Channel 1) Specifies the value for EMC_DLL_XFORM_DQ2 */
730 uint32_t ch1_emc_dll_xform_dq2;
731 /* (Channel 1) Specifies the value for EMC_DLL_XFORM_DQ3 */
732 uint32_t ch1_emc_dll_xform_dq3;
733
734 /* (Channel 1) Specifies the value for EMC_SWIZZLE_RANK0_BYTE_CFG */
735 uint32_t ch1_emc_swizzle_rank0_byte_cfg;
736 /* (Channel 1) Specifies the value for EMC_SWIZZLE_RANK0_BYTE0 */
737 uint32_t ch1_emc_swizzle_rank0_byte0;
738 /* (Channel 1) Specifies the value for EMC_SWIZZLE_RANK0_BYTE1 */
739 uint32_t ch1_emc_swizzle_rank0_byte1;
740 /* (Channel 1) Specifies the value for EMC_SWIZZLE_RANK0_BYTE2 */
741 uint32_t ch1_emc_swizzle_rank0_byte2;
742 /* (Channel 1) Specifies the value for EMC_SWIZZLE_RANK0_BYTE3 */
743 uint32_t ch1_emc_swizzle_rank0_byte3;
744 /* (Channel 1) Specifies the value for EMC_SWIZZLE_RANK1_BYTE_CFG */
745 uint32_t ch1_emc_swizzle_rank1_byte_cfg;
746 /* (Channel 1) Specifies the value for EMC_SWIZZLE_RANK1_BYTE0 */
747 uint32_t ch1_emc_swizzle_rank1_byte0;
748 /* (Channel 1) Specifies the value for EMC_SWIZZLE_RANK1_BYTE1 */
749 uint32_t ch1_emc_swizzle_rank1_byte1;
750 /* (Channel 1) Specifies the value for EMC_SWIZZLE_RANK1_BYTE2 */
751 uint32_t ch1_emc_swizzle_rank1_byte2;
752 /* (Channel 1) Specifies the value for EMC_SWIZZLE_RANK1_BYTE3 */
753 uint32_t ch1_emc_swizzle_rank1_byte3;
754 /* (Channel 1) Specifies the value for EMC_ADDR_SWIZZLE_STACK1A */
755 uint32_t ch1_emc_addr_swizzle_stack1a;
756 /* (Channel 1) Specifies the value for EMC_ADDR_SWIZZLE_STACK1B */
757 uint32_t ch1_emc_addr_swizzle_stack1b;
758 /* (Channel 1) Specifies the value for EMC_ADDR_SWIZZLE_STACK2A */
759 uint32_t ch1_emc_addr_swizzle_stack2a;
760 /* (Channel 1) Specifies the value for EMC_ADDR_SWIZZLE_STACK2B */
761 uint32_t ch1_emc_addr_swizzle_stack2b;
762 /* (Channel 1) Specifies the value for EMC_ADDR_SWIZZLE_STACK3 */
763 uint32_t ch1_emc_addr_swizzle_stack3;
764
765 /* (Channel 1) Specifies the value for EMC_AUTO_CAL_CONFIG */
766 /* Note: Trigger bits are set by the SDRAM code. */
767 uint32_t ch1_emc_auto_cal_config;
768 /* (Channel 1) Specifies the value for EMC_AUTO_CAL_CONFIG2 */
769 uint32_t ch1_emc_auto_cal_config2;
770 /* (Channel 1) Specifies the value for EMC_AUTO_CAL_CONFIG3 */
771 uint32_t ch1_emc_auto_cal_config3;
772 /* (Channel 1) Specifies the value for EMC_CDB_CNTL_1 */
773 uint32_t ch1_emc_cdb_cntl1;
774 /* (Channel 1) Specifies the value for EMC_DLL_XFORM_ADDR0 */
775 uint32_t ch1_emc_dll_xform_addr0;
776 /* (Channel 1) Specifies the value for EMC_DLL_XFORM_ADDR1 */
777 uint32_t ch1_emc_dll_xform_addr1;
778 /* (Channel 1) Specifies the value for EMC_DLL_XFORM_ADDR2 */
779 uint32_t ch1_emc_dll_xform_addr2;
780 /* (Channel 1) Specifies the value for EMC_FBIO_SPARE */
781 uint32_t ch1_emc_fbio_spare;
782 /* (Channel 1) Specifies the value for EMC_XM2CLKPADCTRL */
783 uint32_t ch1_emc_xm2_clk_pad_ctrl;
784 /* (Channel 1) Specifies the value for EMC_XM2CLKPADCTRL2 */
785 uint32_t ch1_emc_xm2_clk_pad_ctrl2;
786 /* (Channel 1) Specifies the value for EMC_XM2CMDPADCTRL2 */
787 uint32_t ch1_emc_xm2_cmd_pad_ctrl2;
788 /* (Channel 1) Specifies the value for EMC_XM2CMDPADCTRL3 */
789 uint32_t ch1_emc_xm2_cmd_pad_ctrl3;
790 /* (Channel 1) Specifies the value for EMC_XM2CMDPADCTRL4 */
791 uint32_t ch1_emc_xm2_cmd_pad_ctrl4;
792 /* (Channel 1) Specifies the value for EMC_XM2DQPADCTRL */
793 uint32_t ch1_emc_xm2_dq_pad_ctrl;
794 /* (Channel 1) Specifies the value for EMC_XM2DQPADCTRL2 */
795 uint32_t ch1_emc_xm2_dq_pad_ctrl2;
796 /* (Channel 1) Specifies the value for EMC_XM2DQSPADCTRL */
797 uint32_t ch1_emc_xm2_dqs_pad_ctrl;
798 /* (Channel 1) Specifies the value for EMC_XM2DQSPADCTRL3 */
799 uint32_t ch1_emc_xm2_dqs_pad_ctrl3;
800 /* (Channel 1) Specifies the value for EMC_XM2DQSPADCTRL4 */
801 uint32_t ch1_emc_xm2_dqs_pad_ctrl4;
802
803 /* End of generated code by warmboot_code_gen */
804 } nvboot_sdram_params;
805 #endif /* #ifndef INCLUDED_NVBOOT_SDRAM_PARAM_T114_H */
806