summaryrefslogtreecommitdiff
path: root/src/t210/nvboot_sdram_param_t210.h
blob: c4671e48d66a20dd4d9a74dc7ba2c0ce170cb96b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
/*
 * Copyright (c) 2015, NVIDIA CORPORATION.  All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * See file CREDITS for list of people who contributed to this
 * project.
 */

/**
 * Defines the SDRAM parameter structure.
 *
 * Note that PLLM is used by EMC.
 */

#ifndef INCLUDED_NVBOOT_SDRAM_PARAM_T210_H
#define INCLUDED_NVBOOT_SDRAM_PARAM_T210_H

#define NVBOOT_BCT_SDRAM_ARB_CONFIG_WORDS 27

typedef enum {
	/* Specifies the memory type to be undefined */
	nvboot_memory_type_none = 0,

	/* Specifies the memory type to be DDR SDRAM */
	nvboot_memory_type_ddr = 0,

	/* Specifies the memory type to be LPDDR SDRAM */
	nvboot_memory_type_lpddr = 0,

	/* Specifies the memory type to be DDR2 SDRAM */
	nvboot_memory_type_ddr2 = 0,

	/* Specifies the memory type to be LPDDR2 SDRAM */
	nvboot_memory_type_lpddr2,

	/* Specifies the memory type to be DDR3 SDRAM */
	nvboot_memory_type_ddr3,

	/* Specifies the memory type to be LPDDR4 SDRAM */
	nvboot_memory_type_lpddr4,

	nvboot_memory_type_num,
	nvboot_memory_type_force32 = 0x7FFFFFF
} nvboot_memory_type;

/**
 * Defines the SDRAM parameter structure
 */
typedef struct nvboot_sdram_params_rec {
	/* sdram data structure generated by tool warmboot_code_gen */

	/* Specifies the type of memory device */
	nvboot_memory_type memory_type;

	/* MC/EMC clock source configuration */

	/* Specifies the M value for PllM */
	u_int32_t pllm_input_divider;
	/* Specifies the N value for PllM */
	u_int32_t pllm_feedback_divider;
	/* Specifies the time to wait for PLLM to lock (in microseconds) */
	u_int32_t pllm_stable_time;
	/* Specifies misc. control bits */
	u_int32_t pllm_setup_control;
	/* Specifies the P value for PLLM */
	u_int32_t pllm_post_divider;
	/* Specifies value for Charge Pump Gain Control */
	u_int32_t pllm_kcp;
	/* Specifies VCO gain */
	u_int32_t pllm_kvco;
	/* Spare BCT param */
	u_int32_t emc_bct_spare0;
	/* Spare BCT param */
	u_int32_t emc_bct_spare1;
	/* Spare BCT param */
	u_int32_t emc_bct_spare2;
	/* Spare BCT param */
	u_int32_t emc_bct_spare3;
	/* Spare BCT param */
	u_int32_t emc_bct_spare4;
	/* Spare BCT param */
	u_int32_t emc_bct_spare5;
	/* Spare BCT param */
	u_int32_t emc_bct_spare6;
	/* Spare BCT param */
	u_int32_t emc_bct_spare7;
	/* Spare BCT param */
	u_int32_t emc_bct_spare8;
	/* Spare BCT param */
	u_int32_t emc_bct_spare9;
	/* Spare BCT param */
	u_int32_t emc_bct_spare10;
	/* Spare BCT param */
	u_int32_t emc_bct_spare11;
	/* Spare BCT param */
	u_int32_t emc_bct_spare12;
	/* Spare BCT param */
	u_int32_t emc_bct_spare13;

	/* Defines EMC_2X_CLK_SRC, EMC_2X_CLK_DIVISOR, EMC_INVERT_DCD */
	u_int32_t emc_clock_source;
	u_int32_t emc_clock_source_dll;

	/* Defines possible override for PLLLM_MISC2 */
	u_int32_t clk_rst_pllm_misc20_override;
	/* enables override for PLLLM_MISC2 */
	u_int32_t clk_rst_pllm_misc20_override_enable;
	/* defines CLK_ENB_MC1 in register clk_rst_controller_clk_enb_w_clr */
	u_int32_t clear_clock2_mc1;

	/* Auto-calibration of EMC pads */

	/* Specifies the value for EMC_AUTO_CAL_INTERVAL */
	u_int32_t emc_auto_cal_interval;
	/*
	 * Specifies the value for EMC_AUTO_CAL_CONFIG
	 * Note: Trigger bits are set by the SDRAM code.
	 */
	u_int32_t emc_auto_cal_config;

	/* Specifies the value for EMC_AUTO_CAL_CONFIG2 */
	u_int32_t emc_auto_cal_config2;

	/* Specifies the value for EMC_AUTO_CAL_CONFIG3 */
	u_int32_t emc_auto_cal_config3;

	u_int32_t emc_auto_cal_config4;
	u_int32_t emc_auto_cal_config5;
	u_int32_t emc_auto_cal_config6;
	u_int32_t emc_auto_cal_config7;
	u_int32_t emc_auto_cal_config8;
	/* Specifies the value for EMC_AUTO_CAL_VREF_SEL_0 */
	u_int32_t emc_auto_cal_vref_sel0;
	u_int32_t emc_auto_cal_vref_sel1;

	/* Specifies the value for EMC_AUTO_CAL_CHANNEL */
	u_int32_t emc_auto_cal_channel;

	/* Specifies the value for EMC_PMACRO_AUTOCAL_CFG_0 */
	u_int32_t emc_pmacro_auto_cal_cfg0;
	u_int32_t emc_pmacro_auto_cal_cfg1;
	u_int32_t emc_pmacro_auto_cal_cfg2;

	u_int32_t emc_pmacro_rx_term;
	u_int32_t emc_pmacro_dq_tx_drive;
	u_int32_t emc_pmacro_ca_tx_drive;
	u_int32_t emc_pmacro_cmd_tx_drive;
	u_int32_t emc_pmacro_auto_cal_common;
	u_int32_t emc_pmacro_zcrtl;

	/*
	 * Specifies the time for the calibration
	 * to stabilize (in microseconds)
	 */
	u_int32_t emc_auto_cal_wait;

	u_int32_t emc_xm2_comp_pad_ctrl;
	u_int32_t emc_xm2_comp_pad_ctrl2;
	u_int32_t emc_xm2_comp_pad_ctrl3;

	/*
	 * DRAM size information
	 * Specifies the value for EMC_ADR_CFG
	 */
	u_int32_t emc_adr_cfg;

	/*
	 * Specifies the time to wait after asserting pin
	 * CKE (in microseconds)
	 */
	u_int32_t emc_pin_program_wait;
	/* Specifies the extra delay before/after pin RESET/CKE command */
	u_int32_t emc_pin_extra_wait;

	u_int32_t emc_pin_gpio_enable;
	u_int32_t emc_pin_gpio;

	/*
	 * Specifies the extra delay after the first writing
	 * of EMC_TIMING_CONTROL
	 */
	u_int32_t emc_timing_control_wait;

	/* Timing parameters required for the SDRAM */

	/* Specifies the value for EMC_RC */
	u_int32_t emc_rc;
	/* Specifies the value for EMC_RFC */
	u_int32_t emc_rfc;

	u_int32_t emc_rfc_pb;
	u_int32_t emc_ref_ctrl2;

	/* Specifies the value for EMC_RFC_SLR */
	u_int32_t emc_rfc_slr;
	/* Specifies the value for EMC_RAS */
	u_int32_t emc_ras;
	/* Specifies the value for EMC_RP */
	u_int32_t emc_rp;
	/* Specifies the value for EMC_R2R */
	u_int32_t emc_r2r;
	/* Specifies the value for EMC_W2W */
	u_int32_t emc_w2w;
	/* Specifies the value for EMC_R2W */
	u_int32_t emc_r2w;
	/* Specifies the value for EMC_W2R */
	u_int32_t emc_w2r;
	/* Specifies the value for EMC_R2P */
	u_int32_t emc_r2p;
	/* Specifies the value for EMC_W2P */
	u_int32_t emc_w2p;
	/* Specifies the value for EMC_RD_RCD */

	u_int32_t emc_tppd;
	u_int32_t emc_ccdmw;

	u_int32_t emc_rd_rcd;
	/* Specifies the value for EMC_WR_RCD */
	u_int32_t emc_wr_rcd;
	/* Specifies the value for EMC_RRD */
	u_int32_t emc_rrd;
	/* Specifies the value for EMC_REXT */
	u_int32_t emc_rext;
	/* Specifies the value for EMC_WEXT */
	u_int32_t emc_wext;
	/* Specifies the value for EMC_WDV */
	u_int32_t emc_wdv;

	u_int32_t emc_wdv_chk;
	u_int32_t emc_wsv;
	u_int32_t emc_wev;

	/* Specifies the value for EMC_WDV_MASK */
	u_int32_t emc_wdv_mask;

	u_int32_t emc_ws_duration;
	u_int32_t emc_we_duration;

	/* Specifies the value for EMC_QUSE */
	u_int32_t emc_quse;
	/* Specifies the value for EMC_QUSE_WIDTH */
	u_int32_t emc_quse_width;
	/* Specifies the value for EMC_IBDLY */
	u_int32_t emc_ibdly;

	u_int32_t emc_obdly;

	/* Specifies the value for EMC_EINPUT */
	u_int32_t emc_einput;
	/* Specifies the value for EMC_EINPUT_DURATION */
	u_int32_t emc_einput_duration;
	/* Specifies the value for EMC_PUTERM_EXTRA */
	u_int32_t emc_puterm_extra;
	/* Specifies the value for EMC_PUTERM_WIDTH */
	u_int32_t emc_puterm_width;

	u_int32_t emc_qrst;
	u_int32_t emc_qsafe;
	u_int32_t emc_rdv;
	u_int32_t emc_rdv_mask;

	u_int32_t emc_rdv_early;
	u_int32_t emc_rdv_early_mask;

	/* Specifies the value for EMC_QPOP */
	u_int32_t emc_qpop;

	/* Specifies the value for EMC_REFRESH */
	u_int32_t emc_refresh;
	/* Specifies the value for EMC_BURST_REFRESH_NUM */
	u_int32_t emc_burst_refresh_num;
	/* Specifies the value for EMC_PRE_REFRESH_REQ_CNT */
	u_int32_t emc_prerefresh_req_cnt;
	/* Specifies the value for EMC_PDEX2WR */
	u_int32_t emc_pdex2wr;
	/* Specifies the value for EMC_PDEX2RD */
	u_int32_t emc_pdex2rd;
	/* Specifies the value for EMC_PCHG2PDEN */
	u_int32_t emc_pchg2pden;
	/* Specifies the value for EMC_ACT2PDEN */
	u_int32_t emc_act2pden;
	/* Specifies the value for EMC_AR2PDEN */
	u_int32_t emc_ar2pden;
	/* Specifies the value for EMC_RW2PDEN */
	u_int32_t emc_rw2pden;

	u_int32_t emc_cke2pden;
	u_int32_t emc_pdex2che;
	u_int32_t emc_pdex2mrr;

	/* Specifies the value for EMC_TXSR */
	u_int32_t emc_txsr;
	/* Specifies the value for EMC_TXSRDLL */
	u_int32_t emc_txsr_dll;
	/* Specifies the value for EMC_TCKE */
	u_int32_t emc_tcke;
	/* Specifies the value for EMC_TCKESR */
	u_int32_t emc_tckesr;
	/* Specifies the value for EMC_TPD */
	u_int32_t emc_tpd;
	/* Specifies the value for EMC_TFAW */
	u_int32_t emc_tfaw;
	/* Specifies the value for EMC_TRPAB */
	u_int32_t emc_trpab;
	/* Specifies the value for EMC_TCLKSTABLE */
	u_int32_t emc_tclkstable;
	/* Specifies the value for EMC_TCLKSTOP */
	u_int32_t emc_tclkstop;
	/* Specifies the value for EMC_TREFBW */
	u_int32_t emc_trefbw;

	/* FBIO configuration values */

	/* Specifies the value for EMC_FBIO_CFG5 */
	u_int32_t emc_fbio_cfg5;
	/* Specifies the value for EMC_FBIO_CFG7 */
	u_int32_t emc_fbio_cfg7;
	u_int32_t emc_fbio_cfg8;

	/* Command mapping for CMD brick 0 */
	u_int32_t emc_cmd_mapping_cmd0_0;
	u_int32_t emc_cmd_mapping_cmd0_1;
	u_int32_t emc_cmd_mapping_cmd0_2;
	u_int32_t emc_cmd_mapping_cmd1_0;
	u_int32_t emc_cmd_mapping_cmd1_1;
	u_int32_t emc_cmd_mapping_cmd1_2;
	u_int32_t emc_cmd_mapping_cmd2_0;
	u_int32_t emc_cmd_mapping_cmd2_1;
	u_int32_t emc_cmd_mapping_cmd2_2;
	u_int32_t emc_cmd_mapping_cmd3_0;
	u_int32_t emc_cmd_mapping_cmd3_1;
	u_int32_t emc_cmd_mapping_cmd3_2;
	u_int32_t emc_cmd_mapping_byte;

	/* Specifies the value for EMC_FBIO_SPARE */
	u_int32_t emc_fbio_spare;

	/* Specifies the value for EMC_CFG_RSV */
	u_int32_t emc_cfg_rsv;

	/* MRS command values */

	/* Specifies the value for EMC_MRS */
	u_int32_t emc_mrs;
	/* Specifies the MP0 command to initialize mode registers */
	u_int32_t emc_emrs;
	/* Specifies the MP2 command to initialize mode registers */
	u_int32_t emc_emrs2;
	/* Specifies the MP3 command to initialize mode registers */
	u_int32_t emc_emrs3;
	/* Specifies the programming to LPDDR2 Mode Register 1 at cold boot */
	u_int32_t emc_mrw1;
	/* Specifies the programming to LPDDR2 Mode Register 2 at cold boot */
	u_int32_t emc_mrw2;
	/* Specifies the programming to LPDDR2 Mode Register 3 at cold boot */
	u_int32_t emc_mrw3;
	/* Specifies the programming to LPDDR2 Mode Register 11 at cold boot */
	u_int32_t emc_mrw4;

	/* Specifies the programming to LPDDR4 Mode Register 3 at cold boot */
	u_int32_t emc_mrw6;
	/* Specifies the programming to LPDDR4 Mode Register 11 at cold boot */
	u_int32_t emc_mrw8;
	/* Specifies the programming to LPDDR4 Mode Register 11 at cold boot */
	u_int32_t emc_mrw9;
	/* Specifies the programming to LPDDR4 Mode Register 12 at cold boot */
	u_int32_t emc_mrw10;
	/* Specifies the programming to LPDDR4 Mode Register 14 at cold boot */
	u_int32_t emc_mrw12;
	/* Specifies the programming to LPDDR4 Mode Register 14 at cold boot */
	u_int32_t emc_mrw13;
	/* Specifies the programming to LPDDR4 Mode Register 22 at cold boot */
	u_int32_t emc_mrw14;

	/*
	 * Specifies the programming to extra LPDDR2 Mode Register
	 * at cold boot
	 */
	u_int32_t emc_mrw_extra;
	/*
	 * Specifies the programming to extra LPDDR2 Mode Register
	 * at warm boot
	 */
	u_int32_t emc_warm_boot_mrw_extra;
	/*
	 * Specify the enable of extra Mode Register programming at
	 * warm boot
	 */
	u_int32_t emc_warm_boot_extramode_reg_write_enable;
	/*
	 * Specify the enable of extra Mode Register programming at
	 * cold boot
	 */
	u_int32_t emc_extramode_reg_write_enable;

	/* Specifies the EMC_MRW reset command value */
	u_int32_t emc_mrw_reset_command;
	/* Specifies the EMC Reset wait time (in microseconds) */
	u_int32_t emc_mrw_reset_ninit_wait;
	/* Specifies the value for EMC_MRS_WAIT_CNT */
	u_int32_t emc_mrs_wait_cnt;
	/* Specifies the value for EMC_MRS_WAIT_CNT2 */
	u_int32_t emc_mrs_wait_cnt2;

	/* EMC miscellaneous configurations */

	/* Specifies the value for EMC_CFG */
	u_int32_t emc_cfg;
	/* Specifies the value for EMC_CFG_2 */
	u_int32_t emc_cfg2;
	/* Specifies the pipe bypass controls */
	u_int32_t emc_cfg_pipe;

	u_int32_t emc_cfg_pipe_clk;
	u_int32_t emc_fdpd_ctrl_cmd_no_ramp;
	u_int32_t emc_cfg_update;

	/* Specifies the value for EMC_DBG */
	u_int32_t emc_dbg;

	u_int32_t emc_dbg_write_mux;

	/* Specifies the value for EMC_CMDQ */
	u_int32_t emc_cmd_q;
	/* Specifies the value for EMC_MC2EMCQ */
	u_int32_t emc_mc2emc_q;
	/* Specifies the value for EMC_DYN_SELF_REF_CONTROL */
	u_int32_t emc_dyn_self_ref_control;

	/* Specifies the value for MEM_INIT_DONE */
	u_int32_t ahb_arbitration_xbar_ctrl_meminit_done;

	/* Specifies the value for EMC_CFG_DIG_DLL */
	u_int32_t emc_cfg_dig_dll;
	u_int32_t emc_cfg_dig_dll_1;

	/* Specifies the value for EMC_CFG_DIG_DLL_PERIOD */
	u_int32_t emc_cfg_dig_dll_period;
	/* Specifies the value of *DEV_SELECTN of various EMC registers */
	u_int32_t emc_dev_select;

	/* Specifies the value for EMC_SEL_DPD_CTRL */
	u_int32_t emc_sel_dpd_ctrl;

	/* Pads trimmer delays */
	u_int32_t emc_fdpd_ctrl_dq;
	u_int32_t emc_fdpd_ctrl_cmd;
	u_int32_t emc_pmacro_ib_vref_dq_0;
	u_int32_t emc_pmacro_ib_vref_dq_1;
	u_int32_t emc_pmacro_ib_vref_dqs_0;
	u_int32_t emc_pmacro_ib_vref_dqs_1;
	u_int32_t emc_pmacro_ib_rxrt;
	u_int32_t emc_cfg_pipe1;
	u_int32_t emc_cfg_pipe2;

	/* Specifies the value for EMC_PMACRO_QUSE_DDLL_RANK0_0 */
	u_int32_t emc_pmacro_quse_ddll_rank0_0;
	u_int32_t emc_pmacro_quse_ddll_rank0_1;
	u_int32_t emc_pmacro_quse_ddll_rank0_2;
	u_int32_t emc_pmacro_quse_ddll_rank0_3;
	u_int32_t emc_pmacro_quse_ddll_rank0_4;
	u_int32_t emc_pmacro_quse_ddll_rank0_5;
	u_int32_t emc_pmacro_quse_ddll_rank1_0;
	u_int32_t emc_pmacro_quse_ddll_rank1_1;
	u_int32_t emc_pmacro_quse_ddll_rank1_2;
	u_int32_t emc_pmacro_quse_ddll_rank1_3;
	u_int32_t emc_pmacro_quse_ddll_rank1_4;
	u_int32_t emc_pmacro_quse_ddll_rank1_5;

	u_int32_t emc_pmacro_ob_ddll_long_dq_rank0_0;
	u_int32_t emc_pmacro_ob_ddll_long_dq_rank0_1;
	u_int32_t emc_pmacro_ob_ddll_long_dq_rank0_2;
	u_int32_t emc_pmacro_ob_ddll_long_dq_rank0_3;
	u_int32_t emc_pmacro_ob_ddll_long_dq_rank0_4;
	u_int32_t emc_pmacro_ob_ddll_long_dq_rank0_5;
	u_int32_t emc_pmacro_ob_ddll_long_dq_rank1_0;
	u_int32_t emc_pmacro_ob_ddll_long_dq_rank1_1;
	u_int32_t emc_pmacro_ob_ddll_long_dq_rank1_2;
	u_int32_t emc_pmacro_ob_ddll_long_dq_rank1_3;
	u_int32_t emc_pmacro_ob_ddll_long_dq_rank1_4;
	u_int32_t emc_pmacro_ob_ddll_long_dq_rank1_5;

	u_int32_t emc_pmacro_ob_ddll_long_dqs_rank0_0;
	u_int32_t emc_pmacro_ob_ddll_long_dqs_rank0_1;
	u_int32_t emc_pmacro_ob_ddll_long_dqs_rank0_2;
	u_int32_t emc_pmacro_ob_ddll_long_dqs_rank0_3;
	u_int32_t emc_pmacro_ob_ddll_long_dqs_rank0_4;
	u_int32_t emc_pmacro_ob_ddll_long_dqs_rank0_5;
	u_int32_t emc_pmacro_ob_ddll_long_dqs_rank1_0;
	u_int32_t emc_pmacro_ob_ddll_long_dqs_rank1_1;
	u_int32_t emc_pmacro_ob_ddll_long_dqs_rank1_2;
	u_int32_t emc_pmacro_ob_ddll_long_dqs_rank1_3;
	u_int32_t emc_pmacro_ob_ddll_long_dqs_rank1_4;
	u_int32_t emc_pmacro_ob_ddll_long_dqs_rank1_5;

	u_int32_t emc_pmacro_ib_ddll_long_dqs_rank0_0;
	u_int32_t emc_pmacro_ib_ddll_long_dqs_rank0_1;
	u_int32_t emc_pmacro_ib_ddll_long_dqs_rank0_2;
	u_int32_t emc_pmacro_ib_ddll_long_dqs_rank0_3;
	u_int32_t emc_pmacro_ib_ddll_long_dqs_rank1_0;
	u_int32_t emc_pmacro_ib_ddll_long_dqs_rank1_1;
	u_int32_t emc_pmacro_ib_ddll_long_dqs_rank1_2;
	u_int32_t emc_pmacro_ib_ddll_long_dqs_rank1_3;

	u_int32_t emc_pmacro_ddll_long_cmd_0;
	u_int32_t emc_pmacro_ddll_long_cmd_1;
	u_int32_t emc_pmacro_ddll_long_cmd_2;
	u_int32_t emc_pmacro_ddll_long_cmd_3;
	u_int32_t emc_pmacro_ddll_long_cmd_4;
	u_int32_t emc_pmacro_ddll_short_cmd_0;
	u_int32_t emc_pmacro_ddll_short_cmd_1;
	u_int32_t emc_pmacro_ddll_short_cmd_2;

	/*
	 * Specifies the delay after asserting CKE pin during a WarmBoot0
	 * sequence (in microseconds)
	 */
	u_int32_t warm_boot_wait;

	/* Specifies the value for EMC_ODT_WRITE */
	u_int32_t emc_odt_write;

	/* Periodic ZQ calibration */

	/*
	 * Specifies the value for EMC_ZCAL_INTERVAL
	 * Value 0 disables ZQ calibration
	 */
	u_int32_t emc_zcal_interval;
	/* Specifies the value for EMC_ZCAL_WAIT_CNT */
	u_int32_t emc_zcal_wait_cnt;
	/* Specifies the value for EMC_ZCAL_MRW_CMD */
	u_int32_t emc_zcal_mrw_cmd;

	/* DRAM initialization sequence flow control */

	/* Specifies the MRS command value for resetting DLL */
	u_int32_t emc_mrs_reset_dll;
	/* Specifies the command for ZQ initialization of device 0 */
	u_int32_t emc_zcal_init_dev0;
	/* Specifies the command for ZQ initialization of device 1 */
	u_int32_t emc_zcal_init_dev1;
	/*
	 * Specifies the wait time after programming a ZQ initialization
	 * command (in microseconds)
	 */
	u_int32_t emc_zcal_init_wait;
	/*
	 * Specifies the enable for ZQ calibration at cold boot [bit 0]
	 * and warm boot [bit 1]
	 */
	u_int32_t emc_zcal_warm_cold_boot_enables;

	/*
	 * Specifies the MRW command to LPDDR2 for ZQ calibration
	 * on warmboot
	 */
	/* Is issued to both devices separately */
	u_int32_t emc_mrw_lpddr2zcal_warm_boot;
	/*
	 * Specifies the ZQ command to DDR3 for ZQ calibration on warmboot
	 * Is issued to both devices separately
	 */
	u_int32_t emc_zqcal_ddr3_warm_boot;

	u_int32_t emc_zqcal_lpddr4_warm_boot;

	/*
	 * Specifies the wait time for ZQ calibration on warmboot
	 * (in microseconds)
	 */
	u_int32_t emc_zcal_warm_boot_wait;
	/*
	 * Specifies the enable for DRAM Mode Register programming
	 * at warm boot
	 */
	u_int32_t emc_mrs_warm_boot_enable;
	/*
	 * Specifies the wait time after sending an MRS DLL reset command
	 * in microseconds)
	 */
	u_int32_t emc_mrs_reset_dll_wait;
	/* Specifies the extra MRS command to initialize mode registers */
	u_int32_t emc_mrs_extra;
	/* Specifies the extra MRS command at warm boot */
	u_int32_t emc_warm_boot_mrs_extra;
	/* Specifies the EMRS command to enable the DDR2 DLL */
	u_int32_t emc_emrs_ddr2_dll_enable;
	/* Specifies the MRS command to reset the DDR2 DLL */
	u_int32_t emc_mrs_ddr2_dll_reset;
	/* Specifies the EMRS command to set OCD calibration */
	u_int32_t emc_emrs_ddr2_ocd_calib;
	/*
	 * Specifies the wait between initializing DDR and setting OCD
	 * calibration (in microseconds)
	 */
	u_int32_t emc_ddr2_wait;
	/* Specifies the value for EMC_CLKEN_OVERRIDE */
	u_int32_t emc_clken_override;
	/*
	 * Specifies LOG2 of the extra refresh numbers after booting
	 * Program 0 to disable
	 */
	u_int32_t emc_extra_refresh_num;
	/* Specifies the master override for all EMC clocks */
	u_int32_t emc_clken_override_allwarm_boot;
	/* Specifies the master override for all MC clocks */
	u_int32_t mc_clken_override_allwarm_boot;
	/* Specifies digital dll period, choosing between 4 to 64 ms */
	u_int32_t emc_cfg_dig_dll_period_warm_boot;

	/* Pad controls */

	/* Specifies the value for PMC_VDDP_SEL */
	u_int32_t pmc_vddp_sel;
	/* Specifies the wait time after programming PMC_VDDP_SEL */
	u_int32_t pmc_vddp_sel_wait;
	/* Specifies the value for PMC_DDR_PWR */
	u_int32_t pmc_ddr_pwr;
	/* Specifies the value for PMC_DDR_CFG */
	u_int32_t pmc_ddr_cfg;
	/* Specifies the value for PMC_IO_DPD3_REQ */
	u_int32_t pmc_io_dpd3_req;
	/* Specifies the wait time after programming PMC_IO_DPD3_REQ */
	u_int32_t pmc_io_dpd3_req_wait;

	u_int32_t pmc_io_dpd4_req_wait;

	/* Specifies the value for PMC_REG_SHORT */
	u_int32_t pmc_reg_short;
	/* Specifies the value for PMC_NO_IOPOWER */
	u_int32_t pmc_no_io_power;

	u_int32_t pmc_ddr_ctrl_wait;
	u_int32_t pmc_ddr_ctrl;

	/* Specifies the value for EMC_ACPD_CONTROL */
	u_int32_t emc_acpd_control;

	/* Specifies the value for EMC_SWIZZLE_RANK0_BYTE0 */
	u_int32_t emc_swizzle_rank0_byte0;
	/* Specifies the value for EMC_SWIZZLE_RANK0_BYTE1 */
	u_int32_t emc_swizzle_rank0_byte1;
	/* Specifies the value for EMC_SWIZZLE_RANK0_BYTE2 */
	u_int32_t emc_swizzle_rank0_byte2;
	/* Specifies the value for EMC_SWIZZLE_RANK0_BYTE3 */
	u_int32_t emc_swizzle_rank0_byte3;
	/* Specifies the value for EMC_SWIZZLE_RANK1_BYTE0 */
	u_int32_t emc_swizzle_rank1_byte0;
	/* Specifies the value for EMC_SWIZZLE_RANK1_BYTE1 */
	u_int32_t emc_swizzle_rank1_byte1;
	/* Specifies the value for EMC_SWIZZLE_RANK1_BYTE2 */
	u_int32_t emc_swizzle_rank1_byte2;
	/* Specifies the value for EMC_SWIZZLE_RANK1_BYTE3 */
	u_int32_t emc_swizzle_rank1_byte3;

	/* Specifies the value for EMC_TXDSRVTTGEN */
	u_int32_t emc_txdsrvttgen;

	/* Specifies the value for EMC_DATA_BRLSHFT_0 */
	u_int32_t emc_data_brlshft0;
	u_int32_t emc_data_brlshft1;

	u_int32_t emc_dqs_brlshft0;
	u_int32_t emc_dqs_brlshft1;

	u_int32_t emc_cmd_brlshft0;
	u_int32_t emc_cmd_brlshft1;
	u_int32_t emc_cmd_brlshft2;
	u_int32_t emc_cmd_brlshft3;

	u_int32_t emc_quse_brlshft0;
	u_int32_t emc_quse_brlshft1;
	u_int32_t emc_quse_brlshft2;
	u_int32_t emc_quse_brlshft3;

	u_int32_t emc_dll_cfg0;
	u_int32_t emc_dll_cfg1;

	u_int32_t emc_pmc_scratch1;
	u_int32_t emc_pmc_scratch2;
	u_int32_t emc_pmc_scratch3;

	u_int32_t emc_pmacro_pad_cfg_ctrl;

	u_int32_t emc_pmacro_vttgen_ctrl0;
	u_int32_t emc_pmacro_vttgen_ctrl1;
	u_int32_t emc_pmacro_vttgen_ctrl2;

	u_int32_t emc_pmacro_brick_ctrl_rfu1;
	u_int32_t emc_pmacro_cmd_brick_ctrl_fdpd;
	u_int32_t emc_pmacro_brick_ctrl_rfu2;
	u_int32_t emc_pmacro_data_brick_ctrl_fdpd;
	u_int32_t emc_pmacro_bg_bias_ctrl0;
	u_int32_t emc_pmacro_data_pad_rx_ctrl;
	u_int32_t emc_pmacro_cmd_pad_rx_ctrl;
	u_int32_t emc_pmacro_data_rx_term_mode;
	u_int32_t emc_pmacro_cmd_rx_term_mode;
	u_int32_t emc_pmacro_data_pad_tx_ctrl;
	u_int32_t emc_pmacro_common_pad_tx_ctrl;
	u_int32_t emc_pmacro_cmd_pad_tx_ctrl;
	u_int32_t emc_cfg3;

	u_int32_t emc_pmacro_tx_pwrd0;
	u_int32_t emc_pmacro_tx_pwrd1;
	u_int32_t emc_pmacro_tx_pwrd2;
	u_int32_t emc_pmacro_tx_pwrd3;
	u_int32_t emc_pmacro_tx_pwrd4;
	u_int32_t emc_pmacro_tx_pwrd5;

	u_int32_t emc_config_sample_delay;

	u_int32_t emc_pmacro_brick_mapping0;
	u_int32_t emc_pmacro_brick_mapping1;
	u_int32_t emc_pmacro_brick_mapping2;

	u_int32_t emc_pmacro_tx_sel_clk_src0;
	u_int32_t emc_pmacro_tx_sel_clk_src1;
	u_int32_t emc_pmacro_tx_sel_clk_src2;
	u_int32_t emc_pmacro_tx_sel_clk_src3;
	u_int32_t emc_pmacro_tx_sel_clk_src4;
	u_int32_t emc_pmacro_tx_sel_clk_src5;

	u_int32_t emc_pmacro_ddll_bypass;

	u_int32_t emc_pmacro_ddll_pwrd0;
	u_int32_t emc_pmacro_ddll_pwrd1;
	u_int32_t emc_pmacro_ddll_pwrd2;

	u_int32_t emc_pmacro_cmd_ctrl0;
	u_int32_t emc_pmacro_cmd_ctrl1;
	u_int32_t emc_pmacro_cmd_ctrl2;

	/* DRAM size information */

	/* Specifies the value for MC_EMEM_ADR_CFG */
	u_int32_t mc_emem_adr_cfg;
	/* Specifies the value for MC_EMEM_ADR_CFG_DEV0 */
	u_int32_t mc_emem_adr_cfg_dev0;
	/* Specifies the value for MC_EMEM_ADR_CFG_DEV1 */
	u_int32_t mc_emem_adr_cfg_dev1;

	u_int32_t mc_emem_adr_cfg_channel_mask;

	/* Specifies the value for MC_EMEM_BANK_SWIZZLE_CFG0 */
	u_int32_t mc_emem_adr_cfg_bank_mask0;
	/* Specifies the value for MC_EMEM_BANK_SWIZZLE_CFG1 */
	u_int32_t mc_emem_adr_cfg_bank_mask1;
	/* Specifies the value for MC_EMEM_BANK_SWIZZLE_CFG2 */
	u_int32_t mc_emem_adr_cfg_bank_mask2;

	/*
	 * Specifies the value for MC_EMEM_CFG which holds the external memory
	 * size (in KBytes)
	 */
	u_int32_t mc_emem_cfg;

	/* MC arbitration configuration */

	/* Specifies the value for MC_EMEM_ARB_CFG */
	u_int32_t mc_emem_arb_cfg;
	/* Specifies the value for MC_EMEM_ARB_OUTSTANDING_REQ */
	u_int32_t mc_emem_arb_outstanding_req;

	u_int32_t emc_emem_arb_refpb_hp_ctrl;
	u_int32_t emc_emem_arb_refpb_bank_ctrl;

	/* Specifies the value for MC_EMEM_ARB_TIMING_RCD */
	u_int32_t mc_emem_arb_timing_rcd;
	/* Specifies the value for MC_EMEM_ARB_TIMING_RP */
	u_int32_t mc_emem_arb_timing_rp;
	/* Specifies the value for MC_EMEM_ARB_TIMING_RC */
	u_int32_t mc_emem_arb_timing_rc;
	/* Specifies the value for MC_EMEM_ARB_TIMING_RAS */
	u_int32_t mc_emem_arb_timing_ras;
	/* Specifies the value for MC_EMEM_ARB_TIMING_FAW */
	u_int32_t mc_emem_arb_timing_faw;
	/* Specifies the value for MC_EMEM_ARB_TIMING_RRD */
	u_int32_t mc_emem_arb_timing_rrd;
	/* Specifies the value for MC_EMEM_ARB_TIMING_RAP2PRE */
	u_int32_t mc_emem_arb_timing_rap2pre;
	/* Specifies the value for MC_EMEM_ARB_TIMING_WAP2PRE */
	u_int32_t mc_emem_arb_timing_wap2pre;
	/* Specifies the value for MC_EMEM_ARB_TIMING_R2R */
	u_int32_t mc_emem_arb_timing_r2r;
	/* Specifies the value for MC_EMEM_ARB_TIMING_W2W */
	u_int32_t mc_emem_arb_timing_w2w;
	/* Specifies the value for MC_EMEM_ARB_TIMING_R2W */
	u_int32_t mc_emem_arb_timing_r2w;
	/* Specifies the value for MC_EMEM_ARB_TIMING_W2R */
	u_int32_t mc_emem_arb_timing_w2r;

	u_int32_t mc_emem_arb_timing_rfcpb;

	/* Specifies the value for MC_EMEM_ARB_DA_TURNS */
	u_int32_t mc_emem_arb_da_turns;
	/* Specifies the value for MC_EMEM_ARB_DA_COVERS */
	u_int32_t mc_emem_arb_da_covers;
	/* Specifies the value for MC_EMEM_ARB_MISC0 */
	u_int32_t mc_emem_arb_misc0;
	/* Specifies the value for MC_EMEM_ARB_MISC1 */
	u_int32_t mc_emem_arb_misc1;
	u_int32_t mc_emem_arb_misc2;

	/* Specifies the value for MC_EMEM_ARB_RING1_THROTTLE */
	u_int32_t mc_emem_arb_ring1_throttle;
	/* Specifies the value for MC_EMEM_ARB_OVERRIDE */
	u_int32_t mc_emem_arb_override;
	/* Specifies the value for MC_EMEM_ARB_OVERRIDE_1 */
	u_int32_t mc_emem_arb_override1;
	/* Specifies the value for MC_EMEM_ARB_RSV */
	u_int32_t mc_emem_arb_rsv;

	u_int32_t mc_da_cfg0;
	u_int32_t mc_emem_arb_timing_ccdmw;

	/* Specifies the value for MC_CLKEN_OVERRIDE */
	u_int32_t mc_clken_override;

	/* Specifies the value for MC_STAT_CONTROL */
	u_int32_t mc_stat_control;
	/* Specifies the value for MC_VIDEO_PROTECT_BOM */
	u_int32_t mc_video_protect_bom;
	/* Specifies the value for MC_VIDEO_PROTECT_BOM_ADR_HI */
	u_int32_t mc_video_protect_bom_adr_hi;
	/* Specifies the value for MC_VIDEO_PROTECT_SIZE_MB */
	u_int32_t mc_video_protect_size_mb;
	/* Specifies the value for MC_VIDEO_PROTECT_VPR_OVERRIDE */
	u_int32_t mc_video_protect_vpr_override;
	/* Specifies the value for MC_VIDEO_PROTECT_VPR_OVERRIDE1 */
	u_int32_t mc_video_protect_vpr_override1;
	/* Specifies the value for MC_VIDEO_PROTECT_GPU_OVERRIDE_0 */
	u_int32_t mc_video_protect_gpu_override0;
	/* Specifies the value for MC_VIDEO_PROTECT_GPU_OVERRIDE_1 */
	u_int32_t mc_video_protect_gpu_override1;
	/* Specifies the value for MC_SEC_CARVEOUT_BOM */
	u_int32_t mc_sec_carveout_bom;
	/* Specifies the value for MC_SEC_CARVEOUT_ADR_HI */
	u_int32_t mc_sec_carveout_adr_hi;
	/* Specifies the value for MC_SEC_CARVEOUT_SIZE_MB */
	u_int32_t mc_sec_carveout_size_mb;
	/* Specifies the value for MC_VIDEO_PROTECT_REG_CTRL.VIDEO_PROTECT_WRITE_ACCESS */
	u_int32_t mc_video_protect_write_access;
	/* Specifies the value for MC_SEC_CARVEOUT_REG_CTRL.SEC_CARVEOUT_WRITE_ACCESS */
	u_int32_t mc_sec_carveout_protect_write_access;

	u_int32_t mc_generalized_carveout1_bom;
	u_int32_t mc_generalized_carveout1_bom_hi;
	u_int32_t mc_generalized_carveout1_size_128kb;
	u_int32_t mc_generalized_carveout1_access0;
	u_int32_t mc_generalized_carveout1_access1;
	u_int32_t mc_generalized_carveout1_access2;
	u_int32_t mc_generalized_carveout1_access3;
	u_int32_t mc_generalized_carveout1_access4;
	u_int32_t mc_generalized_carveout1_force_internal_access0;
	u_int32_t mc_generalized_carveout1_force_internal_access1;
	u_int32_t mc_generalized_carveout1_force_internal_access2;
	u_int32_t mc_generalized_carveout1_force_internal_access3;
	u_int32_t mc_generalized_carveout1_force_internal_access4;
	u_int32_t mc_generalized_carveout1_cfg0;

	u_int32_t mc_generalized_carveout2_bom;
	u_int32_t mc_generalized_carveout2_bom_hi;
	u_int32_t mc_generalized_carveout2_size_128kb;
	u_int32_t mc_generalized_carveout2_access0;
	u_int32_t mc_generalized_carveout2_access1;
	u_int32_t mc_generalized_carveout2_access2;
	u_int32_t mc_generalized_carveout2_access3;
	u_int32_t mc_generalized_carveout2_access4;
	u_int32_t mc_generalized_carveout2_force_internal_access0;
	u_int32_t mc_generalized_carveout2_force_internal_access1;
	u_int32_t mc_generalized_carveout2_force_internal_access2;
	u_int32_t mc_generalized_carveout2_force_internal_access3;
	u_int32_t mc_generalized_carveout2_force_internal_access4;
	u_int32_t mc_generalized_carveout2_cfg0;

	u_int32_t mc_generalized_carveout3_bom;
	u_int32_t mc_generalized_carveout3_bom_hi;
	u_int32_t mc_generalized_carveout3_size_128kb;
	u_int32_t mc_generalized_carveout3_access0;
	u_int32_t mc_generalized_carveout3_access1;
	u_int32_t mc_generalized_carveout3_access2;
	u_int32_t mc_generalized_carveout3_access3;
	u_int32_t mc_generalized_carveout3_access4;
	u_int32_t mc_generalized_carveout3_force_internal_access0;
	u_int32_t mc_generalized_carveout3_force_internal_access1;
	u_int32_t mc_generalized_carveout3_force_internal_access2;
	u_int32_t mc_generalized_carveout3_force_internal_access3;
	u_int32_t mc_generalized_carveout3_force_internal_access4;
	u_int32_t mc_generalized_carveout3_cfg0;

	u_int32_t mc_generalized_carveout4_bom;
	u_int32_t mc_generalized_carveout4_bom_hi;
	u_int32_t mc_generalized_carveout4_size_128kb;
	u_int32_t mc_generalized_carveout4_access0;
	u_int32_t mc_generalized_carveout4_access1;
	u_int32_t mc_generalized_carveout4_access2;
	u_int32_t mc_generalized_carveout4_access3;
	u_int32_t mc_generalized_carveout4_access4;
	u_int32_t mc_generalized_carveout4_force_internal_access0;
	u_int32_t mc_generalized_carveout4_force_internal_access1;
	u_int32_t mc_generalized_carveout4_force_internal_access2;
	u_int32_t mc_generalized_carveout4_force_internal_access3;
	u_int32_t mc_generalized_carveout4_force_internal_access4;
	u_int32_t mc_generalized_carveout4_cfg0;

	u_int32_t mc_generalized_carveout5_bom;
	u_int32_t mc_generalized_carveout5_bom_hi;
	u_int32_t mc_generalized_carveout5_size_128kb;
	u_int32_t mc_generalized_carveout5_access0;
	u_int32_t mc_generalized_carveout5_access1;
	u_int32_t mc_generalized_carveout5_access2;
	u_int32_t mc_generalized_carveout5_access3;
	u_int32_t mc_generalized_carveout5_access4;
	u_int32_t mc_generalized_carveout5_force_internal_access0;
	u_int32_t mc_generalized_carveout5_force_internal_access1;
	u_int32_t mc_generalized_carveout5_force_internal_access2;
	u_int32_t mc_generalized_carveout5_force_internal_access3;
	u_int32_t mc_generalized_carveout5_force_internal_access4;
	u_int32_t mc_generalized_carveout5_cfg0;

	/* Specifies enable for CA training */
	u_int32_t emc_ca_training_enable;
	/* Set if bit 6 select is greater than bit 7 select; uses aremc.spec packet SWIZZLE_BIT6_GT_BIT7 */
	u_int32_t swizzle_rank_byte_encode;
	/* Specifies enable and offset for patched boot rom write */
	u_int32_t boot_rom_patch_control;
	/* Specifies data for patched boot rom write */
	u_int32_t boot_rom_patch_data;

	/* Specifies the value for MC_MTS_CARVEOUT_BOM */
	u_int32_t mc_mts_carveout_bom;
	/* Specifies the value for MC_MTS_CARVEOUT_ADR_HI */
	u_int32_t mc_mts_carveout_adr_hi;
	/* Specifies the value for MC_MTS_CARVEOUT_SIZE_MB */
	u_int32_t mc_mts_carveout_size_mb;
	/* Specifies the value for MC_MTS_CARVEOUT_REG_CTRL */
	u_int32_t mc_mts_carveout_reg_ctrl;
	/* End of generated code by warmboot_code_gen */

} nvboot_sdram_params;
#endif /* #ifndef INCLUDED_NVBOOT_SDRAM_PARAM_T210_H */