1 /******************************************************************************
2 *  Filename:       hw_flash_h
3 *  Revised:        2018-05-14 12:24:52 +0200 (Mon, 14 May 2018)
4 *  Revision:       51990
5 *
6 * Copyright (c) 2015 - 2017, Texas Instruments Incorporated
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions are met:
11 *
12 * 1) Redistributions of source code must retain the above copyright notice,
13 *    this list of conditions and the following disclaimer.
14 *
15 * 2) Redistributions in binary form must reproduce the above copyright notice,
16 *    this list of conditions and the following disclaimer in the documentation
17 *    and/or other materials provided with the distribution.
18 *
19 * 3) Neither the name of the ORGANIZATION nor the names of its contributors may
20 *    be used to endorse or promote products derived from this software without
21 *    specific prior written permission.
22 *
23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
27 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33 * POSSIBILITY OF SUCH DAMAGE.
34 *
35 ******************************************************************************/
36 
37 #ifndef __HW_FLASH_H__
38 #define __HW_FLASH_H__
39 
40 //*****************************************************************************
41 //
42 // This section defines the register offsets of
43 // FLASH component
44 //
45 //*****************************************************************************
46 // FMC and Efuse Status
47 #define FLASH_O_STAT                                                0x0000001C
48 
49 // Internal
50 #define FLASH_O_CFG                                                 0x00000024
51 
52 // Internal
53 #define FLASH_O_SYSCODE_START                                       0x00000028
54 
55 // Internal
56 #define FLASH_O_FLASH_SIZE                                          0x0000002C
57 
58 // Internal
59 #define FLASH_O_FWLOCK                                              0x0000003C
60 
61 // Internal
62 #define FLASH_O_FWFLAG                                              0x00000040
63 
64 // Internal
65 #define FLASH_O_EFUSE                                               0x00001000
66 
67 // Internal
68 #define FLASH_O_EFUSEADDR                                           0x00001004
69 
70 // Internal
71 #define FLASH_O_DATAUPPER                                           0x00001008
72 
73 // Internal
74 #define FLASH_O_DATALOWER                                           0x0000100C
75 
76 // Internal
77 #define FLASH_O_EFUSECFG                                            0x00001010
78 
79 // Internal
80 #define FLASH_O_EFUSESTAT                                           0x00001014
81 
82 // Internal
83 #define FLASH_O_ACC                                                 0x00001018
84 
85 // Internal
86 #define FLASH_O_BOUNDARY                                            0x0000101C
87 
88 // Internal
89 #define FLASH_O_EFUSEFLAG                                           0x00001020
90 
91 // Internal
92 #define FLASH_O_EFUSEKEY                                            0x00001024
93 
94 // Internal
95 #define FLASH_O_EFUSERELEASE                                        0x00001028
96 
97 // Internal
98 #define FLASH_O_EFUSEPINS                                           0x0000102C
99 
100 // Internal
101 #define FLASH_O_EFUSECRA                                            0x00001030
102 
103 // Internal
104 #define FLASH_O_EFUSEREAD                                           0x00001034
105 
106 // Internal
107 #define FLASH_O_EFUSEPROGRAM                                        0x00001038
108 
109 // Internal
110 #define FLASH_O_EFUSEERROR                                          0x0000103C
111 
112 // Internal
113 #define FLASH_O_SINGLEBIT                                           0x00001040
114 
115 // Internal
116 #define FLASH_O_TWOBIT                                              0x00001044
117 
118 // Internal
119 #define FLASH_O_SELFTESTCYC                                         0x00001048
120 
121 // Internal
122 #define FLASH_O_SELFTESTSIGN                                        0x0000104C
123 
124 // Internal
125 #define FLASH_O_FRDCTL                                              0x00002000
126 
127 // Internal
128 #define FLASH_O_FSPRD                                               0x00002004
129 
130 // Internal
131 #define FLASH_O_FEDACCTL1                                           0x00002008
132 
133 // Internal
134 #define FLASH_O_FEDACSTAT                                           0x0000201C
135 
136 // Internal
137 #define FLASH_O_FBPROT                                              0x00002030
138 
139 // Internal
140 #define FLASH_O_FBSE                                                0x00002034
141 
142 // Internal
143 #define FLASH_O_FBBUSY                                              0x00002038
144 
145 // Internal
146 #define FLASH_O_FBAC                                                0x0000203C
147 
148 // Internal
149 #define FLASH_O_FBFALLBACK                                          0x00002040
150 
151 // Internal
152 #define FLASH_O_FBPRDY                                              0x00002044
153 
154 // Internal
155 #define FLASH_O_FPAC1                                               0x00002048
156 
157 // Internal
158 #define FLASH_O_FPAC2                                               0x0000204C
159 
160 // Internal
161 #define FLASH_O_FMAC                                                0x00002050
162 
163 // Internal
164 #define FLASH_O_FMSTAT                                              0x00002054
165 
166 // Internal
167 #define FLASH_O_FLOCK                                               0x00002064
168 
169 // Internal
170 #define FLASH_O_FVREADCT                                            0x00002080
171 
172 // Internal
173 #define FLASH_O_FVHVCT1                                             0x00002084
174 
175 // Internal
176 #define FLASH_O_FVHVCT2                                             0x00002088
177 
178 // Internal
179 #define FLASH_O_FVHVCT3                                             0x0000208C
180 
181 // Internal
182 #define FLASH_O_FVNVCT                                              0x00002090
183 
184 // Internal
185 #define FLASH_O_FVSLP                                               0x00002094
186 
187 // Internal
188 #define FLASH_O_FVWLCT                                              0x00002098
189 
190 // Internal
191 #define FLASH_O_FEFUSECTL                                           0x0000209C
192 
193 // Internal
194 #define FLASH_O_FEFUSESTAT                                          0x000020A0
195 
196 // Internal
197 #define FLASH_O_FEFUSEDATA                                          0x000020A4
198 
199 // Internal
200 #define FLASH_O_FSEQPMP                                             0x000020A8
201 
202 // Internal
203 #define FLASH_O_FBSTROBES                                           0x00002100
204 
205 // Internal
206 #define FLASH_O_FPSTROBES                                           0x00002104
207 
208 // Internal
209 #define FLASH_O_FBMODE                                              0x00002108
210 
211 // Internal
212 #define FLASH_O_FTCR                                                0x0000210C
213 
214 // Internal
215 #define FLASH_O_FADDR                                               0x00002110
216 
217 // Internal
218 #define FLASH_O_FTCTL                                               0x0000211C
219 
220 // Internal
221 #define FLASH_O_FWPWRITE0                                           0x00002120
222 
223 // Internal
224 #define FLASH_O_FWPWRITE1                                           0x00002124
225 
226 // Internal
227 #define FLASH_O_FWPWRITE2                                           0x00002128
228 
229 // Internal
230 #define FLASH_O_FWPWRITE3                                           0x0000212C
231 
232 // Internal
233 #define FLASH_O_FWPWRITE4                                           0x00002130
234 
235 // Internal
236 #define FLASH_O_FWPWRITE5                                           0x00002134
237 
238 // Internal
239 #define FLASH_O_FWPWRITE6                                           0x00002138
240 
241 // Internal
242 #define FLASH_O_FWPWRITE7                                           0x0000213C
243 
244 // Internal
245 #define FLASH_O_FWPWRITE_ECC                                        0x00002140
246 
247 // Internal
248 #define FLASH_O_FSWSTAT                                             0x00002144
249 
250 // Internal
251 #define FLASH_O_FSM_GLBCTL                                          0x00002200
252 
253 // Internal
254 #define FLASH_O_FSM_STATE                                           0x00002204
255 
256 // Internal
257 #define FLASH_O_FSM_STAT                                            0x00002208
258 
259 // Internal
260 #define FLASH_O_FSM_CMD                                             0x0000220C
261 
262 // Internal
263 #define FLASH_O_FSM_PE_OSU                                          0x00002210
264 
265 // Internal
266 #define FLASH_O_FSM_VSTAT                                           0x00002214
267 
268 // Internal
269 #define FLASH_O_FSM_PE_VSU                                          0x00002218
270 
271 // Internal
272 #define FLASH_O_FSM_CMP_VSU                                         0x0000221C
273 
274 // Internal
275 #define FLASH_O_FSM_EX_VAL                                          0x00002220
276 
277 // Internal
278 #define FLASH_O_FSM_RD_H                                            0x00002224
279 
280 // Internal
281 #define FLASH_O_FSM_P_OH                                            0x00002228
282 
283 // Internal
284 #define FLASH_O_FSM_ERA_OH                                          0x0000222C
285 
286 // Internal
287 #define FLASH_O_FSM_SAV_PPUL                                        0x00002230
288 
289 // Internal
290 #define FLASH_O_FSM_PE_VH                                           0x00002234
291 
292 // Internal
293 #define FLASH_O_FSM_PRG_PW                                          0x00002240
294 
295 // Internal
296 #define FLASH_O_FSM_ERA_PW                                          0x00002244
297 
298 // Internal
299 #define FLASH_O_FSM_SAV_ERA_PUL                                     0x00002254
300 
301 // Internal
302 #define FLASH_O_FSM_TIMER                                           0x00002258
303 
304 // Internal
305 #define FLASH_O_FSM_MODE                                            0x0000225C
306 
307 // Internal
308 #define FLASH_O_FSM_PGM                                             0x00002260
309 
310 // Internal
311 #define FLASH_O_FSM_ERA                                             0x00002264
312 
313 // Internal
314 #define FLASH_O_FSM_PRG_PUL                                         0x00002268
315 
316 // Internal
317 #define FLASH_O_FSM_ERA_PUL                                         0x0000226C
318 
319 // Internal
320 #define FLASH_O_FSM_STEP_SIZE                                       0x00002270
321 
322 // Internal
323 #define FLASH_O_FSM_PUL_CNTR                                        0x00002274
324 
325 // Internal
326 #define FLASH_O_FSM_EC_STEP_HEIGHT                                  0x00002278
327 
328 // Internal
329 #define FLASH_O_FSM_ST_MACHINE                                      0x0000227C
330 
331 // Internal
332 #define FLASH_O_FSM_FLES                                            0x00002280
333 
334 // Internal
335 #define FLASH_O_FSM_WR_ENA                                          0x00002288
336 
337 // Internal
338 #define FLASH_O_FSM_ACC_PP                                          0x0000228C
339 
340 // Internal
341 #define FLASH_O_FSM_ACC_EP                                          0x00002290
342 
343 // Internal
344 #define FLASH_O_FSM_ADDR                                            0x000022A0
345 
346 // Internal
347 #define FLASH_O_FSM_SECTOR                                          0x000022A4
348 
349 // Internal
350 #define FLASH_O_FMC_REV_ID                                          0x000022A8
351 
352 // Internal
353 #define FLASH_O_FSM_ERR_ADDR                                        0x000022AC
354 
355 // Internal
356 #define FLASH_O_FSM_PGM_MAXPUL                                      0x000022B0
357 
358 // Internal
359 #define FLASH_O_FSM_EXECUTE                                         0x000022B4
360 
361 // Internal
362 #define FLASH_O_FSM_SECTOR1                                         0x000022C0
363 
364 // Internal
365 #define FLASH_O_FSM_SECTOR2                                         0x000022C4
366 
367 // Internal
368 #define FLASH_O_FSM_BSLE0                                           0x000022E0
369 
370 // Internal
371 #define FLASH_O_FSM_BSLE1                                           0x000022E4
372 
373 // Internal
374 #define FLASH_O_FSM_BSLP0                                           0x000022F0
375 
376 // Internal
377 #define FLASH_O_FSM_BSLP1                                           0x000022F4
378 
379 // FMC FSM Enable 128-bit Wide Programming
380 #define FLASH_O_FSM_PGM128                                          0x000022F8
381 
382 // Internal
383 #define FLASH_O_FCFG_BANK                                           0x00002400
384 
385 // Internal
386 #define FLASH_O_FCFG_WRAPPER                                        0x00002404
387 
388 // Internal
389 #define FLASH_O_FCFG_BNK_TYPE                                       0x00002408
390 
391 // Internal
392 #define FLASH_O_FCFG_B0_START                                       0x00002410
393 
394 // Internal
395 #define FLASH_O_FCFG_B1_START                                       0x00002414
396 
397 // Internal
398 #define FLASH_O_FCFG_B2_START                                       0x00002418
399 
400 // Internal
401 #define FLASH_O_FCFG_B3_START                                       0x0000241C
402 
403 // Internal
404 #define FLASH_O_FCFG_B4_START                                       0x00002420
405 
406 // Internal
407 #define FLASH_O_FCFG_B5_START                                       0x00002424
408 
409 // Internal
410 #define FLASH_O_FCFG_B6_START                                       0x00002428
411 
412 // Internal
413 #define FLASH_O_FCFG_B7_START                                       0x0000242C
414 
415 // Internal
416 #define FLASH_O_FCFG_B0_SSIZE0                                      0x00002430
417 
418 //*****************************************************************************
419 //
420 // Register: FLASH_O_STAT
421 //
422 //*****************************************************************************
423 // Field:    [15] EFUSE_BLANK
424 //
425 // Efuse scanning detected if fuse ROM is blank:
426 // 0 : Not blank
427 // 1 : Blank
428 #define FLASH_STAT_EFUSE_BLANK                                      0x00008000
429 #define FLASH_STAT_EFUSE_BLANK_BITN                                         15
430 #define FLASH_STAT_EFUSE_BLANK_M                                    0x00008000
431 #define FLASH_STAT_EFUSE_BLANK_S                                            15
432 
433 // Field:    [14] EFUSE_TIMEOUT
434 //
435 // Efuse scanning resulted in timeout error.
436 // 0 : No Timeout error
437 // 1 : Timeout Error
438 #define FLASH_STAT_EFUSE_TIMEOUT                                    0x00004000
439 #define FLASH_STAT_EFUSE_TIMEOUT_BITN                                       14
440 #define FLASH_STAT_EFUSE_TIMEOUT_M                                  0x00004000
441 #define FLASH_STAT_EFUSE_TIMEOUT_S                                          14
442 
443 // Field:    [13] SPRS_BYTE_NOT_OK
444 //
445 // Efuse scanning resulted in scan chain Sparse byte error.
446 // 0 : No Sparse error
447 // 1 : Sparse Error
448 #define FLASH_STAT_SPRS_BYTE_NOT_OK                                 0x00002000
449 #define FLASH_STAT_SPRS_BYTE_NOT_OK_BITN                                    13
450 #define FLASH_STAT_SPRS_BYTE_NOT_OK_M                               0x00002000
451 #define FLASH_STAT_SPRS_BYTE_NOT_OK_S                                       13
452 
453 // Field:  [12:8] EFUSE_ERRCODE
454 //
455 // Same as EFUSEERROR.CODE
456 #define FLASH_STAT_EFUSE_ERRCODE_W                                           5
457 #define FLASH_STAT_EFUSE_ERRCODE_M                                  0x00001F00
458 #define FLASH_STAT_EFUSE_ERRCODE_S                                           8
459 
460 // Field:     [2] SAMHOLD_DIS
461 //
462 // Status indicator of flash sample and hold sequencing logic. This bit will go
463 // to 1 some delay after CFG.DIS_IDLE is set to 1.
464 // 0: Not disabled
465 // 1: Sample and hold disabled and stable
466 #define FLASH_STAT_SAMHOLD_DIS                                      0x00000004
467 #define FLASH_STAT_SAMHOLD_DIS_BITN                                          2
468 #define FLASH_STAT_SAMHOLD_DIS_M                                    0x00000004
469 #define FLASH_STAT_SAMHOLD_DIS_S                                             2
470 
471 // Field:     [1] BUSY
472 //
473 // Fast version of the FMC FMSTAT.BUSY bit.
474 // This flag is valid immediately after the operation setting it (FMSTAT.BUSY
475 // is delayed some cycles)
476 // 0 : Not busy
477 // 1 : Busy
478 #define FLASH_STAT_BUSY                                             0x00000002
479 #define FLASH_STAT_BUSY_BITN                                                 1
480 #define FLASH_STAT_BUSY_M                                           0x00000002
481 #define FLASH_STAT_BUSY_S                                                    1
482 
483 // Field:     [0] POWER_MODE
484 //
485 // Power state of the flash sub-system.
486 // 0 : Active
487 // 1 : Low power
488 #define FLASH_STAT_POWER_MODE                                       0x00000001
489 #define FLASH_STAT_POWER_MODE_BITN                                           0
490 #define FLASH_STAT_POWER_MODE_M                                     0x00000001
491 #define FLASH_STAT_POWER_MODE_S                                              0
492 
493 //*****************************************************************************
494 //
495 // Register: FLASH_O_CFG
496 //
497 //*****************************************************************************
498 // Field:     [8] STANDBY_MODE_SEL
499 //
500 // Internal. Only to be used through TI provided API.
501 #define FLASH_CFG_STANDBY_MODE_SEL                                  0x00000100
502 #define FLASH_CFG_STANDBY_MODE_SEL_BITN                                      8
503 #define FLASH_CFG_STANDBY_MODE_SEL_M                                0x00000100
504 #define FLASH_CFG_STANDBY_MODE_SEL_S                                         8
505 
506 // Field:   [7:6] STANDBY_PW_SEL
507 //
508 // Internal. Only to be used through TI provided API.
509 #define FLASH_CFG_STANDBY_PW_SEL_W                                           2
510 #define FLASH_CFG_STANDBY_PW_SEL_M                                  0x000000C0
511 #define FLASH_CFG_STANDBY_PW_SEL_S                                           6
512 
513 // Field:     [5] DIS_EFUSECLK
514 //
515 // Internal. Only to be used through TI provided API.
516 #define FLASH_CFG_DIS_EFUSECLK                                      0x00000020
517 #define FLASH_CFG_DIS_EFUSECLK_BITN                                          5
518 #define FLASH_CFG_DIS_EFUSECLK_M                                    0x00000020
519 #define FLASH_CFG_DIS_EFUSECLK_S                                             5
520 
521 // Field:     [4] DIS_READACCESS
522 //
523 // Internal. Only to be used through TI provided API.
524 #define FLASH_CFG_DIS_READACCESS                                    0x00000010
525 #define FLASH_CFG_DIS_READACCESS_BITN                                        4
526 #define FLASH_CFG_DIS_READACCESS_M                                  0x00000010
527 #define FLASH_CFG_DIS_READACCESS_S                                           4
528 
529 // Field:     [3] ENABLE_SWINTF
530 //
531 // Internal. Only to be used through TI provided API.
532 #define FLASH_CFG_ENABLE_SWINTF                                     0x00000008
533 #define FLASH_CFG_ENABLE_SWINTF_BITN                                         3
534 #define FLASH_CFG_ENABLE_SWINTF_M                                   0x00000008
535 #define FLASH_CFG_ENABLE_SWINTF_S                                            3
536 
537 // Field:     [1] DIS_STANDBY
538 //
539 // Internal. Only to be used through TI provided API.
540 #define FLASH_CFG_DIS_STANDBY                                       0x00000002
541 #define FLASH_CFG_DIS_STANDBY_BITN                                           1
542 #define FLASH_CFG_DIS_STANDBY_M                                     0x00000002
543 #define FLASH_CFG_DIS_STANDBY_S                                              1
544 
545 // Field:     [0] DIS_IDLE
546 //
547 // Internal. Only to be used through TI provided API.
548 #define FLASH_CFG_DIS_IDLE                                          0x00000001
549 #define FLASH_CFG_DIS_IDLE_BITN                                              0
550 #define FLASH_CFG_DIS_IDLE_M                                        0x00000001
551 #define FLASH_CFG_DIS_IDLE_S                                                 0
552 
553 //*****************************************************************************
554 //
555 // Register: FLASH_O_SYSCODE_START
556 //
557 //*****************************************************************************
558 // Field:   [5:0] SYSCODE_START
559 //
560 // Internal. Only to be used through TI provided API.
561 #define FLASH_SYSCODE_START_SYSCODE_START_W                                  6
562 #define FLASH_SYSCODE_START_SYSCODE_START_M                         0x0000003F
563 #define FLASH_SYSCODE_START_SYSCODE_START_S                                  0
564 
565 //*****************************************************************************
566 //
567 // Register: FLASH_O_FLASH_SIZE
568 //
569 //*****************************************************************************
570 // Field:   [7:0] SECTORS
571 //
572 // Internal. Only to be used through TI provided API.
573 #define FLASH_FLASH_SIZE_SECTORS_W                                           8
574 #define FLASH_FLASH_SIZE_SECTORS_M                                  0x000000FF
575 #define FLASH_FLASH_SIZE_SECTORS_S                                           0
576 
577 //*****************************************************************************
578 //
579 // Register: FLASH_O_FWLOCK
580 //
581 //*****************************************************************************
582 // Field:   [2:0] FWLOCK
583 //
584 // Internal. Only to be used through TI provided API.
585 #define FLASH_FWLOCK_FWLOCK_W                                                3
586 #define FLASH_FWLOCK_FWLOCK_M                                       0x00000007
587 #define FLASH_FWLOCK_FWLOCK_S                                                0
588 
589 //*****************************************************************************
590 //
591 // Register: FLASH_O_FWFLAG
592 //
593 //*****************************************************************************
594 // Field:   [2:0] FWFLAG
595 //
596 // Internal. Only to be used through TI provided API.
597 #define FLASH_FWFLAG_FWFLAG_W                                                3
598 #define FLASH_FWFLAG_FWFLAG_M                                       0x00000007
599 #define FLASH_FWFLAG_FWFLAG_S                                                0
600 
601 //*****************************************************************************
602 //
603 // Register: FLASH_O_EFUSE
604 //
605 //*****************************************************************************
606 // Field: [28:24] INSTRUCTION
607 //
608 // Internal. Only to be used through TI provided API.
609 #define FLASH_EFUSE_INSTRUCTION_W                                            5
610 #define FLASH_EFUSE_INSTRUCTION_M                                   0x1F000000
611 #define FLASH_EFUSE_INSTRUCTION_S                                           24
612 
613 // Field:  [15:0] DUMPWORD
614 //
615 // Internal. Only to be used through TI provided API.
616 #define FLASH_EFUSE_DUMPWORD_W                                              16
617 #define FLASH_EFUSE_DUMPWORD_M                                      0x0000FFFF
618 #define FLASH_EFUSE_DUMPWORD_S                                               0
619 
620 //*****************************************************************************
621 //
622 // Register: FLASH_O_EFUSEADDR
623 //
624 //*****************************************************************************
625 // Field: [15:11] BLOCK
626 //
627 // Internal. Only to be used through TI provided API.
628 #define FLASH_EFUSEADDR_BLOCK_W                                              5
629 #define FLASH_EFUSEADDR_BLOCK_M                                     0x0000F800
630 #define FLASH_EFUSEADDR_BLOCK_S                                             11
631 
632 // Field:  [10:0] ROW
633 //
634 // Internal. Only to be used through TI provided API.
635 #define FLASH_EFUSEADDR_ROW_W                                               11
636 #define FLASH_EFUSEADDR_ROW_M                                       0x000007FF
637 #define FLASH_EFUSEADDR_ROW_S                                                0
638 
639 //*****************************************************************************
640 //
641 // Register: FLASH_O_DATAUPPER
642 //
643 //*****************************************************************************
644 // Field:   [7:3] SPARE
645 //
646 // Internal. Only to be used through TI provided API.
647 #define FLASH_DATAUPPER_SPARE_W                                              5
648 #define FLASH_DATAUPPER_SPARE_M                                     0x000000F8
649 #define FLASH_DATAUPPER_SPARE_S                                              3
650 
651 // Field:     [2] P
652 //
653 // Internal. Only to be used through TI provided API.
654 #define FLASH_DATAUPPER_P                                           0x00000004
655 #define FLASH_DATAUPPER_P_BITN                                               2
656 #define FLASH_DATAUPPER_P_M                                         0x00000004
657 #define FLASH_DATAUPPER_P_S                                                  2
658 
659 // Field:     [1] R
660 //
661 // Internal. Only to be used through TI provided API.
662 #define FLASH_DATAUPPER_R                                           0x00000002
663 #define FLASH_DATAUPPER_R_BITN                                               1
664 #define FLASH_DATAUPPER_R_M                                         0x00000002
665 #define FLASH_DATAUPPER_R_S                                                  1
666 
667 // Field:     [0] EEN
668 //
669 // Internal. Only to be used through TI provided API.
670 #define FLASH_DATAUPPER_EEN                                         0x00000001
671 #define FLASH_DATAUPPER_EEN_BITN                                             0
672 #define FLASH_DATAUPPER_EEN_M                                       0x00000001
673 #define FLASH_DATAUPPER_EEN_S                                                0
674 
675 //*****************************************************************************
676 //
677 // Register: FLASH_O_DATALOWER
678 //
679 //*****************************************************************************
680 // Field:  [31:0] DATA
681 //
682 // Internal. Only to be used through TI provided API.
683 #define FLASH_DATALOWER_DATA_W                                              32
684 #define FLASH_DATALOWER_DATA_M                                      0xFFFFFFFF
685 #define FLASH_DATALOWER_DATA_S                                               0
686 
687 //*****************************************************************************
688 //
689 // Register: FLASH_O_EFUSECFG
690 //
691 //*****************************************************************************
692 // Field:     [8] IDLEGATING
693 //
694 // Internal. Only to be used through TI provided API.
695 #define FLASH_EFUSECFG_IDLEGATING                                   0x00000100
696 #define FLASH_EFUSECFG_IDLEGATING_BITN                                       8
697 #define FLASH_EFUSECFG_IDLEGATING_M                                 0x00000100
698 #define FLASH_EFUSECFG_IDLEGATING_S                                          8
699 
700 // Field:   [4:3] SLAVEPOWER
701 //
702 // Internal. Only to be used through TI provided API.
703 #define FLASH_EFUSECFG_SLAVEPOWER_W                                          2
704 #define FLASH_EFUSECFG_SLAVEPOWER_M                                 0x00000018
705 #define FLASH_EFUSECFG_SLAVEPOWER_S                                          3
706 
707 // Field:     [0] GATING
708 //
709 // Internal. Only to be used through TI provided API.
710 #define FLASH_EFUSECFG_GATING                                       0x00000001
711 #define FLASH_EFUSECFG_GATING_BITN                                           0
712 #define FLASH_EFUSECFG_GATING_M                                     0x00000001
713 #define FLASH_EFUSECFG_GATING_S                                              0
714 
715 //*****************************************************************************
716 //
717 // Register: FLASH_O_EFUSESTAT
718 //
719 //*****************************************************************************
720 // Field:     [0] RESETDONE
721 //
722 // Internal. Only to be used through TI provided API.
723 #define FLASH_EFUSESTAT_RESETDONE                                   0x00000001
724 #define FLASH_EFUSESTAT_RESETDONE_BITN                                       0
725 #define FLASH_EFUSESTAT_RESETDONE_M                                 0x00000001
726 #define FLASH_EFUSESTAT_RESETDONE_S                                          0
727 
728 //*****************************************************************************
729 //
730 // Register: FLASH_O_ACC
731 //
732 //*****************************************************************************
733 // Field:  [23:0] ACCUMULATOR
734 //
735 // Internal. Only to be used through TI provided API.
736 #define FLASH_ACC_ACCUMULATOR_W                                             24
737 #define FLASH_ACC_ACCUMULATOR_M                                     0x00FFFFFF
738 #define FLASH_ACC_ACCUMULATOR_S                                              0
739 
740 //*****************************************************************************
741 //
742 // Register: FLASH_O_BOUNDARY
743 //
744 //*****************************************************************************
745 // Field:    [23] DISROW0
746 //
747 // Internal. Only to be used through TI provided API.
748 #define FLASH_BOUNDARY_DISROW0                                      0x00800000
749 #define FLASH_BOUNDARY_DISROW0_BITN                                         23
750 #define FLASH_BOUNDARY_DISROW0_M                                    0x00800000
751 #define FLASH_BOUNDARY_DISROW0_S                                            23
752 
753 // Field:    [22] SPARE
754 //
755 // Internal. Only to be used through TI provided API.
756 #define FLASH_BOUNDARY_SPARE                                        0x00400000
757 #define FLASH_BOUNDARY_SPARE_BITN                                           22
758 #define FLASH_BOUNDARY_SPARE_M                                      0x00400000
759 #define FLASH_BOUNDARY_SPARE_S                                              22
760 
761 // Field:    [21] EFC_SELF_TEST_ERROR
762 //
763 // Internal. Only to be used through TI provided API.
764 #define FLASH_BOUNDARY_EFC_SELF_TEST_ERROR                          0x00200000
765 #define FLASH_BOUNDARY_EFC_SELF_TEST_ERROR_BITN                             21
766 #define FLASH_BOUNDARY_EFC_SELF_TEST_ERROR_M                        0x00200000
767 #define FLASH_BOUNDARY_EFC_SELF_TEST_ERROR_S                                21
768 
769 // Field:    [20] EFC_INSTRUCTION_INFO
770 //
771 // Internal. Only to be used through TI provided API.
772 #define FLASH_BOUNDARY_EFC_INSTRUCTION_INFO                         0x00100000
773 #define FLASH_BOUNDARY_EFC_INSTRUCTION_INFO_BITN                            20
774 #define FLASH_BOUNDARY_EFC_INSTRUCTION_INFO_M                       0x00100000
775 #define FLASH_BOUNDARY_EFC_INSTRUCTION_INFO_S                               20
776 
777 // Field:    [19] EFC_INSTRUCTION_ERROR
778 //
779 // Internal. Only to be used through TI provided API.
780 #define FLASH_BOUNDARY_EFC_INSTRUCTION_ERROR                        0x00080000
781 #define FLASH_BOUNDARY_EFC_INSTRUCTION_ERROR_BITN                           19
782 #define FLASH_BOUNDARY_EFC_INSTRUCTION_ERROR_M                      0x00080000
783 #define FLASH_BOUNDARY_EFC_INSTRUCTION_ERROR_S                              19
784 
785 // Field:    [18] EFC_AUTOLOAD_ERROR
786 //
787 // Internal. Only to be used through TI provided API.
788 #define FLASH_BOUNDARY_EFC_AUTOLOAD_ERROR                           0x00040000
789 #define FLASH_BOUNDARY_EFC_AUTOLOAD_ERROR_BITN                              18
790 #define FLASH_BOUNDARY_EFC_AUTOLOAD_ERROR_M                         0x00040000
791 #define FLASH_BOUNDARY_EFC_AUTOLOAD_ERROR_S                                 18
792 
793 // Field: [17:14] OUTPUTENABLE
794 //
795 // Internal. Only to be used through TI provided API.
796 #define FLASH_BOUNDARY_OUTPUTENABLE_W                                        4
797 #define FLASH_BOUNDARY_OUTPUTENABLE_M                               0x0003C000
798 #define FLASH_BOUNDARY_OUTPUTENABLE_S                                       14
799 
800 // Field:    [13] SYS_ECC_SELF_TEST_EN
801 //
802 // Internal. Only to be used through TI provided API.
803 #define FLASH_BOUNDARY_SYS_ECC_SELF_TEST_EN                         0x00002000
804 #define FLASH_BOUNDARY_SYS_ECC_SELF_TEST_EN_BITN                            13
805 #define FLASH_BOUNDARY_SYS_ECC_SELF_TEST_EN_M                       0x00002000
806 #define FLASH_BOUNDARY_SYS_ECC_SELF_TEST_EN_S                               13
807 
808 // Field:    [12] SYS_ECC_OVERRIDE_EN
809 //
810 // Internal. Only to be used through TI provided API.
811 #define FLASH_BOUNDARY_SYS_ECC_OVERRIDE_EN                          0x00001000
812 #define FLASH_BOUNDARY_SYS_ECC_OVERRIDE_EN_BITN                             12
813 #define FLASH_BOUNDARY_SYS_ECC_OVERRIDE_EN_M                        0x00001000
814 #define FLASH_BOUNDARY_SYS_ECC_OVERRIDE_EN_S                                12
815 
816 // Field:    [11] EFC_FDI
817 //
818 // Internal. Only to be used through TI provided API.
819 #define FLASH_BOUNDARY_EFC_FDI                                      0x00000800
820 #define FLASH_BOUNDARY_EFC_FDI_BITN                                         11
821 #define FLASH_BOUNDARY_EFC_FDI_M                                    0x00000800
822 #define FLASH_BOUNDARY_EFC_FDI_S                                            11
823 
824 // Field:    [10] SYS_DIEID_AUTOLOAD_EN
825 //
826 // Internal. Only to be used through TI provided API.
827 #define FLASH_BOUNDARY_SYS_DIEID_AUTOLOAD_EN                        0x00000400
828 #define FLASH_BOUNDARY_SYS_DIEID_AUTOLOAD_EN_BITN                           10
829 #define FLASH_BOUNDARY_SYS_DIEID_AUTOLOAD_EN_M                      0x00000400
830 #define FLASH_BOUNDARY_SYS_DIEID_AUTOLOAD_EN_S                              10
831 
832 // Field:   [9:8] SYS_REPAIR_EN
833 //
834 // Internal. Only to be used through TI provided API.
835 #define FLASH_BOUNDARY_SYS_REPAIR_EN_W                                       2
836 #define FLASH_BOUNDARY_SYS_REPAIR_EN_M                              0x00000300
837 #define FLASH_BOUNDARY_SYS_REPAIR_EN_S                                       8
838 
839 // Field:   [7:4] SYS_WS_READ_STATES
840 //
841 // Internal. Only to be used through TI provided API.
842 #define FLASH_BOUNDARY_SYS_WS_READ_STATES_W                                  4
843 #define FLASH_BOUNDARY_SYS_WS_READ_STATES_M                         0x000000F0
844 #define FLASH_BOUNDARY_SYS_WS_READ_STATES_S                                  4
845 
846 // Field:   [3:0] INPUTENABLE
847 //
848 // Internal. Only to be used through TI provided API.
849 #define FLASH_BOUNDARY_INPUTENABLE_W                                         4
850 #define FLASH_BOUNDARY_INPUTENABLE_M                                0x0000000F
851 #define FLASH_BOUNDARY_INPUTENABLE_S                                         0
852 
853 //*****************************************************************************
854 //
855 // Register: FLASH_O_EFUSEFLAG
856 //
857 //*****************************************************************************
858 // Field:     [0] KEY
859 //
860 // Internal. Only to be used through TI provided API.
861 #define FLASH_EFUSEFLAG_KEY                                         0x00000001
862 #define FLASH_EFUSEFLAG_KEY_BITN                                             0
863 #define FLASH_EFUSEFLAG_KEY_M                                       0x00000001
864 #define FLASH_EFUSEFLAG_KEY_S                                                0
865 
866 //*****************************************************************************
867 //
868 // Register: FLASH_O_EFUSEKEY
869 //
870 //*****************************************************************************
871 // Field:  [31:0] CODE
872 //
873 // Internal. Only to be used through TI provided API.
874 #define FLASH_EFUSEKEY_CODE_W                                               32
875 #define FLASH_EFUSEKEY_CODE_M                                       0xFFFFFFFF
876 #define FLASH_EFUSEKEY_CODE_S                                                0
877 
878 //*****************************************************************************
879 //
880 // Register: FLASH_O_EFUSERELEASE
881 //
882 //*****************************************************************************
883 // Field: [31:25] ODPYEAR
884 //
885 // Internal. Only to be used through TI provided API.
886 #define FLASH_EFUSERELEASE_ODPYEAR_W                                         7
887 #define FLASH_EFUSERELEASE_ODPYEAR_M                                0xFE000000
888 #define FLASH_EFUSERELEASE_ODPYEAR_S                                        25
889 
890 // Field: [24:21] ODPMONTH
891 //
892 // Internal. Only to be used through TI provided API.
893 #define FLASH_EFUSERELEASE_ODPMONTH_W                                        4
894 #define FLASH_EFUSERELEASE_ODPMONTH_M                               0x01E00000
895 #define FLASH_EFUSERELEASE_ODPMONTH_S                                       21
896 
897 // Field: [20:16] ODPDAY
898 //
899 // Internal. Only to be used through TI provided API.
900 #define FLASH_EFUSERELEASE_ODPDAY_W                                          5
901 #define FLASH_EFUSERELEASE_ODPDAY_M                                 0x001F0000
902 #define FLASH_EFUSERELEASE_ODPDAY_S                                         16
903 
904 // Field:  [15:9] EFUSEYEAR
905 //
906 // Internal. Only to be used through TI provided API.
907 #define FLASH_EFUSERELEASE_EFUSEYEAR_W                                       7
908 #define FLASH_EFUSERELEASE_EFUSEYEAR_M                              0x0000FE00
909 #define FLASH_EFUSERELEASE_EFUSEYEAR_S                                       9
910 
911 // Field:   [8:5] EFUSEMONTH
912 //
913 // Internal. Only to be used through TI provided API.
914 #define FLASH_EFUSERELEASE_EFUSEMONTH_W                                      4
915 #define FLASH_EFUSERELEASE_EFUSEMONTH_M                             0x000001E0
916 #define FLASH_EFUSERELEASE_EFUSEMONTH_S                                      5
917 
918 // Field:   [4:0] EFUSEDAY
919 //
920 // Internal. Only to be used through TI provided API.
921 #define FLASH_EFUSERELEASE_EFUSEDAY_W                                        5
922 #define FLASH_EFUSERELEASE_EFUSEDAY_M                               0x0000001F
923 #define FLASH_EFUSERELEASE_EFUSEDAY_S                                        0
924 
925 //*****************************************************************************
926 //
927 // Register: FLASH_O_EFUSEPINS
928 //
929 //*****************************************************************************
930 // Field:    [15] EFC_SELF_TEST_DONE
931 //
932 // Internal. Only to be used through TI provided API.
933 #define FLASH_EFUSEPINS_EFC_SELF_TEST_DONE                          0x00008000
934 #define FLASH_EFUSEPINS_EFC_SELF_TEST_DONE_BITN                             15
935 #define FLASH_EFUSEPINS_EFC_SELF_TEST_DONE_M                        0x00008000
936 #define FLASH_EFUSEPINS_EFC_SELF_TEST_DONE_S                                15
937 
938 // Field:    [14] EFC_SELF_TEST_ERROR
939 //
940 // Internal. Only to be used through TI provided API.
941 #define FLASH_EFUSEPINS_EFC_SELF_TEST_ERROR                         0x00004000
942 #define FLASH_EFUSEPINS_EFC_SELF_TEST_ERROR_BITN                            14
943 #define FLASH_EFUSEPINS_EFC_SELF_TEST_ERROR_M                       0x00004000
944 #define FLASH_EFUSEPINS_EFC_SELF_TEST_ERROR_S                               14
945 
946 // Field:    [13] SYS_ECC_SELF_TEST_EN
947 //
948 // Internal. Only to be used through TI provided API.
949 #define FLASH_EFUSEPINS_SYS_ECC_SELF_TEST_EN                        0x00002000
950 #define FLASH_EFUSEPINS_SYS_ECC_SELF_TEST_EN_BITN                           13
951 #define FLASH_EFUSEPINS_SYS_ECC_SELF_TEST_EN_M                      0x00002000
952 #define FLASH_EFUSEPINS_SYS_ECC_SELF_TEST_EN_S                              13
953 
954 // Field:    [12] EFC_INSTRUCTION_INFO
955 //
956 // Internal. Only to be used through TI provided API.
957 #define FLASH_EFUSEPINS_EFC_INSTRUCTION_INFO                        0x00001000
958 #define FLASH_EFUSEPINS_EFC_INSTRUCTION_INFO_BITN                           12
959 #define FLASH_EFUSEPINS_EFC_INSTRUCTION_INFO_M                      0x00001000
960 #define FLASH_EFUSEPINS_EFC_INSTRUCTION_INFO_S                              12
961 
962 // Field:    [11] EFC_INSTRUCTION_ERROR
963 //
964 // Internal. Only to be used through TI provided API.
965 #define FLASH_EFUSEPINS_EFC_INSTRUCTION_ERROR                       0x00000800
966 #define FLASH_EFUSEPINS_EFC_INSTRUCTION_ERROR_BITN                          11
967 #define FLASH_EFUSEPINS_EFC_INSTRUCTION_ERROR_M                     0x00000800
968 #define FLASH_EFUSEPINS_EFC_INSTRUCTION_ERROR_S                             11
969 
970 // Field:    [10] EFC_AUTOLOAD_ERROR
971 //
972 // Internal. Only to be used through TI provided API.
973 #define FLASH_EFUSEPINS_EFC_AUTOLOAD_ERROR                          0x00000400
974 #define FLASH_EFUSEPINS_EFC_AUTOLOAD_ERROR_BITN                             10
975 #define FLASH_EFUSEPINS_EFC_AUTOLOAD_ERROR_M                        0x00000400
976 #define FLASH_EFUSEPINS_EFC_AUTOLOAD_ERROR_S                                10
977 
978 // Field:     [9] SYS_ECC_OVERRIDE_EN
979 //
980 // Internal. Only to be used through TI provided API.
981 #define FLASH_EFUSEPINS_SYS_ECC_OVERRIDE_EN                         0x00000200
982 #define FLASH_EFUSEPINS_SYS_ECC_OVERRIDE_EN_BITN                             9
983 #define FLASH_EFUSEPINS_SYS_ECC_OVERRIDE_EN_M                       0x00000200
984 #define FLASH_EFUSEPINS_SYS_ECC_OVERRIDE_EN_S                                9
985 
986 // Field:     [8] EFC_READY
987 //
988 // Internal. Only to be used through TI provided API.
989 #define FLASH_EFUSEPINS_EFC_READY                                   0x00000100
990 #define FLASH_EFUSEPINS_EFC_READY_BITN                                       8
991 #define FLASH_EFUSEPINS_EFC_READY_M                                 0x00000100
992 #define FLASH_EFUSEPINS_EFC_READY_S                                          8
993 
994 // Field:     [7] EFC_FCLRZ
995 //
996 // Internal. Only to be used through TI provided API.
997 #define FLASH_EFUSEPINS_EFC_FCLRZ                                   0x00000080
998 #define FLASH_EFUSEPINS_EFC_FCLRZ_BITN                                       7
999 #define FLASH_EFUSEPINS_EFC_FCLRZ_M                                 0x00000080
1000 #define FLASH_EFUSEPINS_EFC_FCLRZ_S                                          7
1001 
1002 // Field:     [6] SYS_DIEID_AUTOLOAD_EN
1003 //
1004 // Internal. Only to be used through TI provided API.
1005 #define FLASH_EFUSEPINS_SYS_DIEID_AUTOLOAD_EN                       0x00000040
1006 #define FLASH_EFUSEPINS_SYS_DIEID_AUTOLOAD_EN_BITN                           6
1007 #define FLASH_EFUSEPINS_SYS_DIEID_AUTOLOAD_EN_M                     0x00000040
1008 #define FLASH_EFUSEPINS_SYS_DIEID_AUTOLOAD_EN_S                              6
1009 
1010 // Field:   [5:4] SYS_REPAIR_EN
1011 //
1012 // Internal. Only to be used through TI provided API.
1013 #define FLASH_EFUSEPINS_SYS_REPAIR_EN_W                                      2
1014 #define FLASH_EFUSEPINS_SYS_REPAIR_EN_M                             0x00000030
1015 #define FLASH_EFUSEPINS_SYS_REPAIR_EN_S                                      4
1016 
1017 // Field:   [3:0] SYS_WS_READ_STATES
1018 //
1019 // Internal. Only to be used through TI provided API.
1020 #define FLASH_EFUSEPINS_SYS_WS_READ_STATES_W                                 4
1021 #define FLASH_EFUSEPINS_SYS_WS_READ_STATES_M                        0x0000000F
1022 #define FLASH_EFUSEPINS_SYS_WS_READ_STATES_S                                 0
1023 
1024 //*****************************************************************************
1025 //
1026 // Register: FLASH_O_EFUSECRA
1027 //
1028 //*****************************************************************************
1029 // Field:   [5:0] DATA
1030 //
1031 // Internal. Only to be used through TI provided API.
1032 #define FLASH_EFUSECRA_DATA_W                                                6
1033 #define FLASH_EFUSECRA_DATA_M                                       0x0000003F
1034 #define FLASH_EFUSECRA_DATA_S                                                0
1035 
1036 //*****************************************************************************
1037 //
1038 // Register: FLASH_O_EFUSEREAD
1039 //
1040 //*****************************************************************************
1041 // Field:   [9:8] DATABIT
1042 //
1043 // Internal. Only to be used through TI provided API.
1044 #define FLASH_EFUSEREAD_DATABIT_W                                            2
1045 #define FLASH_EFUSEREAD_DATABIT_M                                   0x00000300
1046 #define FLASH_EFUSEREAD_DATABIT_S                                            8
1047 
1048 // Field:   [7:4] READCLOCK
1049 //
1050 // Internal. Only to be used through TI provided API.
1051 #define FLASH_EFUSEREAD_READCLOCK_W                                          4
1052 #define FLASH_EFUSEREAD_READCLOCK_M                                 0x000000F0
1053 #define FLASH_EFUSEREAD_READCLOCK_S                                          4
1054 
1055 // Field:     [3] DEBUG
1056 //
1057 // Internal. Only to be used through TI provided API.
1058 #define FLASH_EFUSEREAD_DEBUG                                       0x00000008
1059 #define FLASH_EFUSEREAD_DEBUG_BITN                                           3
1060 #define FLASH_EFUSEREAD_DEBUG_M                                     0x00000008
1061 #define FLASH_EFUSEREAD_DEBUG_S                                              3
1062 
1063 // Field:     [2] SPARE
1064 //
1065 // Internal. Only to be used through TI provided API.
1066 #define FLASH_EFUSEREAD_SPARE                                       0x00000004
1067 #define FLASH_EFUSEREAD_SPARE_BITN                                           2
1068 #define FLASH_EFUSEREAD_SPARE_M                                     0x00000004
1069 #define FLASH_EFUSEREAD_SPARE_S                                              2
1070 
1071 // Field:   [1:0] MARGIN
1072 //
1073 // Internal. Only to be used through TI provided API.
1074 #define FLASH_EFUSEREAD_MARGIN_W                                             2
1075 #define FLASH_EFUSEREAD_MARGIN_M                                    0x00000003
1076 #define FLASH_EFUSEREAD_MARGIN_S                                             0
1077 
1078 //*****************************************************************************
1079 //
1080 // Register: FLASH_O_EFUSEPROGRAM
1081 //
1082 //*****************************************************************************
1083 // Field:    [30] COMPAREDISABLE
1084 //
1085 // Internal. Only to be used through TI provided API.
1086 #define FLASH_EFUSEPROGRAM_COMPAREDISABLE                           0x40000000
1087 #define FLASH_EFUSEPROGRAM_COMPAREDISABLE_BITN                              30
1088 #define FLASH_EFUSEPROGRAM_COMPAREDISABLE_M                         0x40000000
1089 #define FLASH_EFUSEPROGRAM_COMPAREDISABLE_S                                 30
1090 
1091 // Field: [29:14] CLOCKSTALL
1092 //
1093 // Internal. Only to be used through TI provided API.
1094 #define FLASH_EFUSEPROGRAM_CLOCKSTALL_W                                     16
1095 #define FLASH_EFUSEPROGRAM_CLOCKSTALL_M                             0x3FFFC000
1096 #define FLASH_EFUSEPROGRAM_CLOCKSTALL_S                                     14
1097 
1098 // Field:    [13] VPPTOVDD
1099 //
1100 // Internal. Only to be used through TI provided API.
1101 #define FLASH_EFUSEPROGRAM_VPPTOVDD                                 0x00002000
1102 #define FLASH_EFUSEPROGRAM_VPPTOVDD_BITN                                    13
1103 #define FLASH_EFUSEPROGRAM_VPPTOVDD_M                               0x00002000
1104 #define FLASH_EFUSEPROGRAM_VPPTOVDD_S                                       13
1105 
1106 // Field:  [12:9] ITERATIONS
1107 //
1108 // Internal. Only to be used through TI provided API.
1109 #define FLASH_EFUSEPROGRAM_ITERATIONS_W                                      4
1110 #define FLASH_EFUSEPROGRAM_ITERATIONS_M                             0x00001E00
1111 #define FLASH_EFUSEPROGRAM_ITERATIONS_S                                      9
1112 
1113 // Field:   [8:0] WRITECLOCK
1114 //
1115 // Internal. Only to be used through TI provided API.
1116 #define FLASH_EFUSEPROGRAM_WRITECLOCK_W                                      9
1117 #define FLASH_EFUSEPROGRAM_WRITECLOCK_M                             0x000001FF
1118 #define FLASH_EFUSEPROGRAM_WRITECLOCK_S                                      0
1119 
1120 //*****************************************************************************
1121 //
1122 // Register: FLASH_O_EFUSEERROR
1123 //
1124 //*****************************************************************************
1125 // Field:     [5] DONE
1126 //
1127 // Internal. Only to be used through TI provided API.
1128 #define FLASH_EFUSEERROR_DONE                                       0x00000020
1129 #define FLASH_EFUSEERROR_DONE_BITN                                           5
1130 #define FLASH_EFUSEERROR_DONE_M                                     0x00000020
1131 #define FLASH_EFUSEERROR_DONE_S                                              5
1132 
1133 // Field:   [4:0] CODE
1134 //
1135 // Internal. Only to be used through TI provided API.
1136 #define FLASH_EFUSEERROR_CODE_W                                              5
1137 #define FLASH_EFUSEERROR_CODE_M                                     0x0000001F
1138 #define FLASH_EFUSEERROR_CODE_S                                              0
1139 
1140 //*****************************************************************************
1141 //
1142 // Register: FLASH_O_SINGLEBIT
1143 //
1144 //*****************************************************************************
1145 // Field:  [31:1] FROMN
1146 //
1147 // Internal. Only to be used through TI provided API.
1148 #define FLASH_SINGLEBIT_FROMN_W                                             31
1149 #define FLASH_SINGLEBIT_FROMN_M                                     0xFFFFFFFE
1150 #define FLASH_SINGLEBIT_FROMN_S                                              1
1151 
1152 // Field:     [0] FROM0
1153 //
1154 // Internal. Only to be used through TI provided API.
1155 #define FLASH_SINGLEBIT_FROM0                                       0x00000001
1156 #define FLASH_SINGLEBIT_FROM0_BITN                                           0
1157 #define FLASH_SINGLEBIT_FROM0_M                                     0x00000001
1158 #define FLASH_SINGLEBIT_FROM0_S                                              0
1159 
1160 //*****************************************************************************
1161 //
1162 // Register: FLASH_O_TWOBIT
1163 //
1164 //*****************************************************************************
1165 // Field:  [31:1] FROMN
1166 //
1167 // Internal. Only to be used through TI provided API.
1168 #define FLASH_TWOBIT_FROMN_W                                                31
1169 #define FLASH_TWOBIT_FROMN_M                                        0xFFFFFFFE
1170 #define FLASH_TWOBIT_FROMN_S                                                 1
1171 
1172 // Field:     [0] FROM0
1173 //
1174 // Internal. Only to be used through TI provided API.
1175 #define FLASH_TWOBIT_FROM0                                          0x00000001
1176 #define FLASH_TWOBIT_FROM0_BITN                                              0
1177 #define FLASH_TWOBIT_FROM0_M                                        0x00000001
1178 #define FLASH_TWOBIT_FROM0_S                                                 0
1179 
1180 //*****************************************************************************
1181 //
1182 // Register: FLASH_O_SELFTESTCYC
1183 //
1184 //*****************************************************************************
1185 // Field:  [31:0] CYCLES
1186 //
1187 // Internal. Only to be used through TI provided API.
1188 #define FLASH_SELFTESTCYC_CYCLES_W                                          32
1189 #define FLASH_SELFTESTCYC_CYCLES_M                                  0xFFFFFFFF
1190 #define FLASH_SELFTESTCYC_CYCLES_S                                           0
1191 
1192 //*****************************************************************************
1193 //
1194 // Register: FLASH_O_SELFTESTSIGN
1195 //
1196 //*****************************************************************************
1197 // Field:  [31:0] SIGNATURE
1198 //
1199 // Internal. Only to be used through TI provided API.
1200 #define FLASH_SELFTESTSIGN_SIGNATURE_W                                      32
1201 #define FLASH_SELFTESTSIGN_SIGNATURE_M                              0xFFFFFFFF
1202 #define FLASH_SELFTESTSIGN_SIGNATURE_S                                       0
1203 
1204 //*****************************************************************************
1205 //
1206 // Register: FLASH_O_FRDCTL
1207 //
1208 //*****************************************************************************
1209 // Field:  [11:8] RWAIT
1210 //
1211 // Internal. Only to be used through TI provided API.
1212 #define FLASH_FRDCTL_RWAIT_W                                                 4
1213 #define FLASH_FRDCTL_RWAIT_M                                        0x00000F00
1214 #define FLASH_FRDCTL_RWAIT_S                                                 8
1215 
1216 //*****************************************************************************
1217 //
1218 // Register: FLASH_O_FSPRD
1219 //
1220 //*****************************************************************************
1221 // Field:  [15:8] RMBSEM
1222 //
1223 // Internal. Only to be used through TI provided API.
1224 #define FLASH_FSPRD_RMBSEM_W                                                 8
1225 #define FLASH_FSPRD_RMBSEM_M                                        0x0000FF00
1226 #define FLASH_FSPRD_RMBSEM_S                                                 8
1227 
1228 // Field:     [1] RM1
1229 //
1230 // Internal. Only to be used through TI provided API.
1231 #define FLASH_FSPRD_RM1                                             0x00000002
1232 #define FLASH_FSPRD_RM1_BITN                                                 1
1233 #define FLASH_FSPRD_RM1_M                                           0x00000002
1234 #define FLASH_FSPRD_RM1_S                                                    1
1235 
1236 // Field:     [0] RM0
1237 //
1238 // Internal. Only to be used through TI provided API.
1239 #define FLASH_FSPRD_RM0                                             0x00000001
1240 #define FLASH_FSPRD_RM0_BITN                                                 0
1241 #define FLASH_FSPRD_RM0_M                                           0x00000001
1242 #define FLASH_FSPRD_RM0_S                                                    0
1243 
1244 //*****************************************************************************
1245 //
1246 // Register: FLASH_O_FEDACCTL1
1247 //
1248 //*****************************************************************************
1249 // Field:    [24] SUSP_IGNR
1250 //
1251 // Internal. Only to be used through TI provided API.
1252 #define FLASH_FEDACCTL1_SUSP_IGNR                                   0x01000000
1253 #define FLASH_FEDACCTL1_SUSP_IGNR_BITN                                      24
1254 #define FLASH_FEDACCTL1_SUSP_IGNR_M                                 0x01000000
1255 #define FLASH_FEDACCTL1_SUSP_IGNR_S                                         24
1256 
1257 //*****************************************************************************
1258 //
1259 // Register: FLASH_O_FEDACSTAT
1260 //
1261 //*****************************************************************************
1262 // Field:    [25] RVF_INT
1263 //
1264 // Internal. Only to be used through TI provided API.
1265 #define FLASH_FEDACSTAT_RVF_INT                                     0x02000000
1266 #define FLASH_FEDACSTAT_RVF_INT_BITN                                        25
1267 #define FLASH_FEDACSTAT_RVF_INT_M                                   0x02000000
1268 #define FLASH_FEDACSTAT_RVF_INT_S                                           25
1269 
1270 // Field:    [24] FSM_DONE
1271 //
1272 // Internal. Only to be used through TI provided API.
1273 #define FLASH_FEDACSTAT_FSM_DONE                                    0x01000000
1274 #define FLASH_FEDACSTAT_FSM_DONE_BITN                                       24
1275 #define FLASH_FEDACSTAT_FSM_DONE_M                                  0x01000000
1276 #define FLASH_FEDACSTAT_FSM_DONE_S                                          24
1277 
1278 //*****************************************************************************
1279 //
1280 // Register: FLASH_O_FBPROT
1281 //
1282 //*****************************************************************************
1283 // Field:     [0] PROTL1DIS
1284 //
1285 // Internal. Only to be used through TI provided API.
1286 #define FLASH_FBPROT_PROTL1DIS                                      0x00000001
1287 #define FLASH_FBPROT_PROTL1DIS_BITN                                          0
1288 #define FLASH_FBPROT_PROTL1DIS_M                                    0x00000001
1289 #define FLASH_FBPROT_PROTL1DIS_S                                             0
1290 
1291 //*****************************************************************************
1292 //
1293 // Register: FLASH_O_FBSE
1294 //
1295 //*****************************************************************************
1296 // Field:  [15:0] BSE
1297 //
1298 // Internal. Only to be used through TI provided API.
1299 #define FLASH_FBSE_BSE_W                                                    16
1300 #define FLASH_FBSE_BSE_M                                            0x0000FFFF
1301 #define FLASH_FBSE_BSE_S                                                     0
1302 
1303 //*****************************************************************************
1304 //
1305 // Register: FLASH_O_FBBUSY
1306 //
1307 //*****************************************************************************
1308 // Field:   [7:0] BUSY
1309 //
1310 // Internal. Only to be used through TI provided API.
1311 #define FLASH_FBBUSY_BUSY_W                                                  8
1312 #define FLASH_FBBUSY_BUSY_M                                         0x000000FF
1313 #define FLASH_FBBUSY_BUSY_S                                                  0
1314 
1315 //*****************************************************************************
1316 //
1317 // Register: FLASH_O_FBAC
1318 //
1319 //*****************************************************************************
1320 // Field:    [16] OTPPROTDIS
1321 //
1322 // Internal. Only to be used through TI provided API.
1323 #define FLASH_FBAC_OTPPROTDIS                                       0x00010000
1324 #define FLASH_FBAC_OTPPROTDIS_BITN                                          16
1325 #define FLASH_FBAC_OTPPROTDIS_M                                     0x00010000
1326 #define FLASH_FBAC_OTPPROTDIS_S                                             16
1327 
1328 // Field:  [15:8] BAGP
1329 //
1330 // Internal. Only to be used through TI provided API.
1331 #define FLASH_FBAC_BAGP_W                                                    8
1332 #define FLASH_FBAC_BAGP_M                                           0x0000FF00
1333 #define FLASH_FBAC_BAGP_S                                                    8
1334 
1335 // Field:   [7:0] VREADS
1336 //
1337 // Internal. Only to be used through TI provided API.
1338 #define FLASH_FBAC_VREADS_W                                                  8
1339 #define FLASH_FBAC_VREADS_M                                         0x000000FF
1340 #define FLASH_FBAC_VREADS_S                                                  0
1341 
1342 //*****************************************************************************
1343 //
1344 // Register: FLASH_O_FBFALLBACK
1345 //
1346 //*****************************************************************************
1347 // Field: [27:24] FSM_PWRSAV
1348 //
1349 // Internal. Only to be used through TI provided API.
1350 #define FLASH_FBFALLBACK_FSM_PWRSAV_W                                        4
1351 #define FLASH_FBFALLBACK_FSM_PWRSAV_M                               0x0F000000
1352 #define FLASH_FBFALLBACK_FSM_PWRSAV_S                                       24
1353 
1354 // Field: [19:16] REG_PWRSAV
1355 //
1356 // Internal. Only to be used through TI provided API.
1357 #define FLASH_FBFALLBACK_REG_PWRSAV_W                                        4
1358 #define FLASH_FBFALLBACK_REG_PWRSAV_M                               0x000F0000
1359 #define FLASH_FBFALLBACK_REG_PWRSAV_S                                       16
1360 
1361 // Field: [15:14] BANKPWR7
1362 //
1363 // Internal. Only to be used through TI provided API.
1364 #define FLASH_FBFALLBACK_BANKPWR7_W                                          2
1365 #define FLASH_FBFALLBACK_BANKPWR7_M                                 0x0000C000
1366 #define FLASH_FBFALLBACK_BANKPWR7_S                                         14
1367 
1368 // Field: [13:12] BANKPWR6
1369 //
1370 // Internal. Only to be used through TI provided API.
1371 #define FLASH_FBFALLBACK_BANKPWR6_W                                          2
1372 #define FLASH_FBFALLBACK_BANKPWR6_M                                 0x00003000
1373 #define FLASH_FBFALLBACK_BANKPWR6_S                                         12
1374 
1375 // Field: [11:10] BANKPWR5
1376 //
1377 // Internal. Only to be used through TI provided API.
1378 #define FLASH_FBFALLBACK_BANKPWR5_W                                          2
1379 #define FLASH_FBFALLBACK_BANKPWR5_M                                 0x00000C00
1380 #define FLASH_FBFALLBACK_BANKPWR5_S                                         10
1381 
1382 // Field:   [9:8] BANKPWR4
1383 //
1384 // Internal. Only to be used through TI provided API.
1385 #define FLASH_FBFALLBACK_BANKPWR4_W                                          2
1386 #define FLASH_FBFALLBACK_BANKPWR4_M                                 0x00000300
1387 #define FLASH_FBFALLBACK_BANKPWR4_S                                          8
1388 
1389 // Field:   [7:6] BANKPWR3
1390 //
1391 // Internal. Only to be used through TI provided API.
1392 #define FLASH_FBFALLBACK_BANKPWR3_W                                          2
1393 #define FLASH_FBFALLBACK_BANKPWR3_M                                 0x000000C0
1394 #define FLASH_FBFALLBACK_BANKPWR3_S                                          6
1395 
1396 // Field:   [5:4] BANKPWR2
1397 //
1398 // Internal. Only to be used through TI provided API.
1399 #define FLASH_FBFALLBACK_BANKPWR2_W                                          2
1400 #define FLASH_FBFALLBACK_BANKPWR2_M                                 0x00000030
1401 #define FLASH_FBFALLBACK_BANKPWR2_S                                          4
1402 
1403 // Field:   [3:2] BANKPWR1
1404 //
1405 // Internal. Only to be used through TI provided API.
1406 #define FLASH_FBFALLBACK_BANKPWR1_W                                          2
1407 #define FLASH_FBFALLBACK_BANKPWR1_M                                 0x0000000C
1408 #define FLASH_FBFALLBACK_BANKPWR1_S                                          2
1409 
1410 // Field:   [1:0] BANKPWR0
1411 //
1412 // Internal. Only to be used through TI provided API.
1413 #define FLASH_FBFALLBACK_BANKPWR0_W                                          2
1414 #define FLASH_FBFALLBACK_BANKPWR0_M                                 0x00000003
1415 #define FLASH_FBFALLBACK_BANKPWR0_S                                          0
1416 
1417 //*****************************************************************************
1418 //
1419 // Register: FLASH_O_FBPRDY
1420 //
1421 //*****************************************************************************
1422 // Field:    [16] BANKBUSY
1423 //
1424 // Internal. Only to be used through TI provided API.
1425 #define FLASH_FBPRDY_BANKBUSY                                       0x00010000
1426 #define FLASH_FBPRDY_BANKBUSY_BITN                                          16
1427 #define FLASH_FBPRDY_BANKBUSY_M                                     0x00010000
1428 #define FLASH_FBPRDY_BANKBUSY_S                                             16
1429 
1430 // Field:    [15] PUMPRDY
1431 //
1432 // Internal. Only to be used through TI provided API.
1433 #define FLASH_FBPRDY_PUMPRDY                                        0x00008000
1434 #define FLASH_FBPRDY_PUMPRDY_BITN                                           15
1435 #define FLASH_FBPRDY_PUMPRDY_M                                      0x00008000
1436 #define FLASH_FBPRDY_PUMPRDY_S                                              15
1437 
1438 // Field:     [0] BANKRDY
1439 //
1440 // Internal. Only to be used through TI provided API.
1441 #define FLASH_FBPRDY_BANKRDY                                        0x00000001
1442 #define FLASH_FBPRDY_BANKRDY_BITN                                            0
1443 #define FLASH_FBPRDY_BANKRDY_M                                      0x00000001
1444 #define FLASH_FBPRDY_BANKRDY_S                                               0
1445 
1446 //*****************************************************************************
1447 //
1448 // Register: FLASH_O_FPAC1
1449 //
1450 //*****************************************************************************
1451 // Field: [27:16] PSLEEPTDIS
1452 //
1453 // Internal. Only to be used through TI provided API.
1454 #define FLASH_FPAC1_PSLEEPTDIS_W                                            12
1455 #define FLASH_FPAC1_PSLEEPTDIS_M                                    0x0FFF0000
1456 #define FLASH_FPAC1_PSLEEPTDIS_S                                            16
1457 
1458 // Field:  [15:4] PUMPRESET_PW
1459 //
1460 // Internal. Only to be used through TI provided API.
1461 #define FLASH_FPAC1_PUMPRESET_PW_W                                          12
1462 #define FLASH_FPAC1_PUMPRESET_PW_M                                  0x0000FFF0
1463 #define FLASH_FPAC1_PUMPRESET_PW_S                                           4
1464 
1465 // Field:   [1:0] PUMPPWR
1466 //
1467 // Internal. Only to be used through TI provided API.
1468 #define FLASH_FPAC1_PUMPPWR_W                                                2
1469 #define FLASH_FPAC1_PUMPPWR_M                                       0x00000003
1470 #define FLASH_FPAC1_PUMPPWR_S                                                0
1471 
1472 //*****************************************************************************
1473 //
1474 // Register: FLASH_O_FPAC2
1475 //
1476 //*****************************************************************************
1477 // Field:  [15:0] PAGP
1478 //
1479 // Internal. Only to be used through TI provided API.
1480 #define FLASH_FPAC2_PAGP_W                                                  16
1481 #define FLASH_FPAC2_PAGP_M                                          0x0000FFFF
1482 #define FLASH_FPAC2_PAGP_S                                                   0
1483 
1484 //*****************************************************************************
1485 //
1486 // Register: FLASH_O_FMAC
1487 //
1488 //*****************************************************************************
1489 // Field:   [2:0] BANK
1490 //
1491 // Internal. Only to be used through TI provided API.
1492 #define FLASH_FMAC_BANK_W                                                    3
1493 #define FLASH_FMAC_BANK_M                                           0x00000007
1494 #define FLASH_FMAC_BANK_S                                                    0
1495 
1496 //*****************************************************************************
1497 //
1498 // Register: FLASH_O_FMSTAT
1499 //
1500 //*****************************************************************************
1501 // Field:    [17] RVSUSP
1502 //
1503 // Internal. Only to be used through TI provided API.
1504 #define FLASH_FMSTAT_RVSUSP                                         0x00020000
1505 #define FLASH_FMSTAT_RVSUSP_BITN                                            17
1506 #define FLASH_FMSTAT_RVSUSP_M                                       0x00020000
1507 #define FLASH_FMSTAT_RVSUSP_S                                               17
1508 
1509 // Field:    [16] RDVER
1510 //
1511 // Internal. Only to be used through TI provided API.
1512 #define FLASH_FMSTAT_RDVER                                          0x00010000
1513 #define FLASH_FMSTAT_RDVER_BITN                                             16
1514 #define FLASH_FMSTAT_RDVER_M                                        0x00010000
1515 #define FLASH_FMSTAT_RDVER_S                                                16
1516 
1517 // Field:    [15] RVF
1518 //
1519 // Internal. Only to be used through TI provided API.
1520 #define FLASH_FMSTAT_RVF                                            0x00008000
1521 #define FLASH_FMSTAT_RVF_BITN                                               15
1522 #define FLASH_FMSTAT_RVF_M                                          0x00008000
1523 #define FLASH_FMSTAT_RVF_S                                                  15
1524 
1525 // Field:    [14] ILA
1526 //
1527 // Internal. Only to be used through TI provided API.
1528 #define FLASH_FMSTAT_ILA                                            0x00004000
1529 #define FLASH_FMSTAT_ILA_BITN                                               14
1530 #define FLASH_FMSTAT_ILA_M                                          0x00004000
1531 #define FLASH_FMSTAT_ILA_S                                                  14
1532 
1533 // Field:    [13] DBF
1534 //
1535 // Internal. Only to be used through TI provided API.
1536 #define FLASH_FMSTAT_DBF                                            0x00002000
1537 #define FLASH_FMSTAT_DBF_BITN                                               13
1538 #define FLASH_FMSTAT_DBF_M                                          0x00002000
1539 #define FLASH_FMSTAT_DBF_S                                                  13
1540 
1541 // Field:    [12] PGV
1542 //
1543 // Internal. Only to be used through TI provided API.
1544 #define FLASH_FMSTAT_PGV                                            0x00001000
1545 #define FLASH_FMSTAT_PGV_BITN                                               12
1546 #define FLASH_FMSTAT_PGV_M                                          0x00001000
1547 #define FLASH_FMSTAT_PGV_S                                                  12
1548 
1549 // Field:    [11] PCV
1550 //
1551 // Internal. Only to be used through TI provided API.
1552 #define FLASH_FMSTAT_PCV                                            0x00000800
1553 #define FLASH_FMSTAT_PCV_BITN                                               11
1554 #define FLASH_FMSTAT_PCV_M                                          0x00000800
1555 #define FLASH_FMSTAT_PCV_S                                                  11
1556 
1557 // Field:    [10] EV
1558 //
1559 // Internal. Only to be used through TI provided API.
1560 #define FLASH_FMSTAT_EV                                             0x00000400
1561 #define FLASH_FMSTAT_EV_BITN                                                10
1562 #define FLASH_FMSTAT_EV_M                                           0x00000400
1563 #define FLASH_FMSTAT_EV_S                                                   10
1564 
1565 // Field:     [9] CV
1566 //
1567 // Internal. Only to be used through TI provided API.
1568 #define FLASH_FMSTAT_CV                                             0x00000200
1569 #define FLASH_FMSTAT_CV_BITN                                                 9
1570 #define FLASH_FMSTAT_CV_M                                           0x00000200
1571 #define FLASH_FMSTAT_CV_S                                                    9
1572 
1573 // Field:     [8] BUSY
1574 //
1575 // Internal. Only to be used through TI provided API.
1576 #define FLASH_FMSTAT_BUSY                                           0x00000100
1577 #define FLASH_FMSTAT_BUSY_BITN                                               8
1578 #define FLASH_FMSTAT_BUSY_M                                         0x00000100
1579 #define FLASH_FMSTAT_BUSY_S                                                  8
1580 
1581 // Field:     [7] ERS
1582 //
1583 // Internal. Only to be used through TI provided API.
1584 #define FLASH_FMSTAT_ERS                                            0x00000080
1585 #define FLASH_FMSTAT_ERS_BITN                                                7
1586 #define FLASH_FMSTAT_ERS_M                                          0x00000080
1587 #define FLASH_FMSTAT_ERS_S                                                   7
1588 
1589 // Field:     [6] PGM
1590 //
1591 // Internal. Only to be used through TI provided API.
1592 #define FLASH_FMSTAT_PGM                                            0x00000040
1593 #define FLASH_FMSTAT_PGM_BITN                                                6
1594 #define FLASH_FMSTAT_PGM_M                                          0x00000040
1595 #define FLASH_FMSTAT_PGM_S                                                   6
1596 
1597 // Field:     [5] INVDAT
1598 //
1599 // Internal. Only to be used through TI provided API.
1600 #define FLASH_FMSTAT_INVDAT                                         0x00000020
1601 #define FLASH_FMSTAT_INVDAT_BITN                                             5
1602 #define FLASH_FMSTAT_INVDAT_M                                       0x00000020
1603 #define FLASH_FMSTAT_INVDAT_S                                                5
1604 
1605 // Field:     [4] CSTAT
1606 //
1607 // Internal. Only to be used through TI provided API.
1608 #define FLASH_FMSTAT_CSTAT                                          0x00000010
1609 #define FLASH_FMSTAT_CSTAT_BITN                                              4
1610 #define FLASH_FMSTAT_CSTAT_M                                        0x00000010
1611 #define FLASH_FMSTAT_CSTAT_S                                                 4
1612 
1613 // Field:     [3] VOLSTAT
1614 //
1615 // Internal. Only to be used through TI provided API.
1616 #define FLASH_FMSTAT_VOLSTAT                                        0x00000008
1617 #define FLASH_FMSTAT_VOLSTAT_BITN                                            3
1618 #define FLASH_FMSTAT_VOLSTAT_M                                      0x00000008
1619 #define FLASH_FMSTAT_VOLSTAT_S                                               3
1620 
1621 // Field:     [2] ESUSP
1622 //
1623 // Internal. Only to be used through TI provided API.
1624 #define FLASH_FMSTAT_ESUSP                                          0x00000004
1625 #define FLASH_FMSTAT_ESUSP_BITN                                              2
1626 #define FLASH_FMSTAT_ESUSP_M                                        0x00000004
1627 #define FLASH_FMSTAT_ESUSP_S                                                 2
1628 
1629 // Field:     [1] PSUSP
1630 //
1631 // Internal. Only to be used through TI provided API.
1632 #define FLASH_FMSTAT_PSUSP                                          0x00000002
1633 #define FLASH_FMSTAT_PSUSP_BITN                                              1
1634 #define FLASH_FMSTAT_PSUSP_M                                        0x00000002
1635 #define FLASH_FMSTAT_PSUSP_S                                                 1
1636 
1637 // Field:     [0] SLOCK
1638 //
1639 // Internal. Only to be used through TI provided API.
1640 #define FLASH_FMSTAT_SLOCK                                          0x00000001
1641 #define FLASH_FMSTAT_SLOCK_BITN                                              0
1642 #define FLASH_FMSTAT_SLOCK_M                                        0x00000001
1643 #define FLASH_FMSTAT_SLOCK_S                                                 0
1644 
1645 //*****************************************************************************
1646 //
1647 // Register: FLASH_O_FLOCK
1648 //
1649 //*****************************************************************************
1650 // Field:  [15:0] ENCOM
1651 //
1652 // Internal. Only to be used through TI provided API.
1653 #define FLASH_FLOCK_ENCOM_W                                                 16
1654 #define FLASH_FLOCK_ENCOM_M                                         0x0000FFFF
1655 #define FLASH_FLOCK_ENCOM_S                                                  0
1656 
1657 //*****************************************************************************
1658 //
1659 // Register: FLASH_O_FVREADCT
1660 //
1661 //*****************************************************************************
1662 // Field:   [3:0] VREADCT
1663 //
1664 // Internal. Only to be used through TI provided API.
1665 #define FLASH_FVREADCT_VREADCT_W                                             4
1666 #define FLASH_FVREADCT_VREADCT_M                                    0x0000000F
1667 #define FLASH_FVREADCT_VREADCT_S                                             0
1668 
1669 //*****************************************************************************
1670 //
1671 // Register: FLASH_O_FVHVCT1
1672 //
1673 //*****************************************************************************
1674 // Field: [23:20] TRIM13_E
1675 //
1676 // Internal. Only to be used through TI provided API.
1677 #define FLASH_FVHVCT1_TRIM13_E_W                                             4
1678 #define FLASH_FVHVCT1_TRIM13_E_M                                    0x00F00000
1679 #define FLASH_FVHVCT1_TRIM13_E_S                                            20
1680 
1681 // Field: [19:16] VHVCT_E
1682 //
1683 // Internal. Only to be used through TI provided API.
1684 #define FLASH_FVHVCT1_VHVCT_E_W                                              4
1685 #define FLASH_FVHVCT1_VHVCT_E_M                                     0x000F0000
1686 #define FLASH_FVHVCT1_VHVCT_E_S                                             16
1687 
1688 // Field:   [7:4] TRIM13_PV
1689 //
1690 // Internal. Only to be used through TI provided API.
1691 #define FLASH_FVHVCT1_TRIM13_PV_W                                            4
1692 #define FLASH_FVHVCT1_TRIM13_PV_M                                   0x000000F0
1693 #define FLASH_FVHVCT1_TRIM13_PV_S                                            4
1694 
1695 // Field:   [3:0] VHVCT_PV
1696 //
1697 // Internal. Only to be used through TI provided API.
1698 #define FLASH_FVHVCT1_VHVCT_PV_W                                             4
1699 #define FLASH_FVHVCT1_VHVCT_PV_M                                    0x0000000F
1700 #define FLASH_FVHVCT1_VHVCT_PV_S                                             0
1701 
1702 //*****************************************************************************
1703 //
1704 // Register: FLASH_O_FVHVCT2
1705 //
1706 //*****************************************************************************
1707 // Field: [23:20] TRIM13_P
1708 //
1709 // Internal. Only to be used through TI provided API.
1710 #define FLASH_FVHVCT2_TRIM13_P_W                                             4
1711 #define FLASH_FVHVCT2_TRIM13_P_M                                    0x00F00000
1712 #define FLASH_FVHVCT2_TRIM13_P_S                                            20
1713 
1714 // Field: [19:16] VHVCT_P
1715 //
1716 // Internal. Only to be used through TI provided API.
1717 #define FLASH_FVHVCT2_VHVCT_P_W                                              4
1718 #define FLASH_FVHVCT2_VHVCT_P_M                                     0x000F0000
1719 #define FLASH_FVHVCT2_VHVCT_P_S                                             16
1720 
1721 //*****************************************************************************
1722 //
1723 // Register: FLASH_O_FVHVCT3
1724 //
1725 //*****************************************************************************
1726 // Field: [19:16] WCT
1727 //
1728 // Internal. Only to be used through TI provided API.
1729 #define FLASH_FVHVCT3_WCT_W                                                  4
1730 #define FLASH_FVHVCT3_WCT_M                                         0x000F0000
1731 #define FLASH_FVHVCT3_WCT_S                                                 16
1732 
1733 // Field:   [3:0] VHVCT_READ
1734 //
1735 // Internal. Only to be used through TI provided API.
1736 #define FLASH_FVHVCT3_VHVCT_READ_W                                           4
1737 #define FLASH_FVHVCT3_VHVCT_READ_M                                  0x0000000F
1738 #define FLASH_FVHVCT3_VHVCT_READ_S                                           0
1739 
1740 //*****************************************************************************
1741 //
1742 // Register: FLASH_O_FVNVCT
1743 //
1744 //*****************************************************************************
1745 // Field:  [12:8] VCG2P5CT
1746 //
1747 // Internal. Only to be used through TI provided API.
1748 #define FLASH_FVNVCT_VCG2P5CT_W                                              5
1749 #define FLASH_FVNVCT_VCG2P5CT_M                                     0x00001F00
1750 #define FLASH_FVNVCT_VCG2P5CT_S                                              8
1751 
1752 // Field:   [4:0] VIN_CT
1753 //
1754 // Internal. Only to be used through TI provided API.
1755 #define FLASH_FVNVCT_VIN_CT_W                                                5
1756 #define FLASH_FVNVCT_VIN_CT_M                                       0x0000001F
1757 #define FLASH_FVNVCT_VIN_CT_S                                                0
1758 
1759 //*****************************************************************************
1760 //
1761 // Register: FLASH_O_FVSLP
1762 //
1763 //*****************************************************************************
1764 // Field: [15:12] VSL_P
1765 //
1766 // Internal. Only to be used through TI provided API.
1767 #define FLASH_FVSLP_VSL_P_W                                                  4
1768 #define FLASH_FVSLP_VSL_P_M                                         0x0000F000
1769 #define FLASH_FVSLP_VSL_P_S                                                 12
1770 
1771 //*****************************************************************************
1772 //
1773 // Register: FLASH_O_FVWLCT
1774 //
1775 //*****************************************************************************
1776 // Field:   [4:0] VWLCT_P
1777 //
1778 // Internal. Only to be used through TI provided API.
1779 #define FLASH_FVWLCT_VWLCT_P_W                                               5
1780 #define FLASH_FVWLCT_VWLCT_P_M                                      0x0000001F
1781 #define FLASH_FVWLCT_VWLCT_P_S                                               0
1782 
1783 //*****************************************************************************
1784 //
1785 // Register: FLASH_O_FEFUSECTL
1786 //
1787 //*****************************************************************************
1788 // Field: [26:24] CHAIN_SEL
1789 //
1790 // Internal. Only to be used through TI provided API.
1791 #define FLASH_FEFUSECTL_CHAIN_SEL_W                                          3
1792 #define FLASH_FEFUSECTL_CHAIN_SEL_M                                 0x07000000
1793 #define FLASH_FEFUSECTL_CHAIN_SEL_S                                         24
1794 
1795 // Field:    [17] WRITE_EN
1796 //
1797 // Internal. Only to be used through TI provided API.
1798 #define FLASH_FEFUSECTL_WRITE_EN                                    0x00020000
1799 #define FLASH_FEFUSECTL_WRITE_EN_BITN                                       17
1800 #define FLASH_FEFUSECTL_WRITE_EN_M                                  0x00020000
1801 #define FLASH_FEFUSECTL_WRITE_EN_S                                          17
1802 
1803 // Field:    [16] BP_SEL
1804 //
1805 // Internal. Only to be used through TI provided API.
1806 #define FLASH_FEFUSECTL_BP_SEL                                      0x00010000
1807 #define FLASH_FEFUSECTL_BP_SEL_BITN                                         16
1808 #define FLASH_FEFUSECTL_BP_SEL_M                                    0x00010000
1809 #define FLASH_FEFUSECTL_BP_SEL_S                                            16
1810 
1811 // Field:     [8] EF_CLRZ
1812 //
1813 // Internal. Only to be used through TI provided API.
1814 #define FLASH_FEFUSECTL_EF_CLRZ                                     0x00000100
1815 #define FLASH_FEFUSECTL_EF_CLRZ_BITN                                         8
1816 #define FLASH_FEFUSECTL_EF_CLRZ_M                                   0x00000100
1817 #define FLASH_FEFUSECTL_EF_CLRZ_S                                            8
1818 
1819 // Field:     [4] EF_TEST
1820 //
1821 // Internal. Only to be used through TI provided API.
1822 #define FLASH_FEFUSECTL_EF_TEST                                     0x00000010
1823 #define FLASH_FEFUSECTL_EF_TEST_BITN                                         4
1824 #define FLASH_FEFUSECTL_EF_TEST_M                                   0x00000010
1825 #define FLASH_FEFUSECTL_EF_TEST_S                                            4
1826 
1827 // Field:   [3:0] EFUSE_EN
1828 //
1829 // Internal. Only to be used through TI provided API.
1830 #define FLASH_FEFUSECTL_EFUSE_EN_W                                           4
1831 #define FLASH_FEFUSECTL_EFUSE_EN_M                                  0x0000000F
1832 #define FLASH_FEFUSECTL_EFUSE_EN_S                                           0
1833 
1834 //*****************************************************************************
1835 //
1836 // Register: FLASH_O_FEFUSESTAT
1837 //
1838 //*****************************************************************************
1839 // Field:     [0] SHIFT_DONE
1840 //
1841 // Internal. Only to be used through TI provided API.
1842 #define FLASH_FEFUSESTAT_SHIFT_DONE                                 0x00000001
1843 #define FLASH_FEFUSESTAT_SHIFT_DONE_BITN                                     0
1844 #define FLASH_FEFUSESTAT_SHIFT_DONE_M                               0x00000001
1845 #define FLASH_FEFUSESTAT_SHIFT_DONE_S                                        0
1846 
1847 //*****************************************************************************
1848 //
1849 // Register: FLASH_O_FEFUSEDATA
1850 //
1851 //*****************************************************************************
1852 // Field:  [31:0] FEFUSEDATA
1853 //
1854 // Internal. Only to be used through TI provided API.
1855 #define FLASH_FEFUSEDATA_FEFUSEDATA_W                                       32
1856 #define FLASH_FEFUSEDATA_FEFUSEDATA_M                               0xFFFFFFFF
1857 #define FLASH_FEFUSEDATA_FEFUSEDATA_S                                        0
1858 
1859 //*****************************************************************************
1860 //
1861 // Register: FLASH_O_FSEQPMP
1862 //
1863 //*****************************************************************************
1864 // Field: [27:24] TRIM_3P4
1865 //
1866 // Internal. Only to be used through TI provided API.
1867 #define FLASH_FSEQPMP_TRIM_3P4_W                                             4
1868 #define FLASH_FSEQPMP_TRIM_3P4_M                                    0x0F000000
1869 #define FLASH_FSEQPMP_TRIM_3P4_S                                            24
1870 
1871 // Field: [21:20] TRIM_1P7
1872 //
1873 // Internal. Only to be used through TI provided API.
1874 #define FLASH_FSEQPMP_TRIM_1P7_W                                             2
1875 #define FLASH_FSEQPMP_TRIM_1P7_M                                    0x00300000
1876 #define FLASH_FSEQPMP_TRIM_1P7_S                                            20
1877 
1878 // Field: [19:16] TRIM_0P8
1879 //
1880 // Internal. Only to be used through TI provided API.
1881 #define FLASH_FSEQPMP_TRIM_0P8_W                                             4
1882 #define FLASH_FSEQPMP_TRIM_0P8_M                                    0x000F0000
1883 #define FLASH_FSEQPMP_TRIM_0P8_S                                            16
1884 
1885 // Field: [14:12] VIN_AT_X
1886 //
1887 // Internal. Only to be used through TI provided API.
1888 #define FLASH_FSEQPMP_VIN_AT_X_W                                             3
1889 #define FLASH_FSEQPMP_VIN_AT_X_M                                    0x00007000
1890 #define FLASH_FSEQPMP_VIN_AT_X_S                                            12
1891 
1892 // Field:     [8] VIN_BY_PASS
1893 //
1894 // Internal. Only to be used through TI provided API.
1895 #define FLASH_FSEQPMP_VIN_BY_PASS                                   0x00000100
1896 #define FLASH_FSEQPMP_VIN_BY_PASS_BITN                                       8
1897 #define FLASH_FSEQPMP_VIN_BY_PASS_M                                 0x00000100
1898 #define FLASH_FSEQPMP_VIN_BY_PASS_S                                          8
1899 
1900 //*****************************************************************************
1901 //
1902 // Register: FLASH_O_FBSTROBES
1903 //
1904 //*****************************************************************************
1905 // Field:    [24] ECBIT
1906 //
1907 // Internal. Only to be used through TI provided API.
1908 #define FLASH_FBSTROBES_ECBIT                                       0x01000000
1909 #define FLASH_FBSTROBES_ECBIT_BITN                                          24
1910 #define FLASH_FBSTROBES_ECBIT_M                                     0x01000000
1911 #define FLASH_FBSTROBES_ECBIT_S                                             24
1912 
1913 // Field:    [18] RWAIT2_FLCLK
1914 //
1915 // Internal. Only to be used through TI provided API.
1916 #define FLASH_FBSTROBES_RWAIT2_FLCLK                                0x00040000
1917 #define FLASH_FBSTROBES_RWAIT2_FLCLK_BITN                                   18
1918 #define FLASH_FBSTROBES_RWAIT2_FLCLK_M                              0x00040000
1919 #define FLASH_FBSTROBES_RWAIT2_FLCLK_S                                      18
1920 
1921 // Field:    [17] RWAIT_FLCLK
1922 //
1923 // Internal. Only to be used through TI provided API.
1924 #define FLASH_FBSTROBES_RWAIT_FLCLK                                 0x00020000
1925 #define FLASH_FBSTROBES_RWAIT_FLCLK_BITN                                    17
1926 #define FLASH_FBSTROBES_RWAIT_FLCLK_M                               0x00020000
1927 #define FLASH_FBSTROBES_RWAIT_FLCLK_S                                       17
1928 
1929 // Field:    [16] FLCLKEN
1930 //
1931 // Internal. Only to be used through TI provided API.
1932 #define FLASH_FBSTROBES_FLCLKEN                                     0x00010000
1933 #define FLASH_FBSTROBES_FLCLKEN_BITN                                        16
1934 #define FLASH_FBSTROBES_FLCLKEN_M                                   0x00010000
1935 #define FLASH_FBSTROBES_FLCLKEN_S                                           16
1936 
1937 // Field:     [8] CTRLENZ
1938 //
1939 // Internal. Only to be used through TI provided API.
1940 #define FLASH_FBSTROBES_CTRLENZ                                     0x00000100
1941 #define FLASH_FBSTROBES_CTRLENZ_BITN                                         8
1942 #define FLASH_FBSTROBES_CTRLENZ_M                                   0x00000100
1943 #define FLASH_FBSTROBES_CTRLENZ_S                                            8
1944 
1945 // Field:     [6] NOCOLRED
1946 //
1947 // Internal. Only to be used through TI provided API.
1948 #define FLASH_FBSTROBES_NOCOLRED                                    0x00000040
1949 #define FLASH_FBSTROBES_NOCOLRED_BITN                                        6
1950 #define FLASH_FBSTROBES_NOCOLRED_M                                  0x00000040
1951 #define FLASH_FBSTROBES_NOCOLRED_S                                           6
1952 
1953 // Field:     [5] PRECOL
1954 //
1955 // Internal. Only to be used through TI provided API.
1956 #define FLASH_FBSTROBES_PRECOL                                      0x00000020
1957 #define FLASH_FBSTROBES_PRECOL_BITN                                          5
1958 #define FLASH_FBSTROBES_PRECOL_M                                    0x00000020
1959 #define FLASH_FBSTROBES_PRECOL_S                                             5
1960 
1961 // Field:     [4] TI_OTP
1962 //
1963 // Internal. Only to be used through TI provided API.
1964 #define FLASH_FBSTROBES_TI_OTP                                      0x00000010
1965 #define FLASH_FBSTROBES_TI_OTP_BITN                                          4
1966 #define FLASH_FBSTROBES_TI_OTP_M                                    0x00000010
1967 #define FLASH_FBSTROBES_TI_OTP_S                                             4
1968 
1969 // Field:     [3] OTP
1970 //
1971 // Internal. Only to be used through TI provided API.
1972 #define FLASH_FBSTROBES_OTP                                         0x00000008
1973 #define FLASH_FBSTROBES_OTP_BITN                                             3
1974 #define FLASH_FBSTROBES_OTP_M                                       0x00000008
1975 #define FLASH_FBSTROBES_OTP_S                                                3
1976 
1977 // Field:     [2] TEZ
1978 //
1979 // Internal. Only to be used through TI provided API.
1980 #define FLASH_FBSTROBES_TEZ                                         0x00000004
1981 #define FLASH_FBSTROBES_TEZ_BITN                                             2
1982 #define FLASH_FBSTROBES_TEZ_M                                       0x00000004
1983 #define FLASH_FBSTROBES_TEZ_S                                                2
1984 
1985 //*****************************************************************************
1986 //
1987 // Register: FLASH_O_FPSTROBES
1988 //
1989 //*****************************************************************************
1990 // Field:     [8] EXECUTEZ
1991 //
1992 // Internal. Only to be used through TI provided API.
1993 #define FLASH_FPSTROBES_EXECUTEZ                                    0x00000100
1994 #define FLASH_FPSTROBES_EXECUTEZ_BITN                                        8
1995 #define FLASH_FPSTROBES_EXECUTEZ_M                                  0x00000100
1996 #define FLASH_FPSTROBES_EXECUTEZ_S                                           8
1997 
1998 // Field:     [1] V3PWRDNZ
1999 //
2000 // Internal. Only to be used through TI provided API.
2001 #define FLASH_FPSTROBES_V3PWRDNZ                                    0x00000002
2002 #define FLASH_FPSTROBES_V3PWRDNZ_BITN                                        1
2003 #define FLASH_FPSTROBES_V3PWRDNZ_M                                  0x00000002
2004 #define FLASH_FPSTROBES_V3PWRDNZ_S                                           1
2005 
2006 // Field:     [0] V5PWRDNZ
2007 //
2008 // Internal. Only to be used through TI provided API.
2009 #define FLASH_FPSTROBES_V5PWRDNZ                                    0x00000001
2010 #define FLASH_FPSTROBES_V5PWRDNZ_BITN                                        0
2011 #define FLASH_FPSTROBES_V5PWRDNZ_M                                  0x00000001
2012 #define FLASH_FPSTROBES_V5PWRDNZ_S                                           0
2013 
2014 //*****************************************************************************
2015 //
2016 // Register: FLASH_O_FBMODE
2017 //
2018 //*****************************************************************************
2019 // Field:   [2:0] MODE
2020 //
2021 // Internal. Only to be used through TI provided API.
2022 #define FLASH_FBMODE_MODE_W                                                  3
2023 #define FLASH_FBMODE_MODE_M                                         0x00000007
2024 #define FLASH_FBMODE_MODE_S                                                  0
2025 
2026 //*****************************************************************************
2027 //
2028 // Register: FLASH_O_FTCR
2029 //
2030 //*****************************************************************************
2031 // Field:   [6:0] TCR
2032 //
2033 // Internal. Only to be used through TI provided API.
2034 #define FLASH_FTCR_TCR_W                                                     7
2035 #define FLASH_FTCR_TCR_M                                            0x0000007F
2036 #define FLASH_FTCR_TCR_S                                                     0
2037 
2038 //*****************************************************************************
2039 //
2040 // Register: FLASH_O_FADDR
2041 //
2042 //*****************************************************************************
2043 // Field:  [31:0] FADDR
2044 //
2045 // Internal. Only to be used through TI provided API.
2046 #define FLASH_FADDR_FADDR_W                                                 32
2047 #define FLASH_FADDR_FADDR_M                                         0xFFFFFFFF
2048 #define FLASH_FADDR_FADDR_S                                                  0
2049 
2050 //*****************************************************************************
2051 //
2052 // Register: FLASH_O_FTCTL
2053 //
2054 //*****************************************************************************
2055 // Field:    [16] WDATA_BLK_CLR
2056 //
2057 // Internal. Only to be used through TI provided API.
2058 #define FLASH_FTCTL_WDATA_BLK_CLR                                   0x00010000
2059 #define FLASH_FTCTL_WDATA_BLK_CLR_BITN                                      16
2060 #define FLASH_FTCTL_WDATA_BLK_CLR_M                                 0x00010000
2061 #define FLASH_FTCTL_WDATA_BLK_CLR_S                                         16
2062 
2063 // Field:     [1] TEST_EN
2064 //
2065 // Internal. Only to be used through TI provided API.
2066 #define FLASH_FTCTL_TEST_EN                                         0x00000002
2067 #define FLASH_FTCTL_TEST_EN_BITN                                             1
2068 #define FLASH_FTCTL_TEST_EN_M                                       0x00000002
2069 #define FLASH_FTCTL_TEST_EN_S                                                1
2070 
2071 //*****************************************************************************
2072 //
2073 // Register: FLASH_O_FWPWRITE0
2074 //
2075 //*****************************************************************************
2076 // Field:  [31:0] FWPWRITE0
2077 //
2078 // Internal. Only to be used through TI provided API.
2079 #define FLASH_FWPWRITE0_FWPWRITE0_W                                         32
2080 #define FLASH_FWPWRITE0_FWPWRITE0_M                                 0xFFFFFFFF
2081 #define FLASH_FWPWRITE0_FWPWRITE0_S                                          0
2082 
2083 //*****************************************************************************
2084 //
2085 // Register: FLASH_O_FWPWRITE1
2086 //
2087 //*****************************************************************************
2088 // Field:  [31:0] FWPWRITE1
2089 //
2090 // Internal. Only to be used through TI provided API.
2091 #define FLASH_FWPWRITE1_FWPWRITE1_W                                         32
2092 #define FLASH_FWPWRITE1_FWPWRITE1_M                                 0xFFFFFFFF
2093 #define FLASH_FWPWRITE1_FWPWRITE1_S                                          0
2094 
2095 //*****************************************************************************
2096 //
2097 // Register: FLASH_O_FWPWRITE2
2098 //
2099 //*****************************************************************************
2100 // Field:  [31:0] FWPWRITE2
2101 //
2102 // Internal. Only to be used through TI provided API.
2103 #define FLASH_FWPWRITE2_FWPWRITE2_W                                         32
2104 #define FLASH_FWPWRITE2_FWPWRITE2_M                                 0xFFFFFFFF
2105 #define FLASH_FWPWRITE2_FWPWRITE2_S                                          0
2106 
2107 //*****************************************************************************
2108 //
2109 // Register: FLASH_O_FWPWRITE3
2110 //
2111 //*****************************************************************************
2112 // Field:  [31:0] FWPWRITE3
2113 //
2114 // Internal. Only to be used through TI provided API.
2115 #define FLASH_FWPWRITE3_FWPWRITE3_W                                         32
2116 #define FLASH_FWPWRITE3_FWPWRITE3_M                                 0xFFFFFFFF
2117 #define FLASH_FWPWRITE3_FWPWRITE3_S                                          0
2118 
2119 //*****************************************************************************
2120 //
2121 // Register: FLASH_O_FWPWRITE4
2122 //
2123 //*****************************************************************************
2124 // Field:  [31:0] FWPWRITE4
2125 //
2126 // Internal. Only to be used through TI provided API.
2127 #define FLASH_FWPWRITE4_FWPWRITE4_W                                         32
2128 #define FLASH_FWPWRITE4_FWPWRITE4_M                                 0xFFFFFFFF
2129 #define FLASH_FWPWRITE4_FWPWRITE4_S                                          0
2130 
2131 //*****************************************************************************
2132 //
2133 // Register: FLASH_O_FWPWRITE5
2134 //
2135 //*****************************************************************************
2136 // Field:  [31:0] FWPWRITE5
2137 //
2138 // Internal. Only to be used through TI provided API.
2139 #define FLASH_FWPWRITE5_FWPWRITE5_W                                         32
2140 #define FLASH_FWPWRITE5_FWPWRITE5_M                                 0xFFFFFFFF
2141 #define FLASH_FWPWRITE5_FWPWRITE5_S                                          0
2142 
2143 //*****************************************************************************
2144 //
2145 // Register: FLASH_O_FWPWRITE6
2146 //
2147 //*****************************************************************************
2148 // Field:  [31:0] FWPWRITE6
2149 //
2150 // Internal. Only to be used through TI provided API.
2151 #define FLASH_FWPWRITE6_FWPWRITE6_W                                         32
2152 #define FLASH_FWPWRITE6_FWPWRITE6_M                                 0xFFFFFFFF
2153 #define FLASH_FWPWRITE6_FWPWRITE6_S                                          0
2154 
2155 //*****************************************************************************
2156 //
2157 // Register: FLASH_O_FWPWRITE7
2158 //
2159 //*****************************************************************************
2160 // Field:  [31:0] FWPWRITE7
2161 //
2162 // Internal. Only to be used through TI provided API.
2163 #define FLASH_FWPWRITE7_FWPWRITE7_W                                         32
2164 #define FLASH_FWPWRITE7_FWPWRITE7_M                                 0xFFFFFFFF
2165 #define FLASH_FWPWRITE7_FWPWRITE7_S                                          0
2166 
2167 //*****************************************************************************
2168 //
2169 // Register: FLASH_O_FWPWRITE_ECC
2170 //
2171 //*****************************************************************************
2172 // Field: [31:24] ECCBYTES07_00
2173 //
2174 // Internal. Only to be used through TI provided API.
2175 #define FLASH_FWPWRITE_ECC_ECCBYTES07_00_W                                   8
2176 #define FLASH_FWPWRITE_ECC_ECCBYTES07_00_M                          0xFF000000
2177 #define FLASH_FWPWRITE_ECC_ECCBYTES07_00_S                                  24
2178 
2179 // Field: [23:16] ECCBYTES15_08
2180 //
2181 // Internal. Only to be used through TI provided API.
2182 #define FLASH_FWPWRITE_ECC_ECCBYTES15_08_W                                   8
2183 #define FLASH_FWPWRITE_ECC_ECCBYTES15_08_M                          0x00FF0000
2184 #define FLASH_FWPWRITE_ECC_ECCBYTES15_08_S                                  16
2185 
2186 // Field:  [15:8] ECCBYTES23_16
2187 //
2188 // Internal. Only to be used through TI provided API.
2189 #define FLASH_FWPWRITE_ECC_ECCBYTES23_16_W                                   8
2190 #define FLASH_FWPWRITE_ECC_ECCBYTES23_16_M                          0x0000FF00
2191 #define FLASH_FWPWRITE_ECC_ECCBYTES23_16_S                                   8
2192 
2193 // Field:   [7:0] ECCBYTES31_24
2194 //
2195 // Internal. Only to be used through TI provided API.
2196 #define FLASH_FWPWRITE_ECC_ECCBYTES31_24_W                                   8
2197 #define FLASH_FWPWRITE_ECC_ECCBYTES31_24_M                          0x000000FF
2198 #define FLASH_FWPWRITE_ECC_ECCBYTES31_24_S                                   0
2199 
2200 //*****************************************************************************
2201 //
2202 // Register: FLASH_O_FSWSTAT
2203 //
2204 //*****************************************************************************
2205 // Field:     [0] SAFELV
2206 //
2207 // Internal. Only to be used through TI provided API.
2208 #define FLASH_FSWSTAT_SAFELV                                        0x00000001
2209 #define FLASH_FSWSTAT_SAFELV_BITN                                            0
2210 #define FLASH_FSWSTAT_SAFELV_M                                      0x00000001
2211 #define FLASH_FSWSTAT_SAFELV_S                                               0
2212 
2213 //*****************************************************************************
2214 //
2215 // Register: FLASH_O_FSM_GLBCTL
2216 //
2217 //*****************************************************************************
2218 // Field:     [0] CLKSEL
2219 //
2220 // Internal. Only to be used through TI provided API.
2221 #define FLASH_FSM_GLBCTL_CLKSEL                                     0x00000001
2222 #define FLASH_FSM_GLBCTL_CLKSEL_BITN                                         0
2223 #define FLASH_FSM_GLBCTL_CLKSEL_M                                   0x00000001
2224 #define FLASH_FSM_GLBCTL_CLKSEL_S                                            0
2225 
2226 //*****************************************************************************
2227 //
2228 // Register: FLASH_O_FSM_STATE
2229 //
2230 //*****************************************************************************
2231 // Field:    [11] CTRLENZ
2232 //
2233 // Internal. Only to be used through TI provided API.
2234 #define FLASH_FSM_STATE_CTRLENZ                                     0x00000800
2235 #define FLASH_FSM_STATE_CTRLENZ_BITN                                        11
2236 #define FLASH_FSM_STATE_CTRLENZ_M                                   0x00000800
2237 #define FLASH_FSM_STATE_CTRLENZ_S                                           11
2238 
2239 // Field:    [10] EXECUTEZ
2240 //
2241 // Internal. Only to be used through TI provided API.
2242 #define FLASH_FSM_STATE_EXECUTEZ                                    0x00000400
2243 #define FLASH_FSM_STATE_EXECUTEZ_BITN                                       10
2244 #define FLASH_FSM_STATE_EXECUTEZ_M                                  0x00000400
2245 #define FLASH_FSM_STATE_EXECUTEZ_S                                          10
2246 
2247 // Field:     [8] FSM_ACT
2248 //
2249 // Internal. Only to be used through TI provided API.
2250 #define FLASH_FSM_STATE_FSM_ACT                                     0x00000100
2251 #define FLASH_FSM_STATE_FSM_ACT_BITN                                         8
2252 #define FLASH_FSM_STATE_FSM_ACT_M                                   0x00000100
2253 #define FLASH_FSM_STATE_FSM_ACT_S                                            8
2254 
2255 // Field:     [7] TIOTP_ACT
2256 //
2257 // Internal. Only to be used through TI provided API.
2258 #define FLASH_FSM_STATE_TIOTP_ACT                                   0x00000080
2259 #define FLASH_FSM_STATE_TIOTP_ACT_BITN                                       7
2260 #define FLASH_FSM_STATE_TIOTP_ACT_M                                 0x00000080
2261 #define FLASH_FSM_STATE_TIOTP_ACT_S                                          7
2262 
2263 // Field:     [6] OTP_ACT
2264 //
2265 // Internal. Only to be used through TI provided API.
2266 #define FLASH_FSM_STATE_OTP_ACT                                     0x00000040
2267 #define FLASH_FSM_STATE_OTP_ACT_BITN                                         6
2268 #define FLASH_FSM_STATE_OTP_ACT_M                                   0x00000040
2269 #define FLASH_FSM_STATE_OTP_ACT_S                                            6
2270 
2271 //*****************************************************************************
2272 //
2273 // Register: FLASH_O_FSM_STAT
2274 //
2275 //*****************************************************************************
2276 // Field:     [2] NON_OP
2277 //
2278 // Internal. Only to be used through TI provided API.
2279 #define FLASH_FSM_STAT_NON_OP                                       0x00000004
2280 #define FLASH_FSM_STAT_NON_OP_BITN                                           2
2281 #define FLASH_FSM_STAT_NON_OP_M                                     0x00000004
2282 #define FLASH_FSM_STAT_NON_OP_S                                              2
2283 
2284 // Field:     [1] OVR_PUL_CNT
2285 //
2286 // Internal. Only to be used through TI provided API.
2287 #define FLASH_FSM_STAT_OVR_PUL_CNT                                  0x00000002
2288 #define FLASH_FSM_STAT_OVR_PUL_CNT_BITN                                      1
2289 #define FLASH_FSM_STAT_OVR_PUL_CNT_M                                0x00000002
2290 #define FLASH_FSM_STAT_OVR_PUL_CNT_S                                         1
2291 
2292 // Field:     [0] INV_DAT
2293 //
2294 // Internal. Only to be used through TI provided API.
2295 #define FLASH_FSM_STAT_INV_DAT                                      0x00000001
2296 #define FLASH_FSM_STAT_INV_DAT_BITN                                          0
2297 #define FLASH_FSM_STAT_INV_DAT_M                                    0x00000001
2298 #define FLASH_FSM_STAT_INV_DAT_S                                             0
2299 
2300 //*****************************************************************************
2301 //
2302 // Register: FLASH_O_FSM_CMD
2303 //
2304 //*****************************************************************************
2305 // Field:   [5:0] FSMCMD
2306 //
2307 // Internal. Only to be used through TI provided API.
2308 #define FLASH_FSM_CMD_FSMCMD_W                                               6
2309 #define FLASH_FSM_CMD_FSMCMD_M                                      0x0000003F
2310 #define FLASH_FSM_CMD_FSMCMD_S                                               0
2311 
2312 //*****************************************************************************
2313 //
2314 // Register: FLASH_O_FSM_PE_OSU
2315 //
2316 //*****************************************************************************
2317 // Field:  [15:8] PGM_OSU
2318 //
2319 // Internal. Only to be used through TI provided API.
2320 #define FLASH_FSM_PE_OSU_PGM_OSU_W                                           8
2321 #define FLASH_FSM_PE_OSU_PGM_OSU_M                                  0x0000FF00
2322 #define FLASH_FSM_PE_OSU_PGM_OSU_S                                           8
2323 
2324 // Field:   [7:0] ERA_OSU
2325 //
2326 // Internal. Only to be used through TI provided API.
2327 #define FLASH_FSM_PE_OSU_ERA_OSU_W                                           8
2328 #define FLASH_FSM_PE_OSU_ERA_OSU_M                                  0x000000FF
2329 #define FLASH_FSM_PE_OSU_ERA_OSU_S                                           0
2330 
2331 //*****************************************************************************
2332 //
2333 // Register: FLASH_O_FSM_VSTAT
2334 //
2335 //*****************************************************************************
2336 // Field: [15:12] VSTAT_CNT
2337 //
2338 // Internal. Only to be used through TI provided API.
2339 #define FLASH_FSM_VSTAT_VSTAT_CNT_W                                          4
2340 #define FLASH_FSM_VSTAT_VSTAT_CNT_M                                 0x0000F000
2341 #define FLASH_FSM_VSTAT_VSTAT_CNT_S                                         12
2342 
2343 //*****************************************************************************
2344 //
2345 // Register: FLASH_O_FSM_PE_VSU
2346 //
2347 //*****************************************************************************
2348 // Field:  [15:8] PGM_VSU
2349 //
2350 // Internal. Only to be used through TI provided API.
2351 #define FLASH_FSM_PE_VSU_PGM_VSU_W                                           8
2352 #define FLASH_FSM_PE_VSU_PGM_VSU_M                                  0x0000FF00
2353 #define FLASH_FSM_PE_VSU_PGM_VSU_S                                           8
2354 
2355 // Field:   [7:0] ERA_VSU
2356 //
2357 // Internal. Only to be used through TI provided API.
2358 #define FLASH_FSM_PE_VSU_ERA_VSU_W                                           8
2359 #define FLASH_FSM_PE_VSU_ERA_VSU_M                                  0x000000FF
2360 #define FLASH_FSM_PE_VSU_ERA_VSU_S                                           0
2361 
2362 //*****************************************************************************
2363 //
2364 // Register: FLASH_O_FSM_CMP_VSU
2365 //
2366 //*****************************************************************************
2367 // Field: [15:12] ADD_EXZ
2368 //
2369 // Internal. Only to be used through TI provided API.
2370 #define FLASH_FSM_CMP_VSU_ADD_EXZ_W                                          4
2371 #define FLASH_FSM_CMP_VSU_ADD_EXZ_M                                 0x0000F000
2372 #define FLASH_FSM_CMP_VSU_ADD_EXZ_S                                         12
2373 
2374 //*****************************************************************************
2375 //
2376 // Register: FLASH_O_FSM_EX_VAL
2377 //
2378 //*****************************************************************************
2379 // Field:  [15:8] REP_VSU
2380 //
2381 // Internal. Only to be used through TI provided API.
2382 #define FLASH_FSM_EX_VAL_REP_VSU_W                                           8
2383 #define FLASH_FSM_EX_VAL_REP_VSU_M                                  0x0000FF00
2384 #define FLASH_FSM_EX_VAL_REP_VSU_S                                           8
2385 
2386 // Field:   [7:0] EXE_VALD
2387 //
2388 // Internal. Only to be used through TI provided API.
2389 #define FLASH_FSM_EX_VAL_EXE_VALD_W                                          8
2390 #define FLASH_FSM_EX_VAL_EXE_VALD_M                                 0x000000FF
2391 #define FLASH_FSM_EX_VAL_EXE_VALD_S                                          0
2392 
2393 //*****************************************************************************
2394 //
2395 // Register: FLASH_O_FSM_RD_H
2396 //
2397 //*****************************************************************************
2398 // Field:   [7:0] RD_H
2399 //
2400 // Internal. Only to be used through TI provided API.
2401 #define FLASH_FSM_RD_H_RD_H_W                                                8
2402 #define FLASH_FSM_RD_H_RD_H_M                                       0x000000FF
2403 #define FLASH_FSM_RD_H_RD_H_S                                                0
2404 
2405 //*****************************************************************************
2406 //
2407 // Register: FLASH_O_FSM_P_OH
2408 //
2409 //*****************************************************************************
2410 // Field:  [15:8] PGM_OH
2411 //
2412 // Internal. Only to be used through TI provided API.
2413 #define FLASH_FSM_P_OH_PGM_OH_W                                              8
2414 #define FLASH_FSM_P_OH_PGM_OH_M                                     0x0000FF00
2415 #define FLASH_FSM_P_OH_PGM_OH_S                                              8
2416 
2417 //*****************************************************************************
2418 //
2419 // Register: FLASH_O_FSM_ERA_OH
2420 //
2421 //*****************************************************************************
2422 // Field:  [15:0] ERA_OH
2423 //
2424 // Internal. Only to be used through TI provided API.
2425 #define FLASH_FSM_ERA_OH_ERA_OH_W                                           16
2426 #define FLASH_FSM_ERA_OH_ERA_OH_M                                   0x0000FFFF
2427 #define FLASH_FSM_ERA_OH_ERA_OH_S                                            0
2428 
2429 //*****************************************************************************
2430 //
2431 // Register: FLASH_O_FSM_SAV_PPUL
2432 //
2433 //*****************************************************************************
2434 // Field:  [11:0] SAV_P_PUL
2435 //
2436 // Internal. Only to be used through TI provided API.
2437 #define FLASH_FSM_SAV_PPUL_SAV_P_PUL_W                                      12
2438 #define FLASH_FSM_SAV_PPUL_SAV_P_PUL_M                              0x00000FFF
2439 #define FLASH_FSM_SAV_PPUL_SAV_P_PUL_S                                       0
2440 
2441 //*****************************************************************************
2442 //
2443 // Register: FLASH_O_FSM_PE_VH
2444 //
2445 //*****************************************************************************
2446 // Field:  [15:8] PGM_VH
2447 //
2448 // Internal. Only to be used through TI provided API.
2449 #define FLASH_FSM_PE_VH_PGM_VH_W                                             8
2450 #define FLASH_FSM_PE_VH_PGM_VH_M                                    0x0000FF00
2451 #define FLASH_FSM_PE_VH_PGM_VH_S                                             8
2452 
2453 //*****************************************************************************
2454 //
2455 // Register: FLASH_O_FSM_PRG_PW
2456 //
2457 //*****************************************************************************
2458 // Field:  [15:0] PROG_PUL_WIDTH
2459 //
2460 // Internal. Only to be used through TI provided API.
2461 #define FLASH_FSM_PRG_PW_PROG_PUL_WIDTH_W                                   16
2462 #define FLASH_FSM_PRG_PW_PROG_PUL_WIDTH_M                           0x0000FFFF
2463 #define FLASH_FSM_PRG_PW_PROG_PUL_WIDTH_S                                    0
2464 
2465 //*****************************************************************************
2466 //
2467 // Register: FLASH_O_FSM_ERA_PW
2468 //
2469 //*****************************************************************************
2470 // Field:  [31:0] FSM_ERA_PW
2471 //
2472 // Internal. Only to be used through TI provided API.
2473 #define FLASH_FSM_ERA_PW_FSM_ERA_PW_W                                       32
2474 #define FLASH_FSM_ERA_PW_FSM_ERA_PW_M                               0xFFFFFFFF
2475 #define FLASH_FSM_ERA_PW_FSM_ERA_PW_S                                        0
2476 
2477 //*****************************************************************************
2478 //
2479 // Register: FLASH_O_FSM_SAV_ERA_PUL
2480 //
2481 //*****************************************************************************
2482 // Field:  [11:0] SAV_ERA_PUL
2483 //
2484 // Internal. Only to be used through TI provided API.
2485 #define FLASH_FSM_SAV_ERA_PUL_SAV_ERA_PUL_W                                 12
2486 #define FLASH_FSM_SAV_ERA_PUL_SAV_ERA_PUL_M                         0x00000FFF
2487 #define FLASH_FSM_SAV_ERA_PUL_SAV_ERA_PUL_S                                  0
2488 
2489 //*****************************************************************************
2490 //
2491 // Register: FLASH_O_FSM_TIMER
2492 //
2493 //*****************************************************************************
2494 // Field:  [31:0] FSM_TIMER
2495 //
2496 // Internal. Only to be used through TI provided API.
2497 #define FLASH_FSM_TIMER_FSM_TIMER_W                                         32
2498 #define FLASH_FSM_TIMER_FSM_TIMER_M                                 0xFFFFFFFF
2499 #define FLASH_FSM_TIMER_FSM_TIMER_S                                          0
2500 
2501 //*****************************************************************************
2502 //
2503 // Register: FLASH_O_FSM_MODE
2504 //
2505 //*****************************************************************************
2506 // Field: [19:18] RDV_SUBMODE
2507 //
2508 // Internal. Only to be used through TI provided API.
2509 #define FLASH_FSM_MODE_RDV_SUBMODE_W                                         2
2510 #define FLASH_FSM_MODE_RDV_SUBMODE_M                                0x000C0000
2511 #define FLASH_FSM_MODE_RDV_SUBMODE_S                                        18
2512 
2513 // Field: [17:16] PGM_SUBMODE
2514 //
2515 // Internal. Only to be used through TI provided API.
2516 #define FLASH_FSM_MODE_PGM_SUBMODE_W                                         2
2517 #define FLASH_FSM_MODE_PGM_SUBMODE_M                                0x00030000
2518 #define FLASH_FSM_MODE_PGM_SUBMODE_S                                        16
2519 
2520 // Field: [15:14] ERA_SUBMODE
2521 //
2522 // Internal. Only to be used through TI provided API.
2523 #define FLASH_FSM_MODE_ERA_SUBMODE_W                                         2
2524 #define FLASH_FSM_MODE_ERA_SUBMODE_M                                0x0000C000
2525 #define FLASH_FSM_MODE_ERA_SUBMODE_S                                        14
2526 
2527 // Field: [13:12] SUBMODE
2528 //
2529 // Internal. Only to be used through TI provided API.
2530 #define FLASH_FSM_MODE_SUBMODE_W                                             2
2531 #define FLASH_FSM_MODE_SUBMODE_M                                    0x00003000
2532 #define FLASH_FSM_MODE_SUBMODE_S                                            12
2533 
2534 // Field:  [11:9] SAV_PGM_CMD
2535 //
2536 // Internal. Only to be used through TI provided API.
2537 #define FLASH_FSM_MODE_SAV_PGM_CMD_W                                         3
2538 #define FLASH_FSM_MODE_SAV_PGM_CMD_M                                0x00000E00
2539 #define FLASH_FSM_MODE_SAV_PGM_CMD_S                                         9
2540 
2541 // Field:   [8:6] SAV_ERA_MODE
2542 //
2543 // Internal. Only to be used through TI provided API.
2544 #define FLASH_FSM_MODE_SAV_ERA_MODE_W                                        3
2545 #define FLASH_FSM_MODE_SAV_ERA_MODE_M                               0x000001C0
2546 #define FLASH_FSM_MODE_SAV_ERA_MODE_S                                        6
2547 
2548 // Field:   [5:3] MODE
2549 //
2550 // Internal. Only to be used through TI provided API.
2551 #define FLASH_FSM_MODE_MODE_W                                                3
2552 #define FLASH_FSM_MODE_MODE_M                                       0x00000038
2553 #define FLASH_FSM_MODE_MODE_S                                                3
2554 
2555 // Field:   [2:0] CMD
2556 //
2557 // Internal. Only to be used through TI provided API.
2558 #define FLASH_FSM_MODE_CMD_W                                                 3
2559 #define FLASH_FSM_MODE_CMD_M                                        0x00000007
2560 #define FLASH_FSM_MODE_CMD_S                                                 0
2561 
2562 //*****************************************************************************
2563 //
2564 // Register: FLASH_O_FSM_PGM
2565 //
2566 //*****************************************************************************
2567 // Field: [25:23] PGM_BANK
2568 //
2569 // Internal. Only to be used through TI provided API.
2570 #define FLASH_FSM_PGM_PGM_BANK_W                                             3
2571 #define FLASH_FSM_PGM_PGM_BANK_M                                    0x03800000
2572 #define FLASH_FSM_PGM_PGM_BANK_S                                            23
2573 
2574 // Field:  [22:0] PGM_ADDR
2575 //
2576 // Internal. Only to be used through TI provided API.
2577 #define FLASH_FSM_PGM_PGM_ADDR_W                                            23
2578 #define FLASH_FSM_PGM_PGM_ADDR_M                                    0x007FFFFF
2579 #define FLASH_FSM_PGM_PGM_ADDR_S                                             0
2580 
2581 //*****************************************************************************
2582 //
2583 // Register: FLASH_O_FSM_ERA
2584 //
2585 //*****************************************************************************
2586 // Field: [25:23] ERA_BANK
2587 //
2588 // Internal. Only to be used through TI provided API.
2589 #define FLASH_FSM_ERA_ERA_BANK_W                                             3
2590 #define FLASH_FSM_ERA_ERA_BANK_M                                    0x03800000
2591 #define FLASH_FSM_ERA_ERA_BANK_S                                            23
2592 
2593 // Field:  [22:0] ERA_ADDR
2594 //
2595 // Internal. Only to be used through TI provided API.
2596 #define FLASH_FSM_ERA_ERA_ADDR_W                                            23
2597 #define FLASH_FSM_ERA_ERA_ADDR_M                                    0x007FFFFF
2598 #define FLASH_FSM_ERA_ERA_ADDR_S                                             0
2599 
2600 //*****************************************************************************
2601 //
2602 // Register: FLASH_O_FSM_PRG_PUL
2603 //
2604 //*****************************************************************************
2605 // Field: [19:16] BEG_EC_LEVEL
2606 //
2607 // Internal. Only to be used through TI provided API.
2608 #define FLASH_FSM_PRG_PUL_BEG_EC_LEVEL_W                                     4
2609 #define FLASH_FSM_PRG_PUL_BEG_EC_LEVEL_M                            0x000F0000
2610 #define FLASH_FSM_PRG_PUL_BEG_EC_LEVEL_S                                    16
2611 
2612 // Field:  [11:0] MAX_PRG_PUL
2613 //
2614 // Internal. Only to be used through TI provided API.
2615 #define FLASH_FSM_PRG_PUL_MAX_PRG_PUL_W                                     12
2616 #define FLASH_FSM_PRG_PUL_MAX_PRG_PUL_M                             0x00000FFF
2617 #define FLASH_FSM_PRG_PUL_MAX_PRG_PUL_S                                      0
2618 
2619 //*****************************************************************************
2620 //
2621 // Register: FLASH_O_FSM_ERA_PUL
2622 //
2623 //*****************************************************************************
2624 // Field: [19:16] MAX_EC_LEVEL
2625 //
2626 // Internal. Only to be used through TI provided API.
2627 #define FLASH_FSM_ERA_PUL_MAX_EC_LEVEL_W                                     4
2628 #define FLASH_FSM_ERA_PUL_MAX_EC_LEVEL_M                            0x000F0000
2629 #define FLASH_FSM_ERA_PUL_MAX_EC_LEVEL_S                                    16
2630 
2631 // Field:  [11:0] MAX_ERA_PUL
2632 //
2633 // Internal. Only to be used through TI provided API.
2634 #define FLASH_FSM_ERA_PUL_MAX_ERA_PUL_W                                     12
2635 #define FLASH_FSM_ERA_PUL_MAX_ERA_PUL_M                             0x00000FFF
2636 #define FLASH_FSM_ERA_PUL_MAX_ERA_PUL_S                                      0
2637 
2638 //*****************************************************************************
2639 //
2640 // Register: FLASH_O_FSM_STEP_SIZE
2641 //
2642 //*****************************************************************************
2643 // Field: [24:16] EC_STEP_SIZE
2644 //
2645 // Internal. Only to be used through TI provided API.
2646 #define FLASH_FSM_STEP_SIZE_EC_STEP_SIZE_W                                   9
2647 #define FLASH_FSM_STEP_SIZE_EC_STEP_SIZE_M                          0x01FF0000
2648 #define FLASH_FSM_STEP_SIZE_EC_STEP_SIZE_S                                  16
2649 
2650 //*****************************************************************************
2651 //
2652 // Register: FLASH_O_FSM_PUL_CNTR
2653 //
2654 //*****************************************************************************
2655 // Field: [24:16] CUR_EC_LEVEL
2656 //
2657 // Internal. Only to be used through TI provided API.
2658 #define FLASH_FSM_PUL_CNTR_CUR_EC_LEVEL_W                                    9
2659 #define FLASH_FSM_PUL_CNTR_CUR_EC_LEVEL_M                           0x01FF0000
2660 #define FLASH_FSM_PUL_CNTR_CUR_EC_LEVEL_S                                   16
2661 
2662 // Field:  [11:0] PUL_CNTR
2663 //
2664 // Internal. Only to be used through TI provided API.
2665 #define FLASH_FSM_PUL_CNTR_PUL_CNTR_W                                       12
2666 #define FLASH_FSM_PUL_CNTR_PUL_CNTR_M                               0x00000FFF
2667 #define FLASH_FSM_PUL_CNTR_PUL_CNTR_S                                        0
2668 
2669 //*****************************************************************************
2670 //
2671 // Register: FLASH_O_FSM_EC_STEP_HEIGHT
2672 //
2673 //*****************************************************************************
2674 // Field:   [3:0] EC_STEP_HEIGHT
2675 //
2676 // Internal. Only to be used through TI provided API.
2677 #define FLASH_FSM_EC_STEP_HEIGHT_EC_STEP_HEIGHT_W                            4
2678 #define FLASH_FSM_EC_STEP_HEIGHT_EC_STEP_HEIGHT_M                   0x0000000F
2679 #define FLASH_FSM_EC_STEP_HEIGHT_EC_STEP_HEIGHT_S                            0
2680 
2681 //*****************************************************************************
2682 //
2683 // Register: FLASH_O_FSM_ST_MACHINE
2684 //
2685 //*****************************************************************************
2686 // Field:    [23] DO_PRECOND
2687 //
2688 // Internal. Only to be used through TI provided API.
2689 #define FLASH_FSM_ST_MACHINE_DO_PRECOND                             0x00800000
2690 #define FLASH_FSM_ST_MACHINE_DO_PRECOND_BITN                                23
2691 #define FLASH_FSM_ST_MACHINE_DO_PRECOND_M                           0x00800000
2692 #define FLASH_FSM_ST_MACHINE_DO_PRECOND_S                                   23
2693 
2694 // Field:    [22] FSM_INT_EN
2695 //
2696 // Internal. Only to be used through TI provided API.
2697 #define FLASH_FSM_ST_MACHINE_FSM_INT_EN                             0x00400000
2698 #define FLASH_FSM_ST_MACHINE_FSM_INT_EN_BITN                                22
2699 #define FLASH_FSM_ST_MACHINE_FSM_INT_EN_M                           0x00400000
2700 #define FLASH_FSM_ST_MACHINE_FSM_INT_EN_S                                   22
2701 
2702 // Field:    [21] ALL_BANKS
2703 //
2704 // Internal. Only to be used through TI provided API.
2705 #define FLASH_FSM_ST_MACHINE_ALL_BANKS                              0x00200000
2706 #define FLASH_FSM_ST_MACHINE_ALL_BANKS_BITN                                 21
2707 #define FLASH_FSM_ST_MACHINE_ALL_BANKS_M                            0x00200000
2708 #define FLASH_FSM_ST_MACHINE_ALL_BANKS_S                                    21
2709 
2710 // Field:    [20] CMPV_ALLOWED
2711 //
2712 // Internal. Only to be used through TI provided API.
2713 #define FLASH_FSM_ST_MACHINE_CMPV_ALLOWED                           0x00100000
2714 #define FLASH_FSM_ST_MACHINE_CMPV_ALLOWED_BITN                              20
2715 #define FLASH_FSM_ST_MACHINE_CMPV_ALLOWED_M                         0x00100000
2716 #define FLASH_FSM_ST_MACHINE_CMPV_ALLOWED_S                                 20
2717 
2718 // Field:    [19] RANDOM
2719 //
2720 // Internal. Only to be used through TI provided API.
2721 #define FLASH_FSM_ST_MACHINE_RANDOM                                 0x00080000
2722 #define FLASH_FSM_ST_MACHINE_RANDOM_BITN                                    19
2723 #define FLASH_FSM_ST_MACHINE_RANDOM_M                               0x00080000
2724 #define FLASH_FSM_ST_MACHINE_RANDOM_S                                       19
2725 
2726 // Field:    [18] RV_SEC_EN
2727 //
2728 // Internal. Only to be used through TI provided API.
2729 #define FLASH_FSM_ST_MACHINE_RV_SEC_EN                              0x00040000
2730 #define FLASH_FSM_ST_MACHINE_RV_SEC_EN_BITN                                 18
2731 #define FLASH_FSM_ST_MACHINE_RV_SEC_EN_M                            0x00040000
2732 #define FLASH_FSM_ST_MACHINE_RV_SEC_EN_S                                    18
2733 
2734 // Field:    [17] RV_RES
2735 //
2736 // Internal. Only to be used through TI provided API.
2737 #define FLASH_FSM_ST_MACHINE_RV_RES                                 0x00020000
2738 #define FLASH_FSM_ST_MACHINE_RV_RES_BITN                                    17
2739 #define FLASH_FSM_ST_MACHINE_RV_RES_M                               0x00020000
2740 #define FLASH_FSM_ST_MACHINE_RV_RES_S                                       17
2741 
2742 // Field:    [16] RV_INT_EN
2743 //
2744 // Internal. Only to be used through TI provided API.
2745 #define FLASH_FSM_ST_MACHINE_RV_INT_EN                              0x00010000
2746 #define FLASH_FSM_ST_MACHINE_RV_INT_EN_BITN                                 16
2747 #define FLASH_FSM_ST_MACHINE_RV_INT_EN_M                            0x00010000
2748 #define FLASH_FSM_ST_MACHINE_RV_INT_EN_S                                    16
2749 
2750 // Field:    [14] ONE_TIME_GOOD
2751 //
2752 // Internal. Only to be used through TI provided API.
2753 #define FLASH_FSM_ST_MACHINE_ONE_TIME_GOOD                          0x00004000
2754 #define FLASH_FSM_ST_MACHINE_ONE_TIME_GOOD_BITN                             14
2755 #define FLASH_FSM_ST_MACHINE_ONE_TIME_GOOD_M                        0x00004000
2756 #define FLASH_FSM_ST_MACHINE_ONE_TIME_GOOD_S                                14
2757 
2758 // Field:    [11] DO_REDU_COL
2759 //
2760 // Internal. Only to be used through TI provided API.
2761 #define FLASH_FSM_ST_MACHINE_DO_REDU_COL                            0x00000800
2762 #define FLASH_FSM_ST_MACHINE_DO_REDU_COL_BITN                               11
2763 #define FLASH_FSM_ST_MACHINE_DO_REDU_COL_M                          0x00000800
2764 #define FLASH_FSM_ST_MACHINE_DO_REDU_COL_S                                  11
2765 
2766 // Field:  [10:7] DBG_SHORT_ROW
2767 //
2768 // Internal. Only to be used through TI provided API.
2769 #define FLASH_FSM_ST_MACHINE_DBG_SHORT_ROW_W                                 4
2770 #define FLASH_FSM_ST_MACHINE_DBG_SHORT_ROW_M                        0x00000780
2771 #define FLASH_FSM_ST_MACHINE_DBG_SHORT_ROW_S                                 7
2772 
2773 // Field:     [5] PGM_SEC_COF_EN
2774 //
2775 // Internal. Only to be used through TI provided API.
2776 #define FLASH_FSM_ST_MACHINE_PGM_SEC_COF_EN                         0x00000020
2777 #define FLASH_FSM_ST_MACHINE_PGM_SEC_COF_EN_BITN                             5
2778 #define FLASH_FSM_ST_MACHINE_PGM_SEC_COF_EN_M                       0x00000020
2779 #define FLASH_FSM_ST_MACHINE_PGM_SEC_COF_EN_S                                5
2780 
2781 // Field:     [4] PREC_STOP_EN
2782 //
2783 // Internal. Only to be used through TI provided API.
2784 #define FLASH_FSM_ST_MACHINE_PREC_STOP_EN                           0x00000010
2785 #define FLASH_FSM_ST_MACHINE_PREC_STOP_EN_BITN                               4
2786 #define FLASH_FSM_ST_MACHINE_PREC_STOP_EN_M                         0x00000010
2787 #define FLASH_FSM_ST_MACHINE_PREC_STOP_EN_S                                  4
2788 
2789 // Field:     [3] DIS_TST_EN
2790 //
2791 // Internal. Only to be used through TI provided API.
2792 #define FLASH_FSM_ST_MACHINE_DIS_TST_EN                             0x00000008
2793 #define FLASH_FSM_ST_MACHINE_DIS_TST_EN_BITN                                 3
2794 #define FLASH_FSM_ST_MACHINE_DIS_TST_EN_M                           0x00000008
2795 #define FLASH_FSM_ST_MACHINE_DIS_TST_EN_S                                    3
2796 
2797 // Field:     [2] CMD_EN
2798 //
2799 // Internal. Only to be used through TI provided API.
2800 #define FLASH_FSM_ST_MACHINE_CMD_EN                                 0x00000004
2801 #define FLASH_FSM_ST_MACHINE_CMD_EN_BITN                                     2
2802 #define FLASH_FSM_ST_MACHINE_CMD_EN_M                               0x00000004
2803 #define FLASH_FSM_ST_MACHINE_CMD_EN_S                                        2
2804 
2805 // Field:     [1] INV_DATA
2806 //
2807 // Internal. Only to be used through TI provided API.
2808 #define FLASH_FSM_ST_MACHINE_INV_DATA                               0x00000002
2809 #define FLASH_FSM_ST_MACHINE_INV_DATA_BITN                                   1
2810 #define FLASH_FSM_ST_MACHINE_INV_DATA_M                             0x00000002
2811 #define FLASH_FSM_ST_MACHINE_INV_DATA_S                                      1
2812 
2813 // Field:     [0] OVERRIDE
2814 //
2815 // Internal. Only to be used through TI provided API.
2816 #define FLASH_FSM_ST_MACHINE_OVERRIDE                               0x00000001
2817 #define FLASH_FSM_ST_MACHINE_OVERRIDE_BITN                                   0
2818 #define FLASH_FSM_ST_MACHINE_OVERRIDE_M                             0x00000001
2819 #define FLASH_FSM_ST_MACHINE_OVERRIDE_S                                      0
2820 
2821 //*****************************************************************************
2822 //
2823 // Register: FLASH_O_FSM_FLES
2824 //
2825 //*****************************************************************************
2826 // Field:  [11:8] BLK_TIOTP
2827 //
2828 // Internal. Only to be used through TI provided API.
2829 #define FLASH_FSM_FLES_BLK_TIOTP_W                                           4
2830 #define FLASH_FSM_FLES_BLK_TIOTP_M                                  0x00000F00
2831 #define FLASH_FSM_FLES_BLK_TIOTP_S                                           8
2832 
2833 // Field:   [7:0] BLK_OTP
2834 //
2835 // Internal. Only to be used through TI provided API.
2836 #define FLASH_FSM_FLES_BLK_OTP_W                                             8
2837 #define FLASH_FSM_FLES_BLK_OTP_M                                    0x000000FF
2838 #define FLASH_FSM_FLES_BLK_OTP_S                                             0
2839 
2840 //*****************************************************************************
2841 //
2842 // Register: FLASH_O_FSM_WR_ENA
2843 //
2844 //*****************************************************************************
2845 // Field:   [2:0] WR_ENA
2846 //
2847 // Internal. Only to be used through TI provided API.
2848 #define FLASH_FSM_WR_ENA_WR_ENA_W                                            3
2849 #define FLASH_FSM_WR_ENA_WR_ENA_M                                   0x00000007
2850 #define FLASH_FSM_WR_ENA_WR_ENA_S                                            0
2851 
2852 //*****************************************************************************
2853 //
2854 // Register: FLASH_O_FSM_ACC_PP
2855 //
2856 //*****************************************************************************
2857 // Field:  [31:0] FSM_ACC_PP
2858 //
2859 // Internal. Only to be used through TI provided API.
2860 #define FLASH_FSM_ACC_PP_FSM_ACC_PP_W                                       32
2861 #define FLASH_FSM_ACC_PP_FSM_ACC_PP_M                               0xFFFFFFFF
2862 #define FLASH_FSM_ACC_PP_FSM_ACC_PP_S                                        0
2863 
2864 //*****************************************************************************
2865 //
2866 // Register: FLASH_O_FSM_ACC_EP
2867 //
2868 //*****************************************************************************
2869 // Field:  [15:0] ACC_EP
2870 //
2871 // Internal. Only to be used through TI provided API.
2872 #define FLASH_FSM_ACC_EP_ACC_EP_W                                           16
2873 #define FLASH_FSM_ACC_EP_ACC_EP_M                                   0x0000FFFF
2874 #define FLASH_FSM_ACC_EP_ACC_EP_S                                            0
2875 
2876 //*****************************************************************************
2877 //
2878 // Register: FLASH_O_FSM_ADDR
2879 //
2880 //*****************************************************************************
2881 // Field: [30:28] BANK
2882 //
2883 // Internal. Only to be used through TI provided API.
2884 #define FLASH_FSM_ADDR_BANK_W                                                3
2885 #define FLASH_FSM_ADDR_BANK_M                                       0x70000000
2886 #define FLASH_FSM_ADDR_BANK_S                                               28
2887 
2888 // Field:  [27:0] CUR_ADDR
2889 //
2890 // Internal. Only to be used through TI provided API.
2891 #define FLASH_FSM_ADDR_CUR_ADDR_W                                           28
2892 #define FLASH_FSM_ADDR_CUR_ADDR_M                                   0x0FFFFFFF
2893 #define FLASH_FSM_ADDR_CUR_ADDR_S                                            0
2894 
2895 //*****************************************************************************
2896 //
2897 // Register: FLASH_O_FSM_SECTOR
2898 //
2899 //*****************************************************************************
2900 // Field: [31:16] SECT_ERASED
2901 //
2902 // Internal. Only to be used through TI provided API.
2903 #define FLASH_FSM_SECTOR_SECT_ERASED_W                                      16
2904 #define FLASH_FSM_SECTOR_SECT_ERASED_M                              0xFFFF0000
2905 #define FLASH_FSM_SECTOR_SECT_ERASED_S                                      16
2906 
2907 // Field:  [15:8] FSM_SECTOR_EXTENSION
2908 //
2909 // Internal. Only to be used through TI provided API.
2910 #define FLASH_FSM_SECTOR_FSM_SECTOR_EXTENSION_W                              8
2911 #define FLASH_FSM_SECTOR_FSM_SECTOR_EXTENSION_M                     0x0000FF00
2912 #define FLASH_FSM_SECTOR_FSM_SECTOR_EXTENSION_S                              8
2913 
2914 // Field:   [7:4] SECTOR
2915 //
2916 // Internal. Only to be used through TI provided API.
2917 #define FLASH_FSM_SECTOR_SECTOR_W                                            4
2918 #define FLASH_FSM_SECTOR_SECTOR_M                                   0x000000F0
2919 #define FLASH_FSM_SECTOR_SECTOR_S                                            4
2920 
2921 // Field:   [3:0] SEC_OUT
2922 //
2923 // Internal. Only to be used through TI provided API.
2924 #define FLASH_FSM_SECTOR_SEC_OUT_W                                           4
2925 #define FLASH_FSM_SECTOR_SEC_OUT_M                                  0x0000000F
2926 #define FLASH_FSM_SECTOR_SEC_OUT_S                                           0
2927 
2928 //*****************************************************************************
2929 //
2930 // Register: FLASH_O_FMC_REV_ID
2931 //
2932 //*****************************************************************************
2933 // Field: [31:12] MOD_VERSION
2934 //
2935 // Internal. Only to be used through TI provided API.
2936 #define FLASH_FMC_REV_ID_MOD_VERSION_W                                      20
2937 #define FLASH_FMC_REV_ID_MOD_VERSION_M                              0xFFFFF000
2938 #define FLASH_FMC_REV_ID_MOD_VERSION_S                                      12
2939 
2940 // Field:  [11:0] CONFIG_CRC
2941 //
2942 // Internal. Only to be used through TI provided API.
2943 #define FLASH_FMC_REV_ID_CONFIG_CRC_W                                       12
2944 #define FLASH_FMC_REV_ID_CONFIG_CRC_M                               0x00000FFF
2945 #define FLASH_FMC_REV_ID_CONFIG_CRC_S                                        0
2946 
2947 //*****************************************************************************
2948 //
2949 // Register: FLASH_O_FSM_ERR_ADDR
2950 //
2951 //*****************************************************************************
2952 // Field:  [31:8] FSM_ERR_ADDR
2953 //
2954 // Internal. Only to be used through TI provided API.
2955 #define FLASH_FSM_ERR_ADDR_FSM_ERR_ADDR_W                                   24
2956 #define FLASH_FSM_ERR_ADDR_FSM_ERR_ADDR_M                           0xFFFFFF00
2957 #define FLASH_FSM_ERR_ADDR_FSM_ERR_ADDR_S                                    8
2958 
2959 // Field:   [3:0] FSM_ERR_BANK
2960 //
2961 // Internal. Only to be used through TI provided API.
2962 #define FLASH_FSM_ERR_ADDR_FSM_ERR_BANK_W                                    4
2963 #define FLASH_FSM_ERR_ADDR_FSM_ERR_BANK_M                           0x0000000F
2964 #define FLASH_FSM_ERR_ADDR_FSM_ERR_BANK_S                                    0
2965 
2966 //*****************************************************************************
2967 //
2968 // Register: FLASH_O_FSM_PGM_MAXPUL
2969 //
2970 //*****************************************************************************
2971 // Field:  [11:0] FSM_PGM_MAXPUL
2972 //
2973 // Internal. Only to be used through TI provided API.
2974 #define FLASH_FSM_PGM_MAXPUL_FSM_PGM_MAXPUL_W                               12
2975 #define FLASH_FSM_PGM_MAXPUL_FSM_PGM_MAXPUL_M                       0x00000FFF
2976 #define FLASH_FSM_PGM_MAXPUL_FSM_PGM_MAXPUL_S                                0
2977 
2978 //*****************************************************************************
2979 //
2980 // Register: FLASH_O_FSM_EXECUTE
2981 //
2982 //*****************************************************************************
2983 // Field: [19:16] SUSPEND_NOW
2984 //
2985 // Internal. Only to be used through TI provided API.
2986 #define FLASH_FSM_EXECUTE_SUSPEND_NOW_W                                      4
2987 #define FLASH_FSM_EXECUTE_SUSPEND_NOW_M                             0x000F0000
2988 #define FLASH_FSM_EXECUTE_SUSPEND_NOW_S                                     16
2989 
2990 // Field:   [4:0] FSMEXECUTE
2991 //
2992 // Internal. Only to be used through TI provided API.
2993 #define FLASH_FSM_EXECUTE_FSMEXECUTE_W                                       5
2994 #define FLASH_FSM_EXECUTE_FSMEXECUTE_M                              0x0000001F
2995 #define FLASH_FSM_EXECUTE_FSMEXECUTE_S                                       0
2996 
2997 //*****************************************************************************
2998 //
2999 // Register: FLASH_O_FSM_SECTOR1
3000 //
3001 //*****************************************************************************
3002 // Field:  [31:0] FSM_SECTOR1
3003 //
3004 // Internal. Only to be used through TI provided API.
3005 #define FLASH_FSM_SECTOR1_FSM_SECTOR1_W                                     32
3006 #define FLASH_FSM_SECTOR1_FSM_SECTOR1_M                             0xFFFFFFFF
3007 #define FLASH_FSM_SECTOR1_FSM_SECTOR1_S                                      0
3008 
3009 //*****************************************************************************
3010 //
3011 // Register: FLASH_O_FSM_SECTOR2
3012 //
3013 //*****************************************************************************
3014 // Field:  [31:0] FSM_SECTOR2
3015 //
3016 // Internal. Only to be used through TI provided API.
3017 #define FLASH_FSM_SECTOR2_FSM_SECTOR2_W                                     32
3018 #define FLASH_FSM_SECTOR2_FSM_SECTOR2_M                             0xFFFFFFFF
3019 #define FLASH_FSM_SECTOR2_FSM_SECTOR2_S                                      0
3020 
3021 //*****************************************************************************
3022 //
3023 // Register: FLASH_O_FSM_BSLE0
3024 //
3025 //*****************************************************************************
3026 // Field:  [31:0] FSM_BSLE0
3027 //
3028 // Internal. Only to be used through TI provided API.
3029 #define FLASH_FSM_BSLE0_FSM_BSLE0_W                                         32
3030 #define FLASH_FSM_BSLE0_FSM_BSLE0_M                                 0xFFFFFFFF
3031 #define FLASH_FSM_BSLE0_FSM_BSLE0_S                                          0
3032 
3033 //*****************************************************************************
3034 //
3035 // Register: FLASH_O_FSM_BSLE1
3036 //
3037 //*****************************************************************************
3038 // Field:  [31:0] FSM_BSL1
3039 //
3040 // Internal. Only to be used through TI provided API.
3041 #define FLASH_FSM_BSLE1_FSM_BSL1_W                                          32
3042 #define FLASH_FSM_BSLE1_FSM_BSL1_M                                  0xFFFFFFFF
3043 #define FLASH_FSM_BSLE1_FSM_BSL1_S                                           0
3044 
3045 //*****************************************************************************
3046 //
3047 // Register: FLASH_O_FSM_BSLP0
3048 //
3049 //*****************************************************************************
3050 // Field:  [31:0] FSM_BSLP0
3051 //
3052 // Internal. Only to be used through TI provided API.
3053 #define FLASH_FSM_BSLP0_FSM_BSLP0_W                                         32
3054 #define FLASH_FSM_BSLP0_FSM_BSLP0_M                                 0xFFFFFFFF
3055 #define FLASH_FSM_BSLP0_FSM_BSLP0_S                                          0
3056 
3057 //*****************************************************************************
3058 //
3059 // Register: FLASH_O_FSM_BSLP1
3060 //
3061 //*****************************************************************************
3062 // Field:  [31:0] FSM_BSL1
3063 //
3064 // Internal. Only to be used through TI provided API.
3065 #define FLASH_FSM_BSLP1_FSM_BSL1_W                                          32
3066 #define FLASH_FSM_BSLP1_FSM_BSL1_M                                  0xFFFFFFFF
3067 #define FLASH_FSM_BSLP1_FSM_BSL1_S                                           0
3068 
3069 //*****************************************************************************
3070 //
3071 // Register: FLASH_O_FSM_PGM128
3072 //
3073 //*****************************************************************************
3074 // Field:     [0] EN_PGM128
3075 //
3076 // 1: Enables 128-bit wide programming.  This mode requires programming supply
3077 // voltage to be greater than 2.5v at the Flash Pump.  The primary use case for
3078 // this mode is manufacturing test for test time reduction.
3079 //
3080 // 0: 64-bit wide programming.  Valid at any programming voltage.  A 128-bit
3081 // word is divided into two 64-bit words for programming. [default]
3082 //
3083 // This register is write protected with the FSM_WR_ENA register.
3084 #define FLASH_FSM_PGM128_EN_PGM128                                  0x00000001
3085 #define FLASH_FSM_PGM128_EN_PGM128_BITN                                      0
3086 #define FLASH_FSM_PGM128_EN_PGM128_M                                0x00000001
3087 #define FLASH_FSM_PGM128_EN_PGM128_S                                         0
3088 
3089 //*****************************************************************************
3090 //
3091 // Register: FLASH_O_FCFG_BANK
3092 //
3093 //*****************************************************************************
3094 // Field: [31:20] EE_BANK_WIDTH
3095 //
3096 // Internal. Only to be used through TI provided API.
3097 #define FLASH_FCFG_BANK_EE_BANK_WIDTH_W                                     12
3098 #define FLASH_FCFG_BANK_EE_BANK_WIDTH_M                             0xFFF00000
3099 #define FLASH_FCFG_BANK_EE_BANK_WIDTH_S                                     20
3100 
3101 // Field: [19:16] EE_NUM_BANK
3102 //
3103 // Internal. Only to be used through TI provided API.
3104 #define FLASH_FCFG_BANK_EE_NUM_BANK_W                                        4
3105 #define FLASH_FCFG_BANK_EE_NUM_BANK_M                               0x000F0000
3106 #define FLASH_FCFG_BANK_EE_NUM_BANK_S                                       16
3107 
3108 // Field:  [15:4] MAIN_BANK_WIDTH
3109 //
3110 // Internal. Only to be used through TI provided API.
3111 #define FLASH_FCFG_BANK_MAIN_BANK_WIDTH_W                                   12
3112 #define FLASH_FCFG_BANK_MAIN_BANK_WIDTH_M                           0x0000FFF0
3113 #define FLASH_FCFG_BANK_MAIN_BANK_WIDTH_S                                    4
3114 
3115 // Field:   [3:0] MAIN_NUM_BANK
3116 //
3117 // Internal. Only to be used through TI provided API.
3118 #define FLASH_FCFG_BANK_MAIN_NUM_BANK_W                                      4
3119 #define FLASH_FCFG_BANK_MAIN_NUM_BANK_M                             0x0000000F
3120 #define FLASH_FCFG_BANK_MAIN_NUM_BANK_S                                      0
3121 
3122 //*****************************************************************************
3123 //
3124 // Register: FLASH_O_FCFG_WRAPPER
3125 //
3126 //*****************************************************************************
3127 // Field: [31:24] FAMILY_TYPE
3128 //
3129 // Internal. Only to be used through TI provided API.
3130 #define FLASH_FCFG_WRAPPER_FAMILY_TYPE_W                                     8
3131 #define FLASH_FCFG_WRAPPER_FAMILY_TYPE_M                            0xFF000000
3132 #define FLASH_FCFG_WRAPPER_FAMILY_TYPE_S                                    24
3133 
3134 // Field:    [20] MEM_MAP
3135 //
3136 // Internal. Only to be used through TI provided API.
3137 #define FLASH_FCFG_WRAPPER_MEM_MAP                                  0x00100000
3138 #define FLASH_FCFG_WRAPPER_MEM_MAP_BITN                                     20
3139 #define FLASH_FCFG_WRAPPER_MEM_MAP_M                                0x00100000
3140 #define FLASH_FCFG_WRAPPER_MEM_MAP_S                                        20
3141 
3142 // Field: [19:16] CPU2
3143 //
3144 // Internal. Only to be used through TI provided API.
3145 #define FLASH_FCFG_WRAPPER_CPU2_W                                            4
3146 #define FLASH_FCFG_WRAPPER_CPU2_M                                   0x000F0000
3147 #define FLASH_FCFG_WRAPPER_CPU2_S                                           16
3148 
3149 // Field: [15:12] EE_IN_MAIN
3150 //
3151 // Internal. Only to be used through TI provided API.
3152 #define FLASH_FCFG_WRAPPER_EE_IN_MAIN_W                                      4
3153 #define FLASH_FCFG_WRAPPER_EE_IN_MAIN_M                             0x0000F000
3154 #define FLASH_FCFG_WRAPPER_EE_IN_MAIN_S                                     12
3155 
3156 // Field:    [11] ROM
3157 //
3158 // Internal. Only to be used through TI provided API.
3159 #define FLASH_FCFG_WRAPPER_ROM                                      0x00000800
3160 #define FLASH_FCFG_WRAPPER_ROM_BITN                                         11
3161 #define FLASH_FCFG_WRAPPER_ROM_M                                    0x00000800
3162 #define FLASH_FCFG_WRAPPER_ROM_S                                            11
3163 
3164 // Field:    [10] IFLUSH
3165 //
3166 // Internal. Only to be used through TI provided API.
3167 #define FLASH_FCFG_WRAPPER_IFLUSH                                   0x00000400
3168 #define FLASH_FCFG_WRAPPER_IFLUSH_BITN                                      10
3169 #define FLASH_FCFG_WRAPPER_IFLUSH_M                                 0x00000400
3170 #define FLASH_FCFG_WRAPPER_IFLUSH_S                                         10
3171 
3172 // Field:     [9] SIL3
3173 //
3174 // Internal. Only to be used through TI provided API.
3175 #define FLASH_FCFG_WRAPPER_SIL3                                     0x00000200
3176 #define FLASH_FCFG_WRAPPER_SIL3_BITN                                         9
3177 #define FLASH_FCFG_WRAPPER_SIL3_M                                   0x00000200
3178 #define FLASH_FCFG_WRAPPER_SIL3_S                                            9
3179 
3180 // Field:     [8] ECCA
3181 //
3182 // Internal. Only to be used through TI provided API.
3183 #define FLASH_FCFG_WRAPPER_ECCA                                     0x00000100
3184 #define FLASH_FCFG_WRAPPER_ECCA_BITN                                         8
3185 #define FLASH_FCFG_WRAPPER_ECCA_M                                   0x00000100
3186 #define FLASH_FCFG_WRAPPER_ECCA_S                                            8
3187 
3188 // Field:   [7:6] AUTO_SUSP
3189 //
3190 // Internal. Only to be used through TI provided API.
3191 #define FLASH_FCFG_WRAPPER_AUTO_SUSP_W                                       2
3192 #define FLASH_FCFG_WRAPPER_AUTO_SUSP_M                              0x000000C0
3193 #define FLASH_FCFG_WRAPPER_AUTO_SUSP_S                                       6
3194 
3195 // Field:   [5:4] UERR
3196 //
3197 // Internal. Only to be used through TI provided API.
3198 #define FLASH_FCFG_WRAPPER_UERR_W                                            2
3199 #define FLASH_FCFG_WRAPPER_UERR_M                                   0x00000030
3200 #define FLASH_FCFG_WRAPPER_UERR_S                                            4
3201 
3202 // Field:   [3:0] CPU_TYPE1
3203 //
3204 // Internal. Only to be used through TI provided API.
3205 #define FLASH_FCFG_WRAPPER_CPU_TYPE1_W                                       4
3206 #define FLASH_FCFG_WRAPPER_CPU_TYPE1_M                              0x0000000F
3207 #define FLASH_FCFG_WRAPPER_CPU_TYPE1_S                                       0
3208 
3209 //*****************************************************************************
3210 //
3211 // Register: FLASH_O_FCFG_BNK_TYPE
3212 //
3213 //*****************************************************************************
3214 // Field: [31:28] B7_TYPE
3215 //
3216 // Internal. Only to be used through TI provided API.
3217 #define FLASH_FCFG_BNK_TYPE_B7_TYPE_W                                        4
3218 #define FLASH_FCFG_BNK_TYPE_B7_TYPE_M                               0xF0000000
3219 #define FLASH_FCFG_BNK_TYPE_B7_TYPE_S                                       28
3220 
3221 // Field: [27:24] B6_TYPE
3222 //
3223 // Internal. Only to be used through TI provided API.
3224 #define FLASH_FCFG_BNK_TYPE_B6_TYPE_W                                        4
3225 #define FLASH_FCFG_BNK_TYPE_B6_TYPE_M                               0x0F000000
3226 #define FLASH_FCFG_BNK_TYPE_B6_TYPE_S                                       24
3227 
3228 // Field: [23:20] B5_TYPE
3229 //
3230 // Internal. Only to be used through TI provided API.
3231 #define FLASH_FCFG_BNK_TYPE_B5_TYPE_W                                        4
3232 #define FLASH_FCFG_BNK_TYPE_B5_TYPE_M                               0x00F00000
3233 #define FLASH_FCFG_BNK_TYPE_B5_TYPE_S                                       20
3234 
3235 // Field: [19:16] B4_TYPE
3236 //
3237 // Internal. Only to be used through TI provided API.
3238 #define FLASH_FCFG_BNK_TYPE_B4_TYPE_W                                        4
3239 #define FLASH_FCFG_BNK_TYPE_B4_TYPE_M                               0x000F0000
3240 #define FLASH_FCFG_BNK_TYPE_B4_TYPE_S                                       16
3241 
3242 // Field: [15:12] B3_TYPE
3243 //
3244 // Internal. Only to be used through TI provided API.
3245 #define FLASH_FCFG_BNK_TYPE_B3_TYPE_W                                        4
3246 #define FLASH_FCFG_BNK_TYPE_B3_TYPE_M                               0x0000F000
3247 #define FLASH_FCFG_BNK_TYPE_B3_TYPE_S                                       12
3248 
3249 // Field:  [11:8] B2_TYPE
3250 //
3251 // Internal. Only to be used through TI provided API.
3252 #define FLASH_FCFG_BNK_TYPE_B2_TYPE_W                                        4
3253 #define FLASH_FCFG_BNK_TYPE_B2_TYPE_M                               0x00000F00
3254 #define FLASH_FCFG_BNK_TYPE_B2_TYPE_S                                        8
3255 
3256 // Field:   [7:4] B1_TYPE
3257 //
3258 // Internal. Only to be used through TI provided API.
3259 #define FLASH_FCFG_BNK_TYPE_B1_TYPE_W                                        4
3260 #define FLASH_FCFG_BNK_TYPE_B1_TYPE_M                               0x000000F0
3261 #define FLASH_FCFG_BNK_TYPE_B1_TYPE_S                                        4
3262 
3263 // Field:   [3:0] B0_TYPE
3264 //
3265 // Internal. Only to be used through TI provided API.
3266 #define FLASH_FCFG_BNK_TYPE_B0_TYPE_W                                        4
3267 #define FLASH_FCFG_BNK_TYPE_B0_TYPE_M                               0x0000000F
3268 #define FLASH_FCFG_BNK_TYPE_B0_TYPE_S                                        0
3269 
3270 //*****************************************************************************
3271 //
3272 // Register: FLASH_O_FCFG_B0_START
3273 //
3274 //*****************************************************************************
3275 // Field: [31:28] B0_MAX_SECTOR
3276 //
3277 // Internal. Only to be used through TI provided API.
3278 #define FLASH_FCFG_B0_START_B0_MAX_SECTOR_W                                  4
3279 #define FLASH_FCFG_B0_START_B0_MAX_SECTOR_M                         0xF0000000
3280 #define FLASH_FCFG_B0_START_B0_MAX_SECTOR_S                                 28
3281 
3282 // Field: [27:24] B0_MUX_FACTOR
3283 //
3284 // Internal. Only to be used through TI provided API.
3285 #define FLASH_FCFG_B0_START_B0_MUX_FACTOR_W                                  4
3286 #define FLASH_FCFG_B0_START_B0_MUX_FACTOR_M                         0x0F000000
3287 #define FLASH_FCFG_B0_START_B0_MUX_FACTOR_S                                 24
3288 
3289 // Field:  [23:0] B0_START_ADDR
3290 //
3291 // Internal. Only to be used through TI provided API.
3292 #define FLASH_FCFG_B0_START_B0_START_ADDR_W                                 24
3293 #define FLASH_FCFG_B0_START_B0_START_ADDR_M                         0x00FFFFFF
3294 #define FLASH_FCFG_B0_START_B0_START_ADDR_S                                  0
3295 
3296 //*****************************************************************************
3297 //
3298 // Register: FLASH_O_FCFG_B1_START
3299 //
3300 //*****************************************************************************
3301 // Field: [31:28] B1_MAX_SECTOR
3302 //
3303 // Internal. Only to be used through TI provided API.
3304 #define FLASH_FCFG_B1_START_B1_MAX_SECTOR_W                                  4
3305 #define FLASH_FCFG_B1_START_B1_MAX_SECTOR_M                         0xF0000000
3306 #define FLASH_FCFG_B1_START_B1_MAX_SECTOR_S                                 28
3307 
3308 // Field: [27:24] B1_MUX_FACTOR
3309 //
3310 // Internal. Only to be used through TI provided API.
3311 #define FLASH_FCFG_B1_START_B1_MUX_FACTOR_W                                  4
3312 #define FLASH_FCFG_B1_START_B1_MUX_FACTOR_M                         0x0F000000
3313 #define FLASH_FCFG_B1_START_B1_MUX_FACTOR_S                                 24
3314 
3315 // Field:  [23:0] B1_START_ADDR
3316 //
3317 // Internal. Only to be used through TI provided API.
3318 #define FLASH_FCFG_B1_START_B1_START_ADDR_W                                 24
3319 #define FLASH_FCFG_B1_START_B1_START_ADDR_M                         0x00FFFFFF
3320 #define FLASH_FCFG_B1_START_B1_START_ADDR_S                                  0
3321 
3322 //*****************************************************************************
3323 //
3324 // Register: FLASH_O_FCFG_B2_START
3325 //
3326 //*****************************************************************************
3327 // Field: [31:28] B2_MAX_SECTOR
3328 //
3329 // Internal. Only to be used through TI provided API.
3330 #define FLASH_FCFG_B2_START_B2_MAX_SECTOR_W                                  4
3331 #define FLASH_FCFG_B2_START_B2_MAX_SECTOR_M                         0xF0000000
3332 #define FLASH_FCFG_B2_START_B2_MAX_SECTOR_S                                 28
3333 
3334 // Field: [27:24] B2_MUX_FACTOR
3335 //
3336 // Internal. Only to be used through TI provided API.
3337 #define FLASH_FCFG_B2_START_B2_MUX_FACTOR_W                                  4
3338 #define FLASH_FCFG_B2_START_B2_MUX_FACTOR_M                         0x0F000000
3339 #define FLASH_FCFG_B2_START_B2_MUX_FACTOR_S                                 24
3340 
3341 // Field:  [23:0] B2_START_ADDR
3342 //
3343 // Internal. Only to be used through TI provided API.
3344 #define FLASH_FCFG_B2_START_B2_START_ADDR_W                                 24
3345 #define FLASH_FCFG_B2_START_B2_START_ADDR_M                         0x00FFFFFF
3346 #define FLASH_FCFG_B2_START_B2_START_ADDR_S                                  0
3347 
3348 //*****************************************************************************
3349 //
3350 // Register: FLASH_O_FCFG_B3_START
3351 //
3352 //*****************************************************************************
3353 // Field: [31:28] B3_MAX_SECTOR
3354 //
3355 // Internal. Only to be used through TI provided API.
3356 #define FLASH_FCFG_B3_START_B3_MAX_SECTOR_W                                  4
3357 #define FLASH_FCFG_B3_START_B3_MAX_SECTOR_M                         0xF0000000
3358 #define FLASH_FCFG_B3_START_B3_MAX_SECTOR_S                                 28
3359 
3360 // Field: [27:24] B3_MUX_FACTOR
3361 //
3362 // Internal. Only to be used through TI provided API.
3363 #define FLASH_FCFG_B3_START_B3_MUX_FACTOR_W                                  4
3364 #define FLASH_FCFG_B3_START_B3_MUX_FACTOR_M                         0x0F000000
3365 #define FLASH_FCFG_B3_START_B3_MUX_FACTOR_S                                 24
3366 
3367 // Field:  [23:0] B3_START_ADDR
3368 //
3369 // Internal. Only to be used through TI provided API.
3370 #define FLASH_FCFG_B3_START_B3_START_ADDR_W                                 24
3371 #define FLASH_FCFG_B3_START_B3_START_ADDR_M                         0x00FFFFFF
3372 #define FLASH_FCFG_B3_START_B3_START_ADDR_S                                  0
3373 
3374 //*****************************************************************************
3375 //
3376 // Register: FLASH_O_FCFG_B4_START
3377 //
3378 //*****************************************************************************
3379 // Field: [31:28] B4_MAX_SECTOR
3380 //
3381 // Internal. Only to be used through TI provided API.
3382 #define FLASH_FCFG_B4_START_B4_MAX_SECTOR_W                                  4
3383 #define FLASH_FCFG_B4_START_B4_MAX_SECTOR_M                         0xF0000000
3384 #define FLASH_FCFG_B4_START_B4_MAX_SECTOR_S                                 28
3385 
3386 // Field: [27:24] B4_MUX_FACTOR
3387 //
3388 // Internal. Only to be used through TI provided API.
3389 #define FLASH_FCFG_B4_START_B4_MUX_FACTOR_W                                  4
3390 #define FLASH_FCFG_B4_START_B4_MUX_FACTOR_M                         0x0F000000
3391 #define FLASH_FCFG_B4_START_B4_MUX_FACTOR_S                                 24
3392 
3393 // Field:  [23:0] B4_START_ADDR
3394 //
3395 // Internal. Only to be used through TI provided API.
3396 #define FLASH_FCFG_B4_START_B4_START_ADDR_W                                 24
3397 #define FLASH_FCFG_B4_START_B4_START_ADDR_M                         0x00FFFFFF
3398 #define FLASH_FCFG_B4_START_B4_START_ADDR_S                                  0
3399 
3400 //*****************************************************************************
3401 //
3402 // Register: FLASH_O_FCFG_B5_START
3403 //
3404 //*****************************************************************************
3405 // Field: [31:28] B5_MAX_SECTOR
3406 //
3407 // Internal. Only to be used through TI provided API.
3408 #define FLASH_FCFG_B5_START_B5_MAX_SECTOR_W                                  4
3409 #define FLASH_FCFG_B5_START_B5_MAX_SECTOR_M                         0xF0000000
3410 #define FLASH_FCFG_B5_START_B5_MAX_SECTOR_S                                 28
3411 
3412 // Field: [27:24] B5_MUX_FACTOR
3413 //
3414 // Internal. Only to be used through TI provided API.
3415 #define FLASH_FCFG_B5_START_B5_MUX_FACTOR_W                                  4
3416 #define FLASH_FCFG_B5_START_B5_MUX_FACTOR_M                         0x0F000000
3417 #define FLASH_FCFG_B5_START_B5_MUX_FACTOR_S                                 24
3418 
3419 // Field:  [23:0] B5_START_ADDR
3420 //
3421 // Internal. Only to be used through TI provided API.
3422 #define FLASH_FCFG_B5_START_B5_START_ADDR_W                                 24
3423 #define FLASH_FCFG_B5_START_B5_START_ADDR_M                         0x00FFFFFF
3424 #define FLASH_FCFG_B5_START_B5_START_ADDR_S                                  0
3425 
3426 //*****************************************************************************
3427 //
3428 // Register: FLASH_O_FCFG_B6_START
3429 //
3430 //*****************************************************************************
3431 // Field: [31:28] B6_MAX_SECTOR
3432 //
3433 // Internal. Only to be used through TI provided API.
3434 #define FLASH_FCFG_B6_START_B6_MAX_SECTOR_W                                  4
3435 #define FLASH_FCFG_B6_START_B6_MAX_SECTOR_M                         0xF0000000
3436 #define FLASH_FCFG_B6_START_B6_MAX_SECTOR_S                                 28
3437 
3438 // Field: [27:24] B6_MUX_FACTOR
3439 //
3440 // Internal. Only to be used through TI provided API.
3441 #define FLASH_FCFG_B6_START_B6_MUX_FACTOR_W                                  4
3442 #define FLASH_FCFG_B6_START_B6_MUX_FACTOR_M                         0x0F000000
3443 #define FLASH_FCFG_B6_START_B6_MUX_FACTOR_S                                 24
3444 
3445 // Field:  [23:0] B6_START_ADDR
3446 //
3447 // Internal. Only to be used through TI provided API.
3448 #define FLASH_FCFG_B6_START_B6_START_ADDR_W                                 24
3449 #define FLASH_FCFG_B6_START_B6_START_ADDR_M                         0x00FFFFFF
3450 #define FLASH_FCFG_B6_START_B6_START_ADDR_S                                  0
3451 
3452 //*****************************************************************************
3453 //
3454 // Register: FLASH_O_FCFG_B7_START
3455 //
3456 //*****************************************************************************
3457 // Field: [31:28] B7_MAX_SECTOR
3458 //
3459 // Internal. Only to be used through TI provided API.
3460 #define FLASH_FCFG_B7_START_B7_MAX_SECTOR_W                                  4
3461 #define FLASH_FCFG_B7_START_B7_MAX_SECTOR_M                         0xF0000000
3462 #define FLASH_FCFG_B7_START_B7_MAX_SECTOR_S                                 28
3463 
3464 // Field: [27:24] B7_MUX_FACTOR
3465 //
3466 // Internal. Only to be used through TI provided API.
3467 #define FLASH_FCFG_B7_START_B7_MUX_FACTOR_W                                  4
3468 #define FLASH_FCFG_B7_START_B7_MUX_FACTOR_M                         0x0F000000
3469 #define FLASH_FCFG_B7_START_B7_MUX_FACTOR_S                                 24
3470 
3471 // Field:  [23:0] B7_START_ADDR
3472 //
3473 // Internal. Only to be used through TI provided API.
3474 #define FLASH_FCFG_B7_START_B7_START_ADDR_W                                 24
3475 #define FLASH_FCFG_B7_START_B7_START_ADDR_M                         0x00FFFFFF
3476 #define FLASH_FCFG_B7_START_B7_START_ADDR_S                                  0
3477 
3478 //*****************************************************************************
3479 //
3480 // Register: FLASH_O_FCFG_B0_SSIZE0
3481 //
3482 //*****************************************************************************
3483 // Field: [27:16] B0_NUM_SECTORS
3484 //
3485 // Internal. Only to be used through TI provided API.
3486 #define FLASH_FCFG_B0_SSIZE0_B0_NUM_SECTORS_W                               12
3487 #define FLASH_FCFG_B0_SSIZE0_B0_NUM_SECTORS_M                       0x0FFF0000
3488 #define FLASH_FCFG_B0_SSIZE0_B0_NUM_SECTORS_S                               16
3489 
3490 // Field:   [3:0] B0_SECT_SIZE
3491 //
3492 // Internal. Only to be used through TI provided API.
3493 #define FLASH_FCFG_B0_SSIZE0_B0_SECT_SIZE_W                                  4
3494 #define FLASH_FCFG_B0_SSIZE0_B0_SECT_SIZE_M                         0x0000000F
3495 #define FLASH_FCFG_B0_SSIZE0_B0_SECT_SIZE_S                                  0
3496 
3497 
3498 #endif // __FLASH__
3499