summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/regs/imx233/regs-dram.h
blob: 144861d2fd27f3aed3c368234218730dcbdd6701 (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
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
/***************************************************************************
 *             __________               __   ___.
 *   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
 *   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
 *   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
 *   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
 *                     \/            \/     \/    \/            \/
 * This file was automatically generated by headergen, DO NOT EDIT it.
 * headergen version: 2.1.7
 * XML versions: imx233:3.2.0
 *
 * Copyright (C) 2013 by Amaury Pouly
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
 * KIND, either express or implied.
 *
 ****************************************************************************/
#ifndef __HEADERGEN__IMX233__DRAM__H__
#define __HEADERGEN__IMX233__DRAM__H__

#define REGS_DRAM_BASE (0x800e0000)

#define REGS_DRAM_VERSION "3.2.0"

/**
 * Register: HW_DRAM_CTL00
 * Address: 0
 * SCT: no
*/
#define HW_DRAM_CTL00                       (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x0))
#define BP_DRAM_CTL00_RSVD4                 25
#define BM_DRAM_CTL00_RSVD4                 0xfe000000
#define BF_DRAM_CTL00_RSVD4(v)              (((v) << 25) & 0xfe000000)
#define BP_DRAM_CTL00_AHB0_W_PRIORITY       24
#define BM_DRAM_CTL00_AHB0_W_PRIORITY       0x1000000
#define BF_DRAM_CTL00_AHB0_W_PRIORITY(v)    (((v) << 24) & 0x1000000)
#define BP_DRAM_CTL00_RSVD3                 17
#define BM_DRAM_CTL00_RSVD3                 0xfe0000
#define BF_DRAM_CTL00_RSVD3(v)              (((v) << 17) & 0xfe0000)
#define BP_DRAM_CTL00_AHB0_R_PRIORITY       16
#define BM_DRAM_CTL00_AHB0_R_PRIORITY       0x10000
#define BF_DRAM_CTL00_AHB0_R_PRIORITY(v)    (((v) << 16) & 0x10000)
#define BP_DRAM_CTL00_RSVD2                 9
#define BM_DRAM_CTL00_RSVD2                 0xfe00
#define BF_DRAM_CTL00_RSVD2(v)              (((v) << 9) & 0xfe00)
#define BP_DRAM_CTL00_AHB0_FIFO_TYPE_REG    8
#define BM_DRAM_CTL00_AHB0_FIFO_TYPE_REG    0x100
#define BF_DRAM_CTL00_AHB0_FIFO_TYPE_REG(v) (((v) << 8) & 0x100)
#define BP_DRAM_CTL00_RSVD1                 1
#define BM_DRAM_CTL00_RSVD1                 0xfe
#define BF_DRAM_CTL00_RSVD1(v)              (((v) << 1) & 0xfe)
#define BP_DRAM_CTL00_ADDR_CMP_EN           0
#define BM_DRAM_CTL00_ADDR_CMP_EN           0x1
#define BF_DRAM_CTL00_ADDR_CMP_EN(v)        (((v) << 0) & 0x1)

/**
 * Register: HW_DRAM_CTL01
 * Address: 0x4
 * SCT: no
*/
#define HW_DRAM_CTL01                       (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x4))
#define BP_DRAM_CTL01_RSVD4                 25
#define BM_DRAM_CTL01_RSVD4                 0xfe000000
#define BF_DRAM_CTL01_RSVD4(v)              (((v) << 25) & 0xfe000000)
#define BP_DRAM_CTL01_AHB2_FIFO_TYPE_REG    24
#define BM_DRAM_CTL01_AHB2_FIFO_TYPE_REG    0x1000000
#define BF_DRAM_CTL01_AHB2_FIFO_TYPE_REG(v) (((v) << 24) & 0x1000000)
#define BP_DRAM_CTL01_RSVD3                 17
#define BM_DRAM_CTL01_RSVD3                 0xfe0000
#define BF_DRAM_CTL01_RSVD3(v)              (((v) << 17) & 0xfe0000)
#define BP_DRAM_CTL01_AHB1_W_PRIORITY       16
#define BM_DRAM_CTL01_AHB1_W_PRIORITY       0x10000
#define BF_DRAM_CTL01_AHB1_W_PRIORITY(v)    (((v) << 16) & 0x10000)
#define BP_DRAM_CTL01_RSVD2                 9
#define BM_DRAM_CTL01_RSVD2                 0xfe00
#define BF_DRAM_CTL01_RSVD2(v)              (((v) << 9) & 0xfe00)
#define BP_DRAM_CTL01_AHB1_R_PRIORITY       8
#define BM_DRAM_CTL01_AHB1_R_PRIORITY       0x100
#define BF_DRAM_CTL01_AHB1_R_PRIORITY(v)    (((v) << 8) & 0x100)
#define BP_DRAM_CTL01_RSVD1                 1
#define BM_DRAM_CTL01_RSVD1                 0xfe
#define BF_DRAM_CTL01_RSVD1(v)              (((v) << 1) & 0xfe)
#define BP_DRAM_CTL01_AHB1_FIFO_TYPE_REG    0
#define BM_DRAM_CTL01_AHB1_FIFO_TYPE_REG    0x1
#define BF_DRAM_CTL01_AHB1_FIFO_TYPE_REG(v) (((v) << 0) & 0x1)

/**
 * Register: HW_DRAM_CTL02
 * Address: 0x8
 * SCT: no
*/
#define HW_DRAM_CTL02                       (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x8))
#define BP_DRAM_CTL02_RSVD4                 25
#define BM_DRAM_CTL02_RSVD4                 0xfe000000
#define BF_DRAM_CTL02_RSVD4(v)              (((v) << 25) & 0xfe000000)
#define BP_DRAM_CTL02_AHB3_R_PRIORITY       24
#define BM_DRAM_CTL02_AHB3_R_PRIORITY       0x1000000
#define BF_DRAM_CTL02_AHB3_R_PRIORITY(v)    (((v) << 24) & 0x1000000)
#define BP_DRAM_CTL02_RSVD3                 17
#define BM_DRAM_CTL02_RSVD3                 0xfe0000
#define BF_DRAM_CTL02_RSVD3(v)              (((v) << 17) & 0xfe0000)
#define BP_DRAM_CTL02_AHB3_FIFO_TYPE_REG    16
#define BM_DRAM_CTL02_AHB3_FIFO_TYPE_REG    0x10000
#define BF_DRAM_CTL02_AHB3_FIFO_TYPE_REG(v) (((v) << 16) & 0x10000)
#define BP_DRAM_CTL02_RSVD2                 9
#define BM_DRAM_CTL02_RSVD2                 0xfe00
#define BF_DRAM_CTL02_RSVD2(v)              (((v) << 9) & 0xfe00)
#define BP_DRAM_CTL02_AHB2_W_PRIORITY       8
#define BM_DRAM_CTL02_AHB2_W_PRIORITY       0x100
#define BF_DRAM_CTL02_AHB2_W_PRIORITY(v)    (((v) << 8) & 0x100)
#define BP_DRAM_CTL02_RSVD1                 1
#define BM_DRAM_CTL02_RSVD1                 0xfe
#define BF_DRAM_CTL02_RSVD1(v)              (((v) << 1) & 0xfe)
#define BP_DRAM_CTL02_AHB2_R_PRIORITY       0
#define BM_DRAM_CTL02_AHB2_R_PRIORITY       0x1
#define BF_DRAM_CTL02_AHB2_R_PRIORITY(v)    (((v) << 0) & 0x1)

/**
 * Register: HW_DRAM_CTL03
 * Address: 0xc
 * SCT: no
*/
#define HW_DRAM_CTL03                       (*(volatile unsigned long *)(REGS_DRAM_BASE + 0xc))
#define BP_DRAM_CTL03_RSVD4                 25
#define BM_DRAM_CTL03_RSVD4                 0xfe000000
#define BF_DRAM_CTL03_RSVD4(v)              (((v) << 25) & 0xfe000000)
#define BP_DRAM_CTL03_AUTO_REFRESH_MODE     24
#define BM_DRAM_CTL03_AUTO_REFRESH_MODE     0x1000000
#define BF_DRAM_CTL03_AUTO_REFRESH_MODE(v)  (((v) << 24) & 0x1000000)
#define BP_DRAM_CTL03_RSVD3                 17
#define BM_DRAM_CTL03_RSVD3                 0xfe0000
#define BF_DRAM_CTL03_RSVD3(v)              (((v) << 17) & 0xfe0000)
#define BP_DRAM_CTL03_AREFRESH              16
#define BM_DRAM_CTL03_AREFRESH              0x10000
#define BF_DRAM_CTL03_AREFRESH(v)           (((v) << 16) & 0x10000)
#define BP_DRAM_CTL03_RSVD2                 9
#define BM_DRAM_CTL03_RSVD2                 0xfe00
#define BF_DRAM_CTL03_RSVD2(v)              (((v) << 9) & 0xfe00)
#define BP_DRAM_CTL03_AP                    8
#define BM_DRAM_CTL03_AP                    0x100
#define BF_DRAM_CTL03_AP(v)                 (((v) << 8) & 0x100)
#define BP_DRAM_CTL03_RSVD1                 1
#define BM_DRAM_CTL03_RSVD1                 0xfe
#define BF_DRAM_CTL03_RSVD1(v)              (((v) << 1) & 0xfe)
#define BP_DRAM_CTL03_AHB3_W_PRIORITY       0
#define BM_DRAM_CTL03_AHB3_W_PRIORITY       0x1
#define BF_DRAM_CTL03_AHB3_W_PRIORITY(v)    (((v) << 0) & 0x1)

/**
 * Register: HW_DRAM_CTL04
 * Address: 0x10
 * SCT: no
*/
#define HW_DRAM_CTL04                       (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x10))
#define BP_DRAM_CTL04_RSVD4                 25
#define BM_DRAM_CTL04_RSVD4                 0xfe000000
#define BF_DRAM_CTL04_RSVD4(v)              (((v) << 25) & 0xfe000000)
#define BP_DRAM_CTL04_DLL_BYPASS_MODE       24
#define BM_DRAM_CTL04_DLL_BYPASS_MODE       0x1000000
#define BF_DRAM_CTL04_DLL_BYPASS_MODE(v)    (((v) << 24) & 0x1000000)
#define BP_DRAM_CTL04_RSVD3                 17
#define BM_DRAM_CTL04_RSVD3                 0xfe0000
#define BF_DRAM_CTL04_RSVD3(v)              (((v) << 17) & 0xfe0000)
#define BP_DRAM_CTL04_DLLLOCKREG            16
#define BM_DRAM_CTL04_DLLLOCKREG            0x10000
#define BF_DRAM_CTL04_DLLLOCKREG(v)         (((v) << 16) & 0x10000)
#define BP_DRAM_CTL04_RSVD2                 9
#define BM_DRAM_CTL04_RSVD2                 0xfe00
#define BF_DRAM_CTL04_RSVD2(v)              (((v) << 9) & 0xfe00)
#define BP_DRAM_CTL04_CONCURRENTAP          8
#define BM_DRAM_CTL04_CONCURRENTAP          0x100
#define BF_DRAM_CTL04_CONCURRENTAP(v)       (((v) << 8) & 0x100)
#define BP_DRAM_CTL04_RSVD1                 1
#define BM_DRAM_CTL04_RSVD1                 0xfe
#define BF_DRAM_CTL04_RSVD1(v)              (((v) << 1) & 0xfe)
#define BP_DRAM_CTL04_BANK_SPLIT_EN         0
#define BM_DRAM_CTL04_BANK_SPLIT_EN         0x1
#define BF_DRAM_CTL04_BANK_SPLIT_EN(v)      (((v) << 0) & 0x1)

/**
 * Register: HW_DRAM_CTL05
 * Address: 0x14
 * SCT: no
*/
#define HW_DRAM_CTL05                       (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x14))
#define BP_DRAM_CTL05_RSVD4                 25
#define BM_DRAM_CTL05_RSVD4                 0xfe000000
#define BF_DRAM_CTL05_RSVD4(v)              (((v) << 25) & 0xfe000000)
#define BP_DRAM_CTL05_INTRPTREADA           24
#define BM_DRAM_CTL05_INTRPTREADA           0x1000000
#define BF_DRAM_CTL05_INTRPTREADA(v)        (((v) << 24) & 0x1000000)
#define BP_DRAM_CTL05_RSVD3                 17
#define BM_DRAM_CTL05_RSVD3                 0xfe0000
#define BF_DRAM_CTL05_RSVD3(v)              (((v) << 17) & 0xfe0000)
#define BP_DRAM_CTL05_INTRPTAPBURST         16
#define BM_DRAM_CTL05_INTRPTAPBURST         0x10000
#define BF_DRAM_CTL05_INTRPTAPBURST(v)      (((v) << 16) & 0x10000)
#define BP_DRAM_CTL05_RSVD2                 9
#define BM_DRAM_CTL05_RSVD2                 0xfe00
#define BF_DRAM_CTL05_RSVD2(v)              (((v) << 9) & 0xfe00)
#define BP_DRAM_CTL05_FAST_WRITE            8
#define BM_DRAM_CTL05_FAST_WRITE            0x100
#define BF_DRAM_CTL05_FAST_WRITE(v)         (((v) << 8) & 0x100)
#define BP_DRAM_CTL05_RSVD1                 1
#define BM_DRAM_CTL05_RSVD1                 0xfe
#define BF_DRAM_CTL05_RSVD1(v)              (((v) << 1) & 0xfe)
#define BP_DRAM_CTL05_EN_LOWPOWER_MODE      0
#define BM_DRAM_CTL05_EN_LOWPOWER_MODE      0x1
#define BF_DRAM_CTL05_EN_LOWPOWER_MODE(v)   (((v) << 0) & 0x1)

/**
 * Register: HW_DRAM_CTL06
 * Address: 0x18
 * SCT: no
*/
#define HW_DRAM_CTL06                   (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x18))
#define BP_DRAM_CTL06_RSVD4             25
#define BM_DRAM_CTL06_RSVD4             0xfe000000
#define BF_DRAM_CTL06_RSVD4(v)          (((v) << 25) & 0xfe000000)
#define BP_DRAM_CTL06_POWER_DOWN        24
#define BM_DRAM_CTL06_POWER_DOWN        0x1000000
#define BF_DRAM_CTL06_POWER_DOWN(v)     (((v) << 24) & 0x1000000)
#define BP_DRAM_CTL06_RSVD3             17
#define BM_DRAM_CTL06_RSVD3             0xfe0000
#define BF_DRAM_CTL06_RSVD3(v)          (((v) << 17) & 0xfe0000)
#define BP_DRAM_CTL06_PLACEMENT_EN      16
#define BM_DRAM_CTL06_PLACEMENT_EN      0x10000
#define BF_DRAM_CTL06_PLACEMENT_EN(v)   (((v) << 16) & 0x10000)
#define BP_DRAM_CTL06_RSVD2             9
#define BM_DRAM_CTL06_RSVD2             0xfe00
#define BF_DRAM_CTL06_RSVD2(v)          (((v) << 9) & 0xfe00)
#define BP_DRAM_CTL06_NO_CMD_INIT       8
#define BM_DRAM_CTL06_NO_CMD_INIT       0x100
#define BF_DRAM_CTL06_NO_CMD_INIT(v)    (((v) << 8) & 0x100)
#define BP_DRAM_CTL06_RSVD1             1
#define BM_DRAM_CTL06_RSVD1             0xfe
#define BF_DRAM_CTL06_RSVD1(v)          (((v) << 1) & 0xfe)
#define BP_DRAM_CTL06_INTRPTWRITEA      0
#define BM_DRAM_CTL06_INTRPTWRITEA      0x1
#define BF_DRAM_CTL06_INTRPTWRITEA(v)   (((v) << 0) & 0x1)

/**
 * Register: HW_DRAM_CTL07
 * Address: 0x1c
 * SCT: no
*/
#define HW_DRAM_CTL07                       (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x1c))
#define BP_DRAM_CTL07_RSVD4                 25
#define BM_DRAM_CTL07_RSVD4                 0xfe000000
#define BF_DRAM_CTL07_RSVD4(v)              (((v) << 25) & 0xfe000000)
#define BP_DRAM_CTL07_RW_SAME_EN            24
#define BM_DRAM_CTL07_RW_SAME_EN            0x1000000
#define BF_DRAM_CTL07_RW_SAME_EN(v)         (((v) << 24) & 0x1000000)
#define BP_DRAM_CTL07_RSVD3                 17
#define BM_DRAM_CTL07_RSVD3                 0xfe0000
#define BF_DRAM_CTL07_RSVD3(v)              (((v) << 17) & 0xfe0000)
#define BP_DRAM_CTL07_REG_DIMM_ENABLE       16
#define BM_DRAM_CTL07_REG_DIMM_ENABLE       0x10000
#define BF_DRAM_CTL07_REG_DIMM_ENABLE(v)    (((v) << 16) & 0x10000)
#define BP_DRAM_CTL07_RSVD2                 9
#define BM_DRAM_CTL07_RSVD2                 0xfe00
#define BF_DRAM_CTL07_RSVD2(v)              (((v) << 9) & 0xfe00)
#define BP_DRAM_CTL07_RD2RD_TURN            8
#define BM_DRAM_CTL07_RD2RD_TURN            0x100
#define BF_DRAM_CTL07_RD2RD_TURN(v)         (((v) << 8) & 0x100)
#define BP_DRAM_CTL07_RSVD1                 1
#define BM_DRAM_CTL07_RSVD1                 0xfe
#define BF_DRAM_CTL07_RSVD1(v)              (((v) << 1) & 0xfe)
#define BP_DRAM_CTL07_PRIORITY_EN           0
#define BM_DRAM_CTL07_PRIORITY_EN           0x1
#define BF_DRAM_CTL07_PRIORITY_EN(v)        (((v) << 0) & 0x1)

/**
 * Register: HW_DRAM_CTL08
 * Address: 0x20
 * SCT: no
*/
#define HW_DRAM_CTL08                   (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x20))
#define BP_DRAM_CTL08_RSVD4             25
#define BM_DRAM_CTL08_RSVD4             0xfe000000
#define BF_DRAM_CTL08_RSVD4(v)          (((v) << 25) & 0xfe000000)
#define BP_DRAM_CTL08_TRAS_LOCKOUT      24
#define BM_DRAM_CTL08_TRAS_LOCKOUT      0x1000000
#define BF_DRAM_CTL08_TRAS_LOCKOUT(v)   (((v) << 24) & 0x1000000)
#define BP_DRAM_CTL08_RSVD3             17
#define BM_DRAM_CTL08_RSVD3             0xfe0000
#define BF_DRAM_CTL08_RSVD3(v)          (((v) << 17) & 0xfe0000)
#define BP_DRAM_CTL08_START             16
#define BM_DRAM_CTL08_START             0x10000
#define BF_DRAM_CTL08_START(v)          (((v) << 16) & 0x10000)
#define BP_DRAM_CTL08_RSVD2             9
#define BM_DRAM_CTL08_RSVD2             0xfe00
#define BF_DRAM_CTL08_RSVD2(v)          (((v) << 9) & 0xfe00)
#define BP_DRAM_CTL08_SREFRESH          8
#define BM_DRAM_CTL08_SREFRESH          0x100
#define BF_DRAM_CTL08_SREFRESH(v)       (((v) << 8) & 0x100)
#define BP_DRAM_CTL08_RSVD1             1
#define BM_DRAM_CTL08_RSVD1             0xfe
#define BF_DRAM_CTL08_RSVD1(v)          (((v) << 1) & 0xfe)
#define BP_DRAM_CTL08_SDR_MODE          0
#define BM_DRAM_CTL08_SDR_MODE          0x1
#define BF_DRAM_CTL08_SDR_MODE(v)       (((v) << 0) & 0x1)

/**
 * Register: HW_DRAM_CTL09
 * Address: 0x24
 * SCT: no
*/
#define HW_DRAM_CTL09                           (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x24))
#define BP_DRAM_CTL09_RSVD4                     26
#define BM_DRAM_CTL09_RSVD4                     0xfc000000
#define BF_DRAM_CTL09_RSVD4(v)                  (((v) << 26) & 0xfc000000)
#define BP_DRAM_CTL09_OUT_OF_RANGE_TYPE         24
#define BM_DRAM_CTL09_OUT_OF_RANGE_TYPE         0x3000000
#define BF_DRAM_CTL09_OUT_OF_RANGE_TYPE(v)      (((v) << 24) & 0x3000000)
#define BP_DRAM_CTL09_RSVD3                     18
#define BM_DRAM_CTL09_RSVD3                     0xfc0000
#define BF_DRAM_CTL09_RSVD3(v)                  (((v) << 18) & 0xfc0000)
#define BP_DRAM_CTL09_OUT_OF_RANGE_SOURCE_ID    16
#define BM_DRAM_CTL09_OUT_OF_RANGE_SOURCE_ID    0x30000
#define BF_DRAM_CTL09_OUT_OF_RANGE_SOURCE_ID(v) (((v) << 16) & 0x30000)
#define BP_DRAM_CTL09_RSVD2                     9
#define BM_DRAM_CTL09_RSVD2                     0xfe00
#define BF_DRAM_CTL09_RSVD2(v)                  (((v) << 9) & 0xfe00)
#define BP_DRAM_CTL09_WRITE_MODEREG             8
#define BM_DRAM_CTL09_WRITE_MODEREG             0x100
#define BF_DRAM_CTL09_WRITE_MODEREG(v)          (((v) << 8) & 0x100)
#define BP_DRAM_CTL09_RSVD1                     1
#define BM_DRAM_CTL09_RSVD1                     0xfe
#define BF_DRAM_CTL09_RSVD1(v)                  (((v) << 1) & 0xfe)
#define BP_DRAM_CTL09_WRITEINTERP               0
#define BM_DRAM_CTL09_WRITEINTERP               0x1
#define BF_DRAM_CTL09_WRITEINTERP(v)            (((v) << 0) & 0x1)

/**
 * Register: HW_DRAM_CTL10
 * Address: 0x28
 * SCT: no
*/
#define HW_DRAM_CTL10               (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x28))
#define BP_DRAM_CTL10_RSVD4         27
#define BM_DRAM_CTL10_RSVD4         0xf8000000
#define BF_DRAM_CTL10_RSVD4(v)      (((v) << 27) & 0xf8000000)
#define BP_DRAM_CTL10_AGE_COUNT     24
#define BM_DRAM_CTL10_AGE_COUNT     0x7000000
#define BF_DRAM_CTL10_AGE_COUNT(v)  (((v) << 24) & 0x7000000)
#define BP_DRAM_CTL10_RSVD3         19
#define BM_DRAM_CTL10_RSVD3         0xf80000
#define BF_DRAM_CTL10_RSVD3(v)      (((v) << 19) & 0xf80000)
#define BP_DRAM_CTL10_ADDR_PINS     16
#define BM_DRAM_CTL10_ADDR_PINS     0x70000
#define BF_DRAM_CTL10_ADDR_PINS(v)  (((v) << 16) & 0x70000)
#define BP_DRAM_CTL10_RSVD2         10
#define BM_DRAM_CTL10_RSVD2         0xfc00
#define BF_DRAM_CTL10_RSVD2(v)      (((v) << 10) & 0xfc00)
#define BP_DRAM_CTL10_TEMRS         8
#define BM_DRAM_CTL10_TEMRS         0x300
#define BF_DRAM_CTL10_TEMRS(v)      (((v) << 8) & 0x300)
#define BP_DRAM_CTL10_RSVD1         2
#define BM_DRAM_CTL10_RSVD1         0xfc
#define BF_DRAM_CTL10_RSVD1(v)      (((v) << 2) & 0xfc)
#define BP_DRAM_CTL10_Q_FULLNESS    0
#define BM_DRAM_CTL10_Q_FULLNESS    0x3
#define BF_DRAM_CTL10_Q_FULLNESS(v) (((v) << 0) & 0x3)

/**
 * Register: HW_DRAM_CTL11
 * Address: 0x2c
 * SCT: no
*/
#define HW_DRAM_CTL11                       (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x2c))
#define BP_DRAM_CTL11_RSVD4                 27
#define BM_DRAM_CTL11_RSVD4                 0xf8000000
#define BF_DRAM_CTL11_RSVD4(v)              (((v) << 27) & 0xf8000000)
#define BP_DRAM_CTL11_MAX_CS_REG            24
#define BM_DRAM_CTL11_MAX_CS_REG            0x7000000
#define BF_DRAM_CTL11_MAX_CS_REG(v)         (((v) << 24) & 0x7000000)
#define BP_DRAM_CTL11_RSVD3                 19
#define BM_DRAM_CTL11_RSVD3                 0xf80000
#define BF_DRAM_CTL11_RSVD3(v)              (((v) << 19) & 0xf80000)
#define BP_DRAM_CTL11_COMMAND_AGE_COUNT     16
#define BM_DRAM_CTL11_COMMAND_AGE_COUNT     0x70000
#define BF_DRAM_CTL11_COMMAND_AGE_COUNT(v)  (((v) << 16) & 0x70000)
#define BP_DRAM_CTL11_RSVD2                 11
#define BM_DRAM_CTL11_RSVD2                 0xf800
#define BF_DRAM_CTL11_RSVD2(v)              (((v) << 11) & 0xf800)
#define BP_DRAM_CTL11_COLUMN_SIZE           8
#define BM_DRAM_CTL11_COLUMN_SIZE           0x700
#define BF_DRAM_CTL11_COLUMN_SIZE(v)        (((v) << 8) & 0x700)
#define BP_DRAM_CTL11_RSVD1                 3
#define BM_DRAM_CTL11_RSVD1                 0xf8
#define BF_DRAM_CTL11_RSVD1(v)              (((v) << 3) & 0xf8)
#define BP_DRAM_CTL11_CASLAT                0
#define BM_DRAM_CTL11_CASLAT                0x7
#define BF_DRAM_CTL11_CASLAT(v)             (((v) << 0) & 0x7)

/**
 * Register: HW_DRAM_CTL12
 * Address: 0x30
 * SCT: no
*/
#define HW_DRAM_CTL12               (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x30))
#define BP_DRAM_CTL12_RSVD3         27
#define BM_DRAM_CTL12_RSVD3         0xf8000000
#define BF_DRAM_CTL12_RSVD3(v)      (((v) << 27) & 0xf8000000)
#define BP_DRAM_CTL12_TWR_INT       24
#define BM_DRAM_CTL12_TWR_INT       0x7000000
#define BF_DRAM_CTL12_TWR_INT(v)    (((v) << 24) & 0x7000000)
#define BP_DRAM_CTL12_RSVD2         19
#define BM_DRAM_CTL12_RSVD2         0xf80000
#define BF_DRAM_CTL12_RSVD2(v)      (((v) << 19) & 0xf80000)
#define BP_DRAM_CTL12_TRRD          16
#define BM_DRAM_CTL12_TRRD          0x70000
#define BF_DRAM_CTL12_TRRD(v)       (((v) << 16) & 0x70000)
#define BP_DRAM_CTL12_OBSOLETE      8
#define BM_DRAM_CTL12_OBSOLETE      0xff00
#define BF_DRAM_CTL12_OBSOLETE(v)   (((v) << 8) & 0xff00)
#define BP_DRAM_CTL12_RSVD1         3
#define BM_DRAM_CTL12_RSVD1         0xf8
#define BF_DRAM_CTL12_RSVD1(v)      (((v) << 3) & 0xf8)
#define BP_DRAM_CTL12_TCKE          0
#define BM_DRAM_CTL12_TCKE          0x7
#define BF_DRAM_CTL12_TCKE(v)       (((v) << 0) & 0x7)

/**
 * Register: HW_DRAM_CTL13
 * Address: 0x34
 * SCT: no
*/
#define HW_DRAM_CTL13                       (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x34))
#define BP_DRAM_CTL13_RSVD4                 28
#define BM_DRAM_CTL13_RSVD4                 0xf0000000
#define BF_DRAM_CTL13_RSVD4(v)              (((v) << 28) & 0xf0000000)
#define BP_DRAM_CTL13_CASLAT_LIN_GATE       24
#define BM_DRAM_CTL13_CASLAT_LIN_GATE       0xf000000
#define BF_DRAM_CTL13_CASLAT_LIN_GATE(v)    (((v) << 24) & 0xf000000)
#define BP_DRAM_CTL13_RSVD3                 20
#define BM_DRAM_CTL13_RSVD3                 0xf00000
#define BF_DRAM_CTL13_RSVD3(v)              (((v) << 20) & 0xf00000)
#define BP_DRAM_CTL13_CASLAT_LIN            16
#define BM_DRAM_CTL13_CASLAT_LIN            0xf0000
#define BF_DRAM_CTL13_CASLAT_LIN(v)         (((v) << 16) & 0xf0000)
#define BP_DRAM_CTL13_RSVD2                 12
#define BM_DRAM_CTL13_RSVD2                 0xf000
#define BF_DRAM_CTL13_RSVD2(v)              (((v) << 12) & 0xf000)
#define BP_DRAM_CTL13_APREBIT               8
#define BM_DRAM_CTL13_APREBIT               0xf00
#define BF_DRAM_CTL13_APREBIT(v)            (((v) << 8) & 0xf00)
#define BP_DRAM_CTL13_RSVD1                 3
#define BM_DRAM_CTL13_RSVD1                 0xf8
#define BF_DRAM_CTL13_RSVD1(v)              (((v) << 3) & 0xf8)
#define BP_DRAM_CTL13_TWTR                  0
#define BM_DRAM_CTL13_TWTR                  0x7
#define BF_DRAM_CTL13_TWTR(v)               (((v) << 0) & 0x7)

/**
 * Register: HW_DRAM_CTL14
 * Address: 0x38
 * SCT: no
*/
#define HW_DRAM_CTL14                               (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x38))
#define BP_DRAM_CTL14_RSVD4                         28
#define BM_DRAM_CTL14_RSVD4                         0xf0000000
#define BF_DRAM_CTL14_RSVD4(v)                      (((v) << 28) & 0xf0000000)
#define BP_DRAM_CTL14_MAX_COL_REG                   24
#define BM_DRAM_CTL14_MAX_COL_REG                   0xf000000
#define BF_DRAM_CTL14_MAX_COL_REG(v)                (((v) << 24) & 0xf000000)
#define BP_DRAM_CTL14_RSVD3                         20
#define BM_DRAM_CTL14_RSVD3                         0xf00000
#define BF_DRAM_CTL14_RSVD3(v)                      (((v) << 20) & 0xf00000)
#define BP_DRAM_CTL14_LOWPOWER_REFRESH_ENABLE       16
#define BM_DRAM_CTL14_LOWPOWER_REFRESH_ENABLE       0xf0000
#define BF_DRAM_CTL14_LOWPOWER_REFRESH_ENABLE(v)    (((v) << 16) & 0xf0000)
#define BP_DRAM_CTL14_RSVD2                         12
#define BM_DRAM_CTL14_RSVD2                         0xf000
#define BF_DRAM_CTL14_RSVD2(v)                      (((v) << 12) & 0xf000)
#define BP_DRAM_CTL14_INITAREF                      8
#define BM_DRAM_CTL14_INITAREF                      0xf00
#define BF_DRAM_CTL14_INITAREF(v)                   (((v) << 8) & 0xf00)
#define BP_DRAM_CTL14_RSVD1                         4
#define BM_DRAM_CTL14_RSVD1                         0xf0
#define BF_DRAM_CTL14_RSVD1(v)                      (((v) << 4) & 0xf0)
#define BP_DRAM_CTL14_CS_MAP                        0
#define BM_DRAM_CTL14_CS_MAP                        0xf
#define BF_DRAM_CTL14_CS_MAP(v)                     (((v) << 0) & 0xf)

/**
 * Register: HW_DRAM_CTL15
 * Address: 0x3c
 * SCT: no
*/
#define HW_DRAM_CTL15                   (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x3c))
#define BP_DRAM_CTL15_RSVD4             28
#define BM_DRAM_CTL15_RSVD4             0xf0000000
#define BF_DRAM_CTL15_RSVD4(v)          (((v) << 28) & 0xf0000000)
#define BP_DRAM_CTL15_TRP               24
#define BM_DRAM_CTL15_TRP               0xf000000
#define BF_DRAM_CTL15_TRP(v)            (((v) << 24) & 0xf000000)
#define BP_DRAM_CTL15_RSVD3             20
#define BM_DRAM_CTL15_RSVD3             0xf00000
#define BF_DRAM_CTL15_RSVD3(v)          (((v) << 20) & 0xf00000)
#define BP_DRAM_CTL15_TDAL              16
#define BM_DRAM_CTL15_TDAL              0xf0000
#define BF_DRAM_CTL15_TDAL(v)           (((v) << 16) & 0xf0000)
#define BP_DRAM_CTL15_RSVD2             12
#define BM_DRAM_CTL15_RSVD2             0xf000
#define BF_DRAM_CTL15_RSVD2(v)          (((v) << 12) & 0xf000)
#define BP_DRAM_CTL15_PORT_BUSY         8
#define BM_DRAM_CTL15_PORT_BUSY         0xf00
#define BF_DRAM_CTL15_PORT_BUSY(v)      (((v) << 8) & 0xf00)
#define BP_DRAM_CTL15_RSVD1             4
#define BM_DRAM_CTL15_RSVD1             0xf0
#define BF_DRAM_CTL15_RSVD1(v)          (((v) << 4) & 0xf0)
#define BP_DRAM_CTL15_MAX_ROW_REG       0
#define BM_DRAM_CTL15_MAX_ROW_REG       0xf
#define BF_DRAM_CTL15_MAX_ROW_REG(v)    (((v) << 0) & 0xf)

/**
 * Register: HW_DRAM_CTL16
 * Address: 0x40
 * SCT: no
*/
#define HW_DRAM_CTL16                           (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x40))
#define BP_DRAM_CTL16_RSVD4                     29
#define BM_DRAM_CTL16_RSVD4                     0xe0000000
#define BF_DRAM_CTL16_RSVD4(v)                  (((v) << 29) & 0xe0000000)
#define BP_DRAM_CTL16_TMRD                      24
#define BM_DRAM_CTL16_TMRD                      0x1f000000
#define BF_DRAM_CTL16_TMRD(v)                   (((v) << 24) & 0x1f000000)
#define BP_DRAM_CTL16_RSVD3                     21
#define BM_DRAM_CTL16_RSVD3                     0xe00000
#define BF_DRAM_CTL16_RSVD3(v)                  (((v) << 21) & 0xe00000)
#define BP_DRAM_CTL16_LOWPOWER_CONTROL          16
#define BM_DRAM_CTL16_LOWPOWER_CONTROL          0x1f0000
#define BF_DRAM_CTL16_LOWPOWER_CONTROL(v)       (((v) << 16) & 0x1f0000)
#define BP_DRAM_CTL16_RSVD2                     13
#define BM_DRAM_CTL16_RSVD2                     0xe000
#define BF_DRAM_CTL16_RSVD2(v)                  (((v) << 13) & 0xe000)
#define BP_DRAM_CTL16_LOWPOWER_AUTO_ENABLE      8
#define BM_DRAM_CTL16_LOWPOWER_AUTO_ENABLE      0x1f00
#define BF_DRAM_CTL16_LOWPOWER_AUTO_ENABLE(v)   (((v) << 8) & 0x1f00)
#define BP_DRAM_CTL16_RSVD1                     4
#define BM_DRAM_CTL16_RSVD1                     0xf0
#define BF_DRAM_CTL16_RSVD1(v)                  (((v) << 4) & 0xf0)
#define BP_DRAM_CTL16_INT_ACK                   0
#define BM_DRAM_CTL16_INT_ACK                   0xf
#define BF_DRAM_CTL16_INT_ACK(v)                (((v) << 0) & 0xf)

/**
 * Register: HW_DRAM_CTL17
 * Address: 0x44
 * SCT: no
*/
#define HW_DRAM_CTL17                       (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x44))
#define BP_DRAM_CTL17_DLL_START_POINT       24
#define BM_DRAM_CTL17_DLL_START_POINT       0xff000000
#define BF_DRAM_CTL17_DLL_START_POINT(v)    (((v) << 24) & 0xff000000)
#define BP_DRAM_CTL17_DLL_LOCK              16
#define BM_DRAM_CTL17_DLL_LOCK              0xff0000
#define BF_DRAM_CTL17_DLL_LOCK(v)           (((v) << 16) & 0xff0000)
#define BP_DRAM_CTL17_DLL_INCREMENT         8
#define BM_DRAM_CTL17_DLL_INCREMENT         0xff00
#define BF_DRAM_CTL17_DLL_INCREMENT(v)      (((v) << 8) & 0xff00)
#define BP_DRAM_CTL17_RSVD1                 5
#define BM_DRAM_CTL17_RSVD1                 0xe0
#define BF_DRAM_CTL17_RSVD1(v)              (((v) << 5) & 0xe0)
#define BP_DRAM_CTL17_TRC                   0
#define BM_DRAM_CTL17_TRC                   0x1f
#define BF_DRAM_CTL17_TRC(v)                (((v) << 0) & 0x1f)

/**
 * Register: HW_DRAM_CTL18
 * Address: 0x48
 * SCT: no
*/
#define HW_DRAM_CTL18                       (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x48))
#define BP_DRAM_CTL18_RSVD4                 31
#define BM_DRAM_CTL18_RSVD4                 0x80000000
#define BF_DRAM_CTL18_RSVD4(v)              (((v) << 31) & 0x80000000)
#define BP_DRAM_CTL18_DLL_DQS_DELAY_1       24
#define BM_DRAM_CTL18_DLL_DQS_DELAY_1       0x7f000000
#define BF_DRAM_CTL18_DLL_DQS_DELAY_1(v)    (((v) << 24) & 0x7f000000)
#define BP_DRAM_CTL18_RSVD3                 23
#define BM_DRAM_CTL18_RSVD3                 0x800000
#define BF_DRAM_CTL18_RSVD3(v)              (((v) << 23) & 0x800000)
#define BP_DRAM_CTL18_DLL_DQS_DELAY_0       16
#define BM_DRAM_CTL18_DLL_DQS_DELAY_0       0x7f0000
#define BF_DRAM_CTL18_DLL_DQS_DELAY_0(v)    (((v) << 16) & 0x7f0000)
#define BP_DRAM_CTL18_RSVD2                 13
#define BM_DRAM_CTL18_RSVD2                 0xe000
#define BF_DRAM_CTL18_RSVD2(v)              (((v) << 13) & 0xe000)
#define BP_DRAM_CTL18_INT_STATUS            8
#define BM_DRAM_CTL18_INT_STATUS            0x1f00
#define BF_DRAM_CTL18_INT_STATUS(v)         (((v) << 8) & 0x1f00)
#define BP_DRAM_CTL18_RSVD1                 5
#define BM_DRAM_CTL18_RSVD1                 0xe0
#define BF_DRAM_CTL18_RSVD1(v)              (((v) << 5) & 0xe0)
#define BP_DRAM_CTL18_INT_MASK              0
#define BM_DRAM_CTL18_INT_MASK              0x1f
#define BF_DRAM_CTL18_INT_MASK(v)           (((v) << 0) & 0x1f)

/**
 * Register: HW_DRAM_CTL19
 * Address: 0x4c
 * SCT: no
*/
#define HW_DRAM_CTL19                           (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x4c))
#define BP_DRAM_CTL19_DQS_OUT_SHIFT_BYPASS      24
#define BM_DRAM_CTL19_DQS_OUT_SHIFT_BYPASS      0xff000000
#define BF_DRAM_CTL19_DQS_OUT_SHIFT_BYPASS(v)   (((v) << 24) & 0xff000000)
#define BP_DRAM_CTL19_RSVD1                     23
#define BM_DRAM_CTL19_RSVD1                     0x800000
#define BF_DRAM_CTL19_RSVD1(v)                  (((v) << 23) & 0x800000)
#define BP_DRAM_CTL19_DQS_OUT_SHIFT             16
#define BM_DRAM_CTL19_DQS_OUT_SHIFT             0x7f0000
#define BF_DRAM_CTL19_DQS_OUT_SHIFT(v)          (((v) << 16) & 0x7f0000)
#define BP_DRAM_CTL19_DLL_DQS_DELAY_BYPASS_1    8
#define BM_DRAM_CTL19_DLL_DQS_DELAY_BYPASS_1    0xff00
#define BF_DRAM_CTL19_DLL_DQS_DELAY_BYPASS_1(v) (((v) << 8) & 0xff00)
#define BP_DRAM_CTL19_DLL_DQS_DELAY_BYPASS_0    0
#define BM_DRAM_CTL19_DLL_DQS_DELAY_BYPASS_0    0xff
#define BF_DRAM_CTL19_DLL_DQS_DELAY_BYPASS_0(v) (((v) << 0) & 0xff)

/**
 * Register: HW_DRAM_CTL20
 * Address: 0x50
 * SCT: no
*/
#define HW_DRAM_CTL20                           (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x50))
#define BP_DRAM_CTL20_TRCD_INT                  24
#define BM_DRAM_CTL20_TRCD_INT                  0xff000000
#define BF_DRAM_CTL20_TRCD_INT(v)               (((v) << 24) & 0xff000000)
#define BP_DRAM_CTL20_TRAS_MIN                  16
#define BM_DRAM_CTL20_TRAS_MIN                  0xff0000
#define BF_DRAM_CTL20_TRAS_MIN(v)               (((v) << 16) & 0xff0000)
#define BP_DRAM_CTL20_WR_DQS_SHIFT_BYPASS       8
#define BM_DRAM_CTL20_WR_DQS_SHIFT_BYPASS       0xff00
#define BF_DRAM_CTL20_WR_DQS_SHIFT_BYPASS(v)    (((v) << 8) & 0xff00)
#define BP_DRAM_CTL20_RSVD1                     7
#define BM_DRAM_CTL20_RSVD1                     0x80
#define BF_DRAM_CTL20_RSVD1(v)                  (((v) << 7) & 0x80)
#define BP_DRAM_CTL20_WR_DQS_SHIFT              0
#define BM_DRAM_CTL20_WR_DQS_SHIFT              0x7f
#define BF_DRAM_CTL20_WR_DQS_SHIFT(v)           (((v) << 0) & 0x7f)

/**
 * Register: HW_DRAM_CTL21
 * Address: 0x54
 * SCT: no
*/
#define HW_DRAM_CTL21                           (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x54))
#define BP_DRAM_CTL21_OBSOLETE                  24
#define BM_DRAM_CTL21_OBSOLETE                  0xff000000
#define BF_DRAM_CTL21_OBSOLETE(v)               (((v) << 24) & 0xff000000)
#define BP_DRAM_CTL21_RSVD1                     18
#define BM_DRAM_CTL21_RSVD1                     0xfc0000
#define BF_DRAM_CTL21_RSVD1(v)                  (((v) << 18) & 0xfc0000)
#define BP_DRAM_CTL21_OUT_OF_RANGE_LENGTH       8
#define BM_DRAM_CTL21_OUT_OF_RANGE_LENGTH       0x3ff00
#define BF_DRAM_CTL21_OUT_OF_RANGE_LENGTH(v)    (((v) << 8) & 0x3ff00)
#define BP_DRAM_CTL21_TRFC                      0
#define BM_DRAM_CTL21_TRFC                      0xff
#define BF_DRAM_CTL21_TRFC(v)                   (((v) << 0) & 0xff)

/**
 * Register: HW_DRAM_CTL22
 * Address: 0x58
 * SCT: no
*/
#define HW_DRAM_CTL22               (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x58))
#define BP_DRAM_CTL22_RSVD2         27
#define BM_DRAM_CTL22_RSVD2         0xf8000000
#define BF_DRAM_CTL22_RSVD2(v)      (((v) << 27) & 0xf8000000)
#define BP_DRAM_CTL22_AHB0_WRCNT    16
#define BM_DRAM_CTL22_AHB0_WRCNT    0x7ff0000
#define BF_DRAM_CTL22_AHB0_WRCNT(v) (((v) << 16) & 0x7ff0000)
#define BP_DRAM_CTL22_RSVD1         11
#define BM_DRAM_CTL22_RSVD1         0xf800
#define BF_DRAM_CTL22_RSVD1(v)      (((v) << 11) & 0xf800)
#define BP_DRAM_CTL22_AHB0_RDCNT    0
#define BM_DRAM_CTL22_AHB0_RDCNT    0x7ff
#define BF_DRAM_CTL22_AHB0_RDCNT(v) (((v) << 0) & 0x7ff)

/**
 * Register: HW_DRAM_CTL23
 * Address: 0x5c
 * SCT: no
*/
#define HW_DRAM_CTL23               (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x5c))
#define BP_DRAM_CTL23_RSVD2         27
#define BM_DRAM_CTL23_RSVD2         0xf8000000
#define BF_DRAM_CTL23_RSVD2(v)      (((v) << 27) & 0xf8000000)
#define BP_DRAM_CTL23_AHB1_WRCNT    16
#define BM_DRAM_CTL23_AHB1_WRCNT    0x7ff0000
#define BF_DRAM_CTL23_AHB1_WRCNT(v) (((v) << 16) & 0x7ff0000)
#define BP_DRAM_CTL23_RSVD1         11
#define BM_DRAM_CTL23_RSVD1         0xf800
#define BF_DRAM_CTL23_RSVD1(v)      (((v) << 11) & 0xf800)
#define BP_DRAM_CTL23_AHB1_RDCNT    0
#define BM_DRAM_CTL23_AHB1_RDCNT    0x7ff
#define BF_DRAM_CTL23_AHB1_RDCNT(v) (((v) << 0) & 0x7ff)

/**
 * Register: HW_DRAM_CTL24
 * Address: 0x60
 * SCT: no
*/
#define HW_DRAM_CTL24               (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x60))
#define BP_DRAM_CTL24_RSVD2         27
#define BM_DRAM_CTL24_RSVD2         0xf8000000
#define BF_DRAM_CTL24_RSVD2(v)      (((v) << 27) & 0xf8000000)
#define BP_DRAM_CTL24_AHB2_WRCNT    16
#define BM_DRAM_CTL24_AHB2_WRCNT    0x7ff0000
#define BF_DRAM_CTL24_AHB2_WRCNT(v) (((v) << 16) & 0x7ff0000)
#define BP_DRAM_CTL24_RSVD1         11
#define BM_DRAM_CTL24_RSVD1         0xf800
#define BF_DRAM_CTL24_RSVD1(v)      (((v) << 11) & 0xf800)
#define BP_DRAM_CTL24_AHB2_RDCNT    0
#define BM_DRAM_CTL24_AHB2_RDCNT    0x7ff
#define BF_DRAM_CTL24_AHB2_RDCNT(v) (((v) << 0) & 0x7ff)

/**
 * Register: HW_DRAM_CTL25
 * Address: 0x64
 * SCT: no
*/
#define HW_DRAM_CTL25               (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x64))
#define BP_DRAM_CTL25_RSVD2         27
#define BM_DRAM_CTL25_RSVD2         0xf8000000
#define BF_DRAM_CTL25_RSVD2(v)      (((v) << 27) & 0xf8000000)
#define BP_DRAM_CTL25_AHB3_WRCNT    16
#define BM_DRAM_CTL25_AHB3_WRCNT    0x7ff0000
#define BF_DRAM_CTL25_AHB3_WRCNT(v) (((v) << 16) & 0x7ff0000)
#define BP_DRAM_CTL25_RSVD1         11
#define BM_DRAM_CTL25_RSVD1         0xf800
#define BF_DRAM_CTL25_RSVD1(v)      (((v) << 11) & 0xf800)
#define BP_DRAM_CTL25_AHB3_RDCNT    0
#define BM_DRAM_CTL25_AHB3_RDCNT    0x7ff
#define BF_DRAM_CTL25_AHB3_RDCNT(v) (((v) << 0) & 0x7ff)

/**
 * Register: HW_DRAM_CTL26
 * Address: 0x68
 * SCT: no
*/
#define HW_DRAM_CTL26               (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x68))
#define BP_DRAM_CTL26_OBSOLETE      16
#define BM_DRAM_CTL26_OBSOLETE      0xffff0000
#define BF_DRAM_CTL26_OBSOLETE(v)   (((v) << 16) & 0xffff0000)
#define BP_DRAM_CTL26_RSVD1         12
#define BM_DRAM_CTL26_RSVD1         0xf000
#define BF_DRAM_CTL26_RSVD1(v)      (((v) << 12) & 0xf000)
#define BP_DRAM_CTL26_TREF          0
#define BM_DRAM_CTL26_TREF          0xfff
#define BF_DRAM_CTL26_TREF(v)       (((v) << 0) & 0xfff)

/**
 * Register: HW_DRAM_CTL27
 * Address: 0x6c
 * SCT: no
*/
#define HW_DRAM_CTL27               (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x6c))
#define BP_DRAM_CTL27_OBSOLETE      0
#define BM_DRAM_CTL27_OBSOLETE      0xffffffff
#define BF_DRAM_CTL27_OBSOLETE(v)   (((v) << 0) & 0xffffffff)

/**
 * Register: HW_DRAM_CTL28
 * Address: 0x70
 * SCT: no
*/
#define HW_DRAM_CTL28               (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x70))
#define BP_DRAM_CTL28_OBSOLETE      0
#define BM_DRAM_CTL28_OBSOLETE      0xffffffff
#define BF_DRAM_CTL28_OBSOLETE(v)   (((v) << 0) & 0xffffffff)

/**
 * Register: HW_DRAM_CTL29
 * Address: 0x74
 * SCT: no
*/
#define HW_DRAM_CTL29                           (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x74))
#define BP_DRAM_CTL29_LOWPOWER_INTERNAL_CNT     16
#define BM_DRAM_CTL29_LOWPOWER_INTERNAL_CNT     0xffff0000
#define BF_DRAM_CTL29_LOWPOWER_INTERNAL_CNT(v)  (((v) << 16) & 0xffff0000)
#define BP_DRAM_CTL29_LOWPOWER_EXTERNAL_CNT     0
#define BM_DRAM_CTL29_LOWPOWER_EXTERNAL_CNT     0xffff
#define BF_DRAM_CTL29_LOWPOWER_EXTERNAL_CNT(v)  (((v) << 0) & 0xffff)

/**
 * Register: HW_DRAM_CTL30
 * Address: 0x78
 * SCT: no
*/
#define HW_DRAM_CTL30                               (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x78))
#define BP_DRAM_CTL30_LOWPOWER_REFRESH_HOLD         16
#define BM_DRAM_CTL30_LOWPOWER_REFRESH_HOLD         0xffff0000
#define BF_DRAM_CTL30_LOWPOWER_REFRESH_HOLD(v)      (((v) << 16) & 0xffff0000)
#define BP_DRAM_CTL30_LOWPOWER_POWER_DOWN_CNT       0
#define BM_DRAM_CTL30_LOWPOWER_POWER_DOWN_CNT       0xffff
#define BF_DRAM_CTL30_LOWPOWER_POWER_DOWN_CNT(v)    (((v) << 0) & 0xffff)

/**
 * Register: HW_DRAM_CTL31
 * Address: 0x7c
 * SCT: no
*/
#define HW_DRAM_CTL31                               (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x7c))
#define BP_DRAM_CTL31_TDLL                          16
#define BM_DRAM_CTL31_TDLL                          0xffff0000
#define BF_DRAM_CTL31_TDLL(v)                       (((v) << 16) & 0xffff0000)
#define BP_DRAM_CTL31_LOWPOWER_SELF_REFRESH_CNT     0
#define BM_DRAM_CTL31_LOWPOWER_SELF_REFRESH_CNT     0xffff
#define BF_DRAM_CTL31_LOWPOWER_SELF_REFRESH_CNT(v)  (((v) << 0) & 0xffff)

/**
 * Register: HW_DRAM_CTL32
 * Address: 0x80
 * SCT: no
*/
#define HW_DRAM_CTL32               (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x80))
#define BP_DRAM_CTL32_TXSNR         16
#define BM_DRAM_CTL32_TXSNR         0xffff0000
#define BF_DRAM_CTL32_TXSNR(v)      (((v) << 16) & 0xffff0000)
#define BP_DRAM_CTL32_TRAS_MAX      0
#define BM_DRAM_CTL32_TRAS_MAX      0xffff
#define BF_DRAM_CTL32_TRAS_MAX(v)   (((v) << 0) & 0xffff)

/**
 * Register: HW_DRAM_CTL33
 * Address: 0x84
 * SCT: no
*/
#define HW_DRAM_CTL33               (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x84))
#define BP_DRAM_CTL33_VERSION       16
#define BM_DRAM_CTL33_VERSION       0xffff0000
#define BF_DRAM_CTL33_VERSION(v)    (((v) << 16) & 0xffff0000)
#define BP_DRAM_CTL33_TXSR          0
#define BM_DRAM_CTL33_TXSR          0xffff
#define BF_DRAM_CTL33_TXSR(v)       (((v) << 0) & 0xffff)

/**
 * Register: HW_DRAM_CTL34
 * Address: 0x88
 * SCT: no
*/
#define HW_DRAM_CTL34           (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x88))
#define BP_DRAM_CTL34_RSVD1     24
#define BM_DRAM_CTL34_RSVD1     0xff000000
#define BF_DRAM_CTL34_RSVD1(v)  (((v) << 24) & 0xff000000)
#define BP_DRAM_CTL34_TINIT     0
#define BM_DRAM_CTL34_TINIT     0xffffff
#define BF_DRAM_CTL34_TINIT(v)  (((v) << 0) & 0xffffff)

/**
 * Register: HW_DRAM_CTL35
 * Address: 0x8c
 * SCT: no
*/
#define HW_DRAM_CTL35                       (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x8c))
#define BP_DRAM_CTL35_RSVD1                 31
#define BM_DRAM_CTL35_RSVD1                 0x80000000
#define BF_DRAM_CTL35_RSVD1(v)              (((v) << 31) & 0x80000000)
#define BP_DRAM_CTL35_OUT_OF_RANGE_ADDR     0
#define BM_DRAM_CTL35_OUT_OF_RANGE_ADDR     0x7fffffff
#define BF_DRAM_CTL35_OUT_OF_RANGE_ADDR(v)  (((v) << 0) & 0x7fffffff)

/**
 * Register: HW_DRAM_CTL36
 * Address: 0x90
 * SCT: no
*/
#define HW_DRAM_CTL36                           (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x90))
#define BP_DRAM_CTL36_RSVD4                     25
#define BM_DRAM_CTL36_RSVD4                     0xfe000000
#define BF_DRAM_CTL36_RSVD4(v)                  (((v) << 25) & 0xfe000000)
#define BP_DRAM_CTL36_PWRUP_SREFRESH_EXIT       24
#define BM_DRAM_CTL36_PWRUP_SREFRESH_EXIT       0x1000000
#define BF_DRAM_CTL36_PWRUP_SREFRESH_EXIT(v)    (((v) << 24) & 0x1000000)
#define BP_DRAM_CTL36_RSVD3                     17
#define BM_DRAM_CTL36_RSVD3                     0xfe0000
#define BF_DRAM_CTL36_RSVD3(v)                  (((v) << 17) & 0xfe0000)
#define BP_DRAM_CTL36_ENABLE_QUICK_SREFRESH     16
#define BM_DRAM_CTL36_ENABLE_QUICK_SREFRESH     0x10000
#define BF_DRAM_CTL36_ENABLE_QUICK_SREFRESH(v)  (((v) << 16) & 0x10000)
#define BP_DRAM_CTL36_RSVD2                     9
#define BM_DRAM_CTL36_RSVD2                     0xfe00
#define BF_DRAM_CTL36_RSVD2(v)                  (((v) << 9) & 0xfe00)
#define BP_DRAM_CTL36_BUS_SHARE_ENABLE          8
#define BM_DRAM_CTL36_BUS_SHARE_ENABLE          0x100
#define BF_DRAM_CTL36_BUS_SHARE_ENABLE(v)       (((v) << 8) & 0x100)
#define BP_DRAM_CTL36_RSVD1                     1
#define BM_DRAM_CTL36_RSVD1                     0xfe
#define BF_DRAM_CTL36_RSVD1(v)                  (((v) << 1) & 0xfe)
#define BP_DRAM_CTL36_ACTIVE_AGING              0
#define BM_DRAM_CTL36_ACTIVE_AGING              0x1
#define BF_DRAM_CTL36_ACTIVE_AGING(v)           (((v) << 0) & 0x1)

/**
 * Register: HW_DRAM_CTL37
 * Address: 0x94
 * SCT: no
*/
#define HW_DRAM_CTL37                       (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x94))
#define BP_DRAM_CTL37_OBSOLETE              24
#define BM_DRAM_CTL37_OBSOLETE              0xff000000
#define BF_DRAM_CTL37_OBSOLETE(v)           (((v) << 24) & 0xff000000)
#define BP_DRAM_CTL37_RSVD2                 18
#define BM_DRAM_CTL37_RSVD2                 0xfc0000
#define BF_DRAM_CTL37_RSVD2(v)              (((v) << 18) & 0xfc0000)
#define BP_DRAM_CTL37_BUS_SHARE_TIMEOUT     8
#define BM_DRAM_CTL37_BUS_SHARE_TIMEOUT     0x3ff00
#define BF_DRAM_CTL37_BUS_SHARE_TIMEOUT(v)  (((v) << 8) & 0x3ff00)
#define BP_DRAM_CTL37_RSVD1                 1
#define BM_DRAM_CTL37_RSVD1                 0xfe
#define BF_DRAM_CTL37_RSVD1(v)              (((v) << 1) & 0xfe)
#define BP_DRAM_CTL37_TREF_ENABLE           0
#define BM_DRAM_CTL37_TREF_ENABLE           0x1
#define BF_DRAM_CTL37_TREF_ENABLE(v)        (((v) << 0) & 0x1)

/**
 * Register: HW_DRAM_CTL38
 * Address: 0x98
 * SCT: no
*/
#define HW_DRAM_CTL38                   (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x98))
#define BP_DRAM_CTL38_RSVD2             29
#define BM_DRAM_CTL38_RSVD2             0xe0000000
#define BF_DRAM_CTL38_RSVD2(v)          (((v) << 29) & 0xe0000000)
#define BP_DRAM_CTL38_EMRS2_DATA_0      16
#define BM_DRAM_CTL38_EMRS2_DATA_0      0x1fff0000
#define BF_DRAM_CTL38_EMRS2_DATA_0(v)   (((v) << 16) & 0x1fff0000)
#define BP_DRAM_CTL38_RSVD1             13
#define BM_DRAM_CTL38_RSVD1             0xe000
#define BF_DRAM_CTL38_RSVD1(v)          (((v) << 13) & 0xe000)
#define BP_DRAM_CTL38_EMRS1_DATA        0
#define BM_DRAM_CTL38_EMRS1_DATA        0x1fff
#define BF_DRAM_CTL38_EMRS1_DATA(v)     (((v) << 0) & 0x1fff)

/**
 * Register: HW_DRAM_CTL39
 * Address: 0x9c
 * SCT: no
*/
#define HW_DRAM_CTL39                   (*(volatile unsigned long *)(REGS_DRAM_BASE + 0x9c))
#define BP_DRAM_CTL39_RSVD2             29
#define BM_DRAM_CTL39_RSVD2             0xe0000000
#define BF_DRAM_CTL39_RSVD2(v)          (((v) << 29) & 0xe0000000)
#define BP_DRAM_CTL39_EMRS2_DATA_2      16
#define BM_DRAM_CTL39_EMRS2_DATA_2      0x1fff0000
#define BF_DRAM_CTL39_EMRS2_DATA_2(v)   (((v) << 16) & 0x1fff0000)
#define BP_DRAM_CTL39_RSVD1             13
#define BM_DRAM_CTL39_RSVD1             0xe000
#define BF_DRAM_CTL39_RSVD1(v)          (((v) << 13) & 0xe000)
#define BP_DRAM_CTL39_EMRS2_DATA_1      0
#define BM_DRAM_CTL39_EMRS2_DATA_1      0x1fff
#define BF_DRAM_CTL39_EMRS2_DATA_1(v)   (((v) << 0) & 0x1fff)

/**
 * Register: HW_DRAM_CTL40
 * Address: 0xa0
 * SCT: no
*/
#define HW_DRAM_CTL40                   (*(volatile unsigned long *)(REGS_DRAM_BASE + 0xa0))
#define BP_DRAM_CTL40_TPDEX             16
#define BM_DRAM_CTL40_TPDEX             0xffff0000
#define BF_DRAM_CTL40_TPDEX(v)          (((v) << 16) & 0xffff0000)
#define BP_DRAM_CTL40_RSVD1             13
#define BM_DRAM_CTL40_RSVD1             0xe000
#define BF_DRAM_CTL40_RSVD1(v)          (((v) << 13) & 0xe000)
#define BP_DRAM_CTL40_EMRS2_DATA_3      0
#define BM_DRAM_CTL40_EMRS2_DATA_3      0x1fff
#define BF_DRAM_CTL40_EMRS2_DATA_3(v)   (((v) << 0) & 0x1fff)

#endif /* __HEADERGEN__IMX233__DRAM__H__ */