-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhw_flash.h
3475 lines (3020 loc) · 151 KB
/
hw_flash.h
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
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/******************************************************************************
* Filename: hw_flash_h
* Revised: 2017-01-31 09:37:48 +0100 (Tue, 31 Jan 2017)
* Revision: 48345
*
* Copyright (c) 2015 - 2017, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1) Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2) Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3) Neither the name of the ORGANIZATION nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
******************************************************************************/
#ifndef __HW_FLASH_H__
#define __HW_FLASH_H__
//*****************************************************************************
//
// This section defines the register offsets of
// FLASH component
//
//*****************************************************************************
// FMC and Efuse Status
#define FLASH_O_STAT 0x0000001C
// Internal
#define FLASH_O_CFG 0x00000024
// Internal
#define FLASH_O_SYSCODE_START 0x00000028
// Internal
#define FLASH_O_FLASH_SIZE 0x0000002C
// Internal
#define FLASH_O_FWLOCK 0x0000003C
// Internal
#define FLASH_O_FWFLAG 0x00000040
// Internal
#define FLASH_O_EFUSE 0x00001000
// Internal
#define FLASH_O_EFUSEADDR 0x00001004
// Internal
#define FLASH_O_DATAUPPER 0x00001008
// Internal
#define FLASH_O_DATALOWER 0x0000100C
// Internal
#define FLASH_O_EFUSECFG 0x00001010
// Internal
#define FLASH_O_EFUSESTAT 0x00001014
// Internal
#define FLASH_O_ACC 0x00001018
// Internal
#define FLASH_O_BOUNDARY 0x0000101C
// Internal
#define FLASH_O_EFUSEFLAG 0x00001020
// Internal
#define FLASH_O_EFUSEKEY 0x00001024
// Internal
#define FLASH_O_EFUSERELEASE 0x00001028
// Internal
#define FLASH_O_EFUSEPINS 0x0000102C
// Internal
#define FLASH_O_EFUSECRA 0x00001030
// Internal
#define FLASH_O_EFUSEREAD 0x00001034
// Internal
#define FLASH_O_EFUSEPROGRAM 0x00001038
// Internal
#define FLASH_O_EFUSEERROR 0x0000103C
// Internal
#define FLASH_O_SINGLEBIT 0x00001040
// Internal
#define FLASH_O_TWOBIT 0x00001044
// Internal
#define FLASH_O_SELFTESTCYC 0x00001048
// Internal
#define FLASH_O_SELFTESTSIGN 0x0000104C
// Internal
#define FLASH_O_FRDCTL 0x00002000
// Internal
#define FLASH_O_FSPRD 0x00002004
// Internal
#define FLASH_O_FEDACCTL1 0x00002008
// Internal
#define FLASH_O_FEDACSTAT 0x0000201C
// Internal
#define FLASH_O_FBPROT 0x00002030
// Internal
#define FLASH_O_FBSE 0x00002034
// Internal
#define FLASH_O_FBBUSY 0x00002038
// Internal
#define FLASH_O_FBAC 0x0000203C
// Internal
#define FLASH_O_FBFALLBACK 0x00002040
// Internal
#define FLASH_O_FBPRDY 0x00002044
// Internal
#define FLASH_O_FPAC1 0x00002048
// Internal
#define FLASH_O_FPAC2 0x0000204C
// Internal
#define FLASH_O_FMAC 0x00002050
// Internal
#define FLASH_O_FMSTAT 0x00002054
// Internal
#define FLASH_O_FLOCK 0x00002064
// Internal
#define FLASH_O_FVREADCT 0x00002080
// Internal
#define FLASH_O_FVHVCT1 0x00002084
// Internal
#define FLASH_O_FVHVCT2 0x00002088
// Internal
#define FLASH_O_FVHVCT3 0x0000208C
// Internal
#define FLASH_O_FVNVCT 0x00002090
// Internal
#define FLASH_O_FVSLP 0x00002094
// Internal
#define FLASH_O_FVWLCT 0x00002098
// Internal
#define FLASH_O_FEFUSECTL 0x0000209C
// Internal
#define FLASH_O_FEFUSESTAT 0x000020A0
// Internal
#define FLASH_O_FEFUSEDATA 0x000020A4
// Internal
#define FLASH_O_FSEQPMP 0x000020A8
// Internal
#define FLASH_O_FBSTROBES 0x00002100
// Internal
#define FLASH_O_FPSTROBES 0x00002104
// Internal
#define FLASH_O_FBMODE 0x00002108
// Internal
#define FLASH_O_FTCR 0x0000210C
// Internal
#define FLASH_O_FADDR 0x00002110
// Internal
#define FLASH_O_FTCTL 0x0000211C
// Internal
#define FLASH_O_FWPWRITE0 0x00002120
// Internal
#define FLASH_O_FWPWRITE1 0x00002124
// Internal
#define FLASH_O_FWPWRITE2 0x00002128
// Internal
#define FLASH_O_FWPWRITE3 0x0000212C
// Internal
#define FLASH_O_FWPWRITE4 0x00002130
// Internal
#define FLASH_O_FWPWRITE5 0x00002134
// Internal
#define FLASH_O_FWPWRITE6 0x00002138
// Internal
#define FLASH_O_FWPWRITE7 0x0000213C
// Internal
#define FLASH_O_FWPWRITE_ECC 0x00002140
// Internal
#define FLASH_O_FSWSTAT 0x00002144
// Internal
#define FLASH_O_FSM_GLBCTL 0x00002200
// Internal
#define FLASH_O_FSM_STATE 0x00002204
// Internal
#define FLASH_O_FSM_STAT 0x00002208
// Internal
#define FLASH_O_FSM_CMD 0x0000220C
// Internal
#define FLASH_O_FSM_PE_OSU 0x00002210
// Internal
#define FLASH_O_FSM_VSTAT 0x00002214
// Internal
#define FLASH_O_FSM_PE_VSU 0x00002218
// Internal
#define FLASH_O_FSM_CMP_VSU 0x0000221C
// Internal
#define FLASH_O_FSM_EX_VAL 0x00002220
// Internal
#define FLASH_O_FSM_RD_H 0x00002224
// Internal
#define FLASH_O_FSM_P_OH 0x00002228
// Internal
#define FLASH_O_FSM_ERA_OH 0x0000222C
// Internal
#define FLASH_O_FSM_SAV_PPUL 0x00002230
// Internal
#define FLASH_O_FSM_PE_VH 0x00002234
// Internal
#define FLASH_O_FSM_PRG_PW 0x00002240
// Internal
#define FLASH_O_FSM_ERA_PW 0x00002244
// Internal
#define FLASH_O_FSM_SAV_ERA_PUL 0x00002254
// Internal
#define FLASH_O_FSM_TIMER 0x00002258
// Internal
#define FLASH_O_FSM_MODE 0x0000225C
// Internal
#define FLASH_O_FSM_PGM 0x00002260
// Internal
#define FLASH_O_FSM_ERA 0x00002264
// Internal
#define FLASH_O_FSM_PRG_PUL 0x00002268
// Internal
#define FLASH_O_FSM_ERA_PUL 0x0000226C
// Internal
#define FLASH_O_FSM_STEP_SIZE 0x00002270
// Internal
#define FLASH_O_FSM_PUL_CNTR 0x00002274
// Internal
#define FLASH_O_FSM_EC_STEP_HEIGHT 0x00002278
// Internal
#define FLASH_O_FSM_ST_MACHINE 0x0000227C
// Internal
#define FLASH_O_FSM_FLES 0x00002280
// Internal
#define FLASH_O_FSM_WR_ENA 0x00002288
// Internal
#define FLASH_O_FSM_ACC_PP 0x0000228C
// Internal
#define FLASH_O_FSM_ACC_EP 0x00002290
// Internal
#define FLASH_O_FSM_ADDR 0x000022A0
// Internal
#define FLASH_O_FSM_SECTOR 0x000022A4
// Internal
#define FLASH_O_FMC_REV_ID 0x000022A8
// Internal
#define FLASH_O_FSM_ERR_ADDR 0x000022AC
// Internal
#define FLASH_O_FSM_PGM_MAXPUL 0x000022B0
// Internal
#define FLASH_O_FSM_EXECUTE 0x000022B4
// Internal
#define FLASH_O_FSM_SECTOR1 0x000022C0
// Internal
#define FLASH_O_FSM_SECTOR2 0x000022C4
// Internal
#define FLASH_O_FSM_BSLE0 0x000022E0
// Internal
#define FLASH_O_FSM_BSLE1 0x000022E4
// Internal
#define FLASH_O_FSM_BSLP0 0x000022F0
// Internal
#define FLASH_O_FSM_BSLP1 0x000022F4
// Internal
#define FLASH_O_FCFG_BANK 0x00002400
// Internal
#define FLASH_O_FCFG_WRAPPER 0x00002404
// Internal
#define FLASH_O_FCFG_BNK_TYPE 0x00002408
// Internal
#define FLASH_O_FCFG_B0_START 0x00002410
// Internal
#define FLASH_O_FCFG_B1_START 0x00002414
// Internal
#define FLASH_O_FCFG_B2_START 0x00002418
// Internal
#define FLASH_O_FCFG_B3_START 0x0000241C
// Internal
#define FLASH_O_FCFG_B4_START 0x00002420
// Internal
#define FLASH_O_FCFG_B5_START 0x00002424
// Internal
#define FLASH_O_FCFG_B6_START 0x00002428
// Internal
#define FLASH_O_FCFG_B7_START 0x0000242C
// Internal
#define FLASH_O_FCFG_B0_SSIZE0 0x00002430
//*****************************************************************************
//
// Register: FLASH_O_STAT
//
//*****************************************************************************
// Field: [15] EFUSE_BLANK
//
// Efuse scanning detected if fuse ROM is blank:
// 0 : Not blank
// 1 : Blank
#define FLASH_STAT_EFUSE_BLANK 0x00008000
#define FLASH_STAT_EFUSE_BLANK_BITN 15
#define FLASH_STAT_EFUSE_BLANK_M 0x00008000
#define FLASH_STAT_EFUSE_BLANK_S 15
// Field: [14] EFUSE_TIMEOUT
//
// Efuse scanning resulted in timeout error.
// 0 : No Timeout error
// 1 : Timeout Error
#define FLASH_STAT_EFUSE_TIMEOUT 0x00004000
#define FLASH_STAT_EFUSE_TIMEOUT_BITN 14
#define FLASH_STAT_EFUSE_TIMEOUT_M 0x00004000
#define FLASH_STAT_EFUSE_TIMEOUT_S 14
// Field: [13] EFUSE_CRC_ERROR
//
// Efuse scanning resulted in scan chain CRC error.
// 0 : No CRC error
// 1 : CRC Error
#define FLASH_STAT_EFUSE_CRC_ERROR 0x00002000
#define FLASH_STAT_EFUSE_CRC_ERROR_BITN 13
#define FLASH_STAT_EFUSE_CRC_ERROR_M 0x00002000
#define FLASH_STAT_EFUSE_CRC_ERROR_S 13
// Field: [12:8] EFUSE_ERRCODE
//
// Same as EFUSEERROR.CODE
#define FLASH_STAT_EFUSE_ERRCODE_W 5
#define FLASH_STAT_EFUSE_ERRCODE_M 0x00001F00
#define FLASH_STAT_EFUSE_ERRCODE_S 8
// Field: [2] SAMHOLD_DIS
//
// Status indicator of flash sample and hold sequencing logic. This bit will go
// to 1 some delay after CFG.DIS_IDLE is set to 1.
// 0: Not disabled
// 1: Sample and hold disabled and stable
#define FLASH_STAT_SAMHOLD_DIS 0x00000004
#define FLASH_STAT_SAMHOLD_DIS_BITN 2
#define FLASH_STAT_SAMHOLD_DIS_M 0x00000004
#define FLASH_STAT_SAMHOLD_DIS_S 2
// Field: [1] BUSY
//
// Fast version of the FMC FMSTAT.BUSY bit.
// This flag is valid immediately after the operation setting it (FMSTAT.BUSY
// is delayed some cycles)
// 0 : Not busy
// 1 : Busy
#define FLASH_STAT_BUSY 0x00000002
#define FLASH_STAT_BUSY_BITN 1
#define FLASH_STAT_BUSY_M 0x00000002
#define FLASH_STAT_BUSY_S 1
// Field: [0] POWER_MODE
//
// Power state of the flash sub-system.
// 0 : Active
// 1 : Low power
#define FLASH_STAT_POWER_MODE 0x00000001
#define FLASH_STAT_POWER_MODE_BITN 0
#define FLASH_STAT_POWER_MODE_M 0x00000001
#define FLASH_STAT_POWER_MODE_S 0
//*****************************************************************************
//
// Register: FLASH_O_CFG
//
//*****************************************************************************
// Field: [8] STANDBY_MODE_SEL
//
// Internal. Only to be used through TI provided API.
#define FLASH_CFG_STANDBY_MODE_SEL 0x00000100
#define FLASH_CFG_STANDBY_MODE_SEL_BITN 8
#define FLASH_CFG_STANDBY_MODE_SEL_M 0x00000100
#define FLASH_CFG_STANDBY_MODE_SEL_S 8
// Field: [7:6] STANDBY_PW_SEL
//
// Internal. Only to be used through TI provided API.
#define FLASH_CFG_STANDBY_PW_SEL_W 2
#define FLASH_CFG_STANDBY_PW_SEL_M 0x000000C0
#define FLASH_CFG_STANDBY_PW_SEL_S 6
// Field: [5] DIS_EFUSECLK
//
// Internal. Only to be used through TI provided API.
#define FLASH_CFG_DIS_EFUSECLK 0x00000020
#define FLASH_CFG_DIS_EFUSECLK_BITN 5
#define FLASH_CFG_DIS_EFUSECLK_M 0x00000020
#define FLASH_CFG_DIS_EFUSECLK_S 5
// Field: [4] DIS_READACCESS
//
// Internal. Only to be used through TI provided API.
#define FLASH_CFG_DIS_READACCESS 0x00000010
#define FLASH_CFG_DIS_READACCESS_BITN 4
#define FLASH_CFG_DIS_READACCESS_M 0x00000010
#define FLASH_CFG_DIS_READACCESS_S 4
// Field: [3] ENABLE_SWINTF
//
// Internal. Only to be used through TI provided API.
#define FLASH_CFG_ENABLE_SWINTF 0x00000008
#define FLASH_CFG_ENABLE_SWINTF_BITN 3
#define FLASH_CFG_ENABLE_SWINTF_M 0x00000008
#define FLASH_CFG_ENABLE_SWINTF_S 3
// Field: [1] DIS_STANDBY
//
// Internal. Only to be used through TI provided API.
#define FLASH_CFG_DIS_STANDBY 0x00000002
#define FLASH_CFG_DIS_STANDBY_BITN 1
#define FLASH_CFG_DIS_STANDBY_M 0x00000002
#define FLASH_CFG_DIS_STANDBY_S 1
// Field: [0] DIS_IDLE
//
// Internal. Only to be used through TI provided API.
#define FLASH_CFG_DIS_IDLE 0x00000001
#define FLASH_CFG_DIS_IDLE_BITN 0
#define FLASH_CFG_DIS_IDLE_M 0x00000001
#define FLASH_CFG_DIS_IDLE_S 0
//*****************************************************************************
//
// Register: FLASH_O_SYSCODE_START
//
//*****************************************************************************
// Field: [4:0] SYSCODE_START
//
// Internal. Only to be used through TI provided API.
#define FLASH_SYSCODE_START_SYSCODE_START_W 5
#define FLASH_SYSCODE_START_SYSCODE_START_M 0x0000001F
#define FLASH_SYSCODE_START_SYSCODE_START_S 0
//*****************************************************************************
//
// Register: FLASH_O_FLASH_SIZE
//
//*****************************************************************************
// Field: [7:0] SECTORS
//
// Internal. Only to be used through TI provided API.
#define FLASH_FLASH_SIZE_SECTORS_W 8
#define FLASH_FLASH_SIZE_SECTORS_M 0x000000FF
#define FLASH_FLASH_SIZE_SECTORS_S 0
//*****************************************************************************
//
// Register: FLASH_O_FWLOCK
//
//*****************************************************************************
// Field: [2:0] FWLOCK
//
// Internal. Only to be used through TI provided API.
#define FLASH_FWLOCK_FWLOCK_W 3
#define FLASH_FWLOCK_FWLOCK_M 0x00000007
#define FLASH_FWLOCK_FWLOCK_S 0
//*****************************************************************************
//
// Register: FLASH_O_FWFLAG
//
//*****************************************************************************
// Field: [2:0] FWFLAG
//
// Internal. Only to be used through TI provided API.
#define FLASH_FWFLAG_FWFLAG_W 3
#define FLASH_FWFLAG_FWFLAG_M 0x00000007
#define FLASH_FWFLAG_FWFLAG_S 0
//*****************************************************************************
//
// Register: FLASH_O_EFUSE
//
//*****************************************************************************
// Field: [28:24] INSTRUCTION
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSE_INSTRUCTION_W 5
#define FLASH_EFUSE_INSTRUCTION_M 0x1F000000
#define FLASH_EFUSE_INSTRUCTION_S 24
// Field: [15:0] DUMPWORD
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSE_DUMPWORD_W 16
#define FLASH_EFUSE_DUMPWORD_M 0x0000FFFF
#define FLASH_EFUSE_DUMPWORD_S 0
//*****************************************************************************
//
// Register: FLASH_O_EFUSEADDR
//
//*****************************************************************************
// Field: [15:11] BLOCK
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSEADDR_BLOCK_W 5
#define FLASH_EFUSEADDR_BLOCK_M 0x0000F800
#define FLASH_EFUSEADDR_BLOCK_S 11
// Field: [10:0] ROW
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSEADDR_ROW_W 11
#define FLASH_EFUSEADDR_ROW_M 0x000007FF
#define FLASH_EFUSEADDR_ROW_S 0
//*****************************************************************************
//
// Register: FLASH_O_DATAUPPER
//
//*****************************************************************************
// Field: [7:3] SPARE
//
// Internal. Only to be used through TI provided API.
#define FLASH_DATAUPPER_SPARE_W 5
#define FLASH_DATAUPPER_SPARE_M 0x000000F8
#define FLASH_DATAUPPER_SPARE_S 3
// Field: [2] P
//
// Internal. Only to be used through TI provided API.
#define FLASH_DATAUPPER_P 0x00000004
#define FLASH_DATAUPPER_P_BITN 2
#define FLASH_DATAUPPER_P_M 0x00000004
#define FLASH_DATAUPPER_P_S 2
// Field: [1] R
//
// Internal. Only to be used through TI provided API.
#define FLASH_DATAUPPER_R 0x00000002
#define FLASH_DATAUPPER_R_BITN 1
#define FLASH_DATAUPPER_R_M 0x00000002
#define FLASH_DATAUPPER_R_S 1
// Field: [0] EEN
//
// Internal. Only to be used through TI provided API.
#define FLASH_DATAUPPER_EEN 0x00000001
#define FLASH_DATAUPPER_EEN_BITN 0
#define FLASH_DATAUPPER_EEN_M 0x00000001
#define FLASH_DATAUPPER_EEN_S 0
//*****************************************************************************
//
// Register: FLASH_O_DATALOWER
//
//*****************************************************************************
// Field: [31:0] DATA
//
// Internal. Only to be used through TI provided API.
#define FLASH_DATALOWER_DATA_W 32
#define FLASH_DATALOWER_DATA_M 0xFFFFFFFF
#define FLASH_DATALOWER_DATA_S 0
//*****************************************************************************
//
// Register: FLASH_O_EFUSECFG
//
//*****************************************************************************
// Field: [8] IDLEGATING
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSECFG_IDLEGATING 0x00000100
#define FLASH_EFUSECFG_IDLEGATING_BITN 8
#define FLASH_EFUSECFG_IDLEGATING_M 0x00000100
#define FLASH_EFUSECFG_IDLEGATING_S 8
// Field: [4:3] SLAVEPOWER
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSECFG_SLAVEPOWER_W 2
#define FLASH_EFUSECFG_SLAVEPOWER_M 0x00000018
#define FLASH_EFUSECFG_SLAVEPOWER_S 3
// Field: [0] GATING
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSECFG_GATING 0x00000001
#define FLASH_EFUSECFG_GATING_BITN 0
#define FLASH_EFUSECFG_GATING_M 0x00000001
#define FLASH_EFUSECFG_GATING_S 0
//*****************************************************************************
//
// Register: FLASH_O_EFUSESTAT
//
//*****************************************************************************
// Field: [0] RESETDONE
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSESTAT_RESETDONE 0x00000001
#define FLASH_EFUSESTAT_RESETDONE_BITN 0
#define FLASH_EFUSESTAT_RESETDONE_M 0x00000001
#define FLASH_EFUSESTAT_RESETDONE_S 0
//*****************************************************************************
//
// Register: FLASH_O_ACC
//
//*****************************************************************************
// Field: [23:0] ACCUMULATOR
//
// Internal. Only to be used through TI provided API.
#define FLASH_ACC_ACCUMULATOR_W 24
#define FLASH_ACC_ACCUMULATOR_M 0x00FFFFFF
#define FLASH_ACC_ACCUMULATOR_S 0
//*****************************************************************************
//
// Register: FLASH_O_BOUNDARY
//
//*****************************************************************************
// Field: [23] DISROW0
//
// Internal. Only to be used through TI provided API.
#define FLASH_BOUNDARY_DISROW0 0x00800000
#define FLASH_BOUNDARY_DISROW0_BITN 23
#define FLASH_BOUNDARY_DISROW0_M 0x00800000
#define FLASH_BOUNDARY_DISROW0_S 23
// Field: [22] SPARE
//
// Internal. Only to be used through TI provided API.
#define FLASH_BOUNDARY_SPARE 0x00400000
#define FLASH_BOUNDARY_SPARE_BITN 22
#define FLASH_BOUNDARY_SPARE_M 0x00400000
#define FLASH_BOUNDARY_SPARE_S 22
// Field: [21] EFC_SELF_TEST_ERROR
//
// Internal. Only to be used through TI provided API.
#define FLASH_BOUNDARY_EFC_SELF_TEST_ERROR 0x00200000
#define FLASH_BOUNDARY_EFC_SELF_TEST_ERROR_BITN 21
#define FLASH_BOUNDARY_EFC_SELF_TEST_ERROR_M 0x00200000
#define FLASH_BOUNDARY_EFC_SELF_TEST_ERROR_S 21
// Field: [20] EFC_INSTRUCTION_INFO
//
// Internal. Only to be used through TI provided API.
#define FLASH_BOUNDARY_EFC_INSTRUCTION_INFO 0x00100000
#define FLASH_BOUNDARY_EFC_INSTRUCTION_INFO_BITN 20
#define FLASH_BOUNDARY_EFC_INSTRUCTION_INFO_M 0x00100000
#define FLASH_BOUNDARY_EFC_INSTRUCTION_INFO_S 20
// Field: [19] EFC_INSTRUCTION_ERROR
//
// Internal. Only to be used through TI provided API.
#define FLASH_BOUNDARY_EFC_INSTRUCTION_ERROR 0x00080000
#define FLASH_BOUNDARY_EFC_INSTRUCTION_ERROR_BITN 19
#define FLASH_BOUNDARY_EFC_INSTRUCTION_ERROR_M 0x00080000
#define FLASH_BOUNDARY_EFC_INSTRUCTION_ERROR_S 19
// Field: [18] EFC_AUTOLOAD_ERROR
//
// Internal. Only to be used through TI provided API.
#define FLASH_BOUNDARY_EFC_AUTOLOAD_ERROR 0x00040000
#define FLASH_BOUNDARY_EFC_AUTOLOAD_ERROR_BITN 18
#define FLASH_BOUNDARY_EFC_AUTOLOAD_ERROR_M 0x00040000
#define FLASH_BOUNDARY_EFC_AUTOLOAD_ERROR_S 18
// Field: [17:14] OUTPUTENABLE
//
// Internal. Only to be used through TI provided API.
#define FLASH_BOUNDARY_OUTPUTENABLE_W 4
#define FLASH_BOUNDARY_OUTPUTENABLE_M 0x0003C000
#define FLASH_BOUNDARY_OUTPUTENABLE_S 14
// Field: [13] SYS_ECC_SELF_TEST_EN
//
// Internal. Only to be used through TI provided API.
#define FLASH_BOUNDARY_SYS_ECC_SELF_TEST_EN 0x00002000
#define FLASH_BOUNDARY_SYS_ECC_SELF_TEST_EN_BITN 13
#define FLASH_BOUNDARY_SYS_ECC_SELF_TEST_EN_M 0x00002000
#define FLASH_BOUNDARY_SYS_ECC_SELF_TEST_EN_S 13
// Field: [12] SYS_ECC_OVERRIDE_EN
//
// Internal. Only to be used through TI provided API.
#define FLASH_BOUNDARY_SYS_ECC_OVERRIDE_EN 0x00001000
#define FLASH_BOUNDARY_SYS_ECC_OVERRIDE_EN_BITN 12
#define FLASH_BOUNDARY_SYS_ECC_OVERRIDE_EN_M 0x00001000
#define FLASH_BOUNDARY_SYS_ECC_OVERRIDE_EN_S 12
// Field: [11] EFC_FDI
//
// Internal. Only to be used through TI provided API.
#define FLASH_BOUNDARY_EFC_FDI 0x00000800
#define FLASH_BOUNDARY_EFC_FDI_BITN 11
#define FLASH_BOUNDARY_EFC_FDI_M 0x00000800
#define FLASH_BOUNDARY_EFC_FDI_S 11
// Field: [10] SYS_DIEID_AUTOLOAD_EN
//
// Internal. Only to be used through TI provided API.
#define FLASH_BOUNDARY_SYS_DIEID_AUTOLOAD_EN 0x00000400
#define FLASH_BOUNDARY_SYS_DIEID_AUTOLOAD_EN_BITN 10
#define FLASH_BOUNDARY_SYS_DIEID_AUTOLOAD_EN_M 0x00000400
#define FLASH_BOUNDARY_SYS_DIEID_AUTOLOAD_EN_S 10
// Field: [9:8] SYS_REPAIR_EN
//
// Internal. Only to be used through TI provided API.
#define FLASH_BOUNDARY_SYS_REPAIR_EN_W 2
#define FLASH_BOUNDARY_SYS_REPAIR_EN_M 0x00000300
#define FLASH_BOUNDARY_SYS_REPAIR_EN_S 8
// Field: [7:4] SYS_WS_READ_STATES
//
// Internal. Only to be used through TI provided API.
#define FLASH_BOUNDARY_SYS_WS_READ_STATES_W 4
#define FLASH_BOUNDARY_SYS_WS_READ_STATES_M 0x000000F0
#define FLASH_BOUNDARY_SYS_WS_READ_STATES_S 4
// Field: [3:0] INPUTENABLE
//
// Internal. Only to be used through TI provided API.
#define FLASH_BOUNDARY_INPUTENABLE_W 4
#define FLASH_BOUNDARY_INPUTENABLE_M 0x0000000F
#define FLASH_BOUNDARY_INPUTENABLE_S 0
//*****************************************************************************
//
// Register: FLASH_O_EFUSEFLAG
//
//*****************************************************************************
// Field: [0] KEY
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSEFLAG_KEY 0x00000001
#define FLASH_EFUSEFLAG_KEY_BITN 0
#define FLASH_EFUSEFLAG_KEY_M 0x00000001
#define FLASH_EFUSEFLAG_KEY_S 0
//*****************************************************************************
//
// Register: FLASH_O_EFUSEKEY
//
//*****************************************************************************
// Field: [31:0] CODE
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSEKEY_CODE_W 32
#define FLASH_EFUSEKEY_CODE_M 0xFFFFFFFF
#define FLASH_EFUSEKEY_CODE_S 0
//*****************************************************************************
//
// Register: FLASH_O_EFUSERELEASE
//
//*****************************************************************************
// Field: [31:25] ODPYEAR
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSERELEASE_ODPYEAR_W 7
#define FLASH_EFUSERELEASE_ODPYEAR_M 0xFE000000
#define FLASH_EFUSERELEASE_ODPYEAR_S 25
// Field: [24:21] ODPMONTH
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSERELEASE_ODPMONTH_W 4
#define FLASH_EFUSERELEASE_ODPMONTH_M 0x01E00000
#define FLASH_EFUSERELEASE_ODPMONTH_S 21
// Field: [20:16] ODPDAY
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSERELEASE_ODPDAY_W 5
#define FLASH_EFUSERELEASE_ODPDAY_M 0x001F0000
#define FLASH_EFUSERELEASE_ODPDAY_S 16
// Field: [15:9] EFUSEYEAR
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSERELEASE_EFUSEYEAR_W 7
#define FLASH_EFUSERELEASE_EFUSEYEAR_M 0x0000FE00
#define FLASH_EFUSERELEASE_EFUSEYEAR_S 9
// Field: [8:5] EFUSEMONTH
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSERELEASE_EFUSEMONTH_W 4
#define FLASH_EFUSERELEASE_EFUSEMONTH_M 0x000001E0
#define FLASH_EFUSERELEASE_EFUSEMONTH_S 5
// Field: [4:0] EFUSEDAY
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSERELEASE_EFUSEDAY_W 5
#define FLASH_EFUSERELEASE_EFUSEDAY_M 0x0000001F
#define FLASH_EFUSERELEASE_EFUSEDAY_S 0
//*****************************************************************************
//
// Register: FLASH_O_EFUSEPINS
//
//*****************************************************************************
// Field: [15] EFC_SELF_TEST_DONE
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSEPINS_EFC_SELF_TEST_DONE 0x00008000
#define FLASH_EFUSEPINS_EFC_SELF_TEST_DONE_BITN 15
#define FLASH_EFUSEPINS_EFC_SELF_TEST_DONE_M 0x00008000
#define FLASH_EFUSEPINS_EFC_SELF_TEST_DONE_S 15
// Field: [14] EFC_SELF_TEST_ERROR
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSEPINS_EFC_SELF_TEST_ERROR 0x00004000
#define FLASH_EFUSEPINS_EFC_SELF_TEST_ERROR_BITN 14
#define FLASH_EFUSEPINS_EFC_SELF_TEST_ERROR_M 0x00004000
#define FLASH_EFUSEPINS_EFC_SELF_TEST_ERROR_S 14
// Field: [13] SYS_ECC_SELF_TEST_EN
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSEPINS_SYS_ECC_SELF_TEST_EN 0x00002000
#define FLASH_EFUSEPINS_SYS_ECC_SELF_TEST_EN_BITN 13
#define FLASH_EFUSEPINS_SYS_ECC_SELF_TEST_EN_M 0x00002000
#define FLASH_EFUSEPINS_SYS_ECC_SELF_TEST_EN_S 13
// Field: [12] EFC_INSTRUCTION_INFO
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSEPINS_EFC_INSTRUCTION_INFO 0x00001000
#define FLASH_EFUSEPINS_EFC_INSTRUCTION_INFO_BITN 12
#define FLASH_EFUSEPINS_EFC_INSTRUCTION_INFO_M 0x00001000
#define FLASH_EFUSEPINS_EFC_INSTRUCTION_INFO_S 12
// Field: [11] EFC_INSTRUCTION_ERROR
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSEPINS_EFC_INSTRUCTION_ERROR 0x00000800
#define FLASH_EFUSEPINS_EFC_INSTRUCTION_ERROR_BITN 11
#define FLASH_EFUSEPINS_EFC_INSTRUCTION_ERROR_M 0x00000800
#define FLASH_EFUSEPINS_EFC_INSTRUCTION_ERROR_S 11
// Field: [10] EFC_AUTOLOAD_ERROR
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSEPINS_EFC_AUTOLOAD_ERROR 0x00000400
#define FLASH_EFUSEPINS_EFC_AUTOLOAD_ERROR_BITN 10
#define FLASH_EFUSEPINS_EFC_AUTOLOAD_ERROR_M 0x00000400
#define FLASH_EFUSEPINS_EFC_AUTOLOAD_ERROR_S 10
// Field: [9] SYS_ECC_OVERRIDE_EN
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSEPINS_SYS_ECC_OVERRIDE_EN 0x00000200
#define FLASH_EFUSEPINS_SYS_ECC_OVERRIDE_EN_BITN 9
#define FLASH_EFUSEPINS_SYS_ECC_OVERRIDE_EN_M 0x00000200
#define FLASH_EFUSEPINS_SYS_ECC_OVERRIDE_EN_S 9
// Field: [8] EFC_READY
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSEPINS_EFC_READY 0x00000100
#define FLASH_EFUSEPINS_EFC_READY_BITN 8
#define FLASH_EFUSEPINS_EFC_READY_M 0x00000100
#define FLASH_EFUSEPINS_EFC_READY_S 8
// Field: [7] EFC_FCLRZ
//
// Internal. Only to be used through TI provided API.
#define FLASH_EFUSEPINS_EFC_FCLRZ 0x00000080
#define FLASH_EFUSEPINS_EFC_FCLRZ_BITN 7
#define FLASH_EFUSEPINS_EFC_FCLRZ_M 0x00000080
#define FLASH_EFUSEPINS_EFC_FCLRZ_S 7
// Field: [6] SYS_DIEID_AUTOLOAD_EN
//