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