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