RTEMS 6.1-rc4
Loading...
Searching...
No Matches
reg_flash.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
11/* The header file is generated by make_header.py from FLASH.json */
12/* Current script's version can be found at: */
13/* https://github.com/AoLaD/rtems-tms570-utils/tree/headers/headers/python */
14
15/*
16 * Copyright (c) 2014-2015, Premysl Houdek <kom541000@gmail.com>
17 *
18 * Czech Technical University in Prague
19 * Zikova 1903/4
20 * 166 36 Praha 6
21 * Czech Republic
22 *
23 * All rights reserved.
24 *
25 * Redistribution and use in source and binary forms, with or without
26 * modification, are permitted provided that the following conditions are met:
27 *
28 * 1. Redistributions of source code must retain the above copyright notice, this
29 * list of conditions and the following disclaimer.
30 * 2. Redistributions in binary form must reproduce the above copyright notice,
31 * this list of conditions and the following disclaimer in the documentation
32 * and/or other materials provided with the distribution.
33 *
34 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
35 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
36 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
37 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
38 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
39 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
40 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
41 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
42 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
43 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
44 *
45 * The views and conclusions contained in the software and documentation are those
46 * of the authors and should not be interpreted as representing official policies,
47 * either expressed or implied, of the FreeBSD Project.
48*/
49#ifndef LIBBSP_ARM_TMS570_FLASH
50#define LIBBSP_ARM_TMS570_FLASH
51
52#include <bsp/utility.h>
53
54typedef struct{
55 uint32_t FRDCNTL; /*Flash Option Control Register*/
56 uint8_t reserved1 [4];
57 uint32_t FEDACTRL1; /*Flash Error Detection and Correction Control Register 1*/
58 uint32_t FEDACTRL2; /*Flash Error Detection and Correction Control Register 2*/
59 uint32_t FCORERRCNT; /*Flash Correctable Error Count Register*/
60 uint32_t FCORERRADD; /*Flash Correctable Error Address Register*/
61 uint32_t FCORERRPOS; /*Flash Correctable Error Position Register*/
62 uint32_t FEDACSTATUS; /*Flash Error Detection and Correction Status Register*/
63 uint32_t FUNCERRADD; /*Flash Un-Correctable Error Address Register*/
64 uint32_t FEDACSDIS; /*Flash Error Detection and Correction Sector Disable Register*/
65 uint32_t FPRIMADDTAG; /*Flash Primary Address Tag Register*/
66 uint32_t FDUPADDTAG; /*Flash Duplicate Address Tag Register*/
67 uint32_t FBPROT; /*Flash Bank Protection Register*/
68 uint32_t FBSE; /*Flash Bank Sector Enable Register*/
69 uint32_t FBBUSY; /*Flash Bank Busy Register*/
70 uint32_t FBAC; /*Flash Bank Access Control Register*/
71 uint32_t FBFALLBACK; /*Flash Bank Fallback Power Register*/
72 uint32_t FBPRDY; /*Flash Bank/Pump Ready Register*/
73 uint32_t FPAC1; /*Flash Pump Access Control Register 1*/
74 uint32_t FPAC2; /*Flash Pump Access Control Register 2*/
75 uint32_t FMAC; /*Flash Module Access Control Register*/
76 uint32_t FMSTAT; /*Flash Module Status Register*/
77 uint32_t FEMUDMSW; /*EEPROM Emulation Data MSW Register*/
78 uint32_t FEMUDLSW; /*EEPROM Emulation Data LSW Register*/
79 uint32_t FEMUECC; /*EEPROM Emulation ECC Register*/
80 uint8_t reserved2 [4];
81 uint32_t FEMUADDR; /*EEPROM Emulation Address Register*/
82 uint32_t FDIAGCTRL; /*Diagnostic Control Register*/
83 uint32_t FRAWDATAH; /*Uncorrected Raw Data High Register*/
84 uint32_t FRAWDATAL; /*Uncorrected Raw Data Low Register*/
85 uint32_t FRAWECC; /*Uncorrected Raw ECC Register*/
86 uint32_t FPAROVR; /*Parity Override Register*/
87 uint8_t reserved3 [64];
88 uint32_t FEDACSDIS2; /*Flash Error Detection and Correction Sector Disable Register 2*/
89 uint8_t reserved4 [452];
90 uint32_t FSMWRENA; /*FSM Register Write Enable*/
91 uint8_t reserved5 [24];
92 uint32_t FSMSECTOR; /*FSM Sector Register*/
93 uint8_t reserved6 [16];
94 uint32_t EEPROMCONFIG; /*EEPROM Emulation Configuration Register*/
95 uint8_t reserved7 [76];
96 uint32_t EECTRL1; /*EEPROM Emulation Error Detection and Correction Control Register 1*/
97 uint32_t EECTRL2; /*EEPROM Emulation Error Detection and Correction Control Register 2*/
98 uint32_t EECORERRCNT; /*EEPROM Emulation Correctable Error Count Register*/
99 uint32_t EECORERRADD; /*EEPROM Emulation Correctable Error Address Register*/
100 uint32_t EECORERRPOS; /*EEPROM Emulation Correctable Error Bit Position Register*/
101 uint32_t EESTATUS; /*EEPROM Emulation Error Status Register*/
102 uint32_t EEUNCERRADD; /*EEPROM Emulation Un-Correctable Error Address Register*/
103 uint8_t reserved8 [220];
104 uint32_t FCFGBANK; /*Flash Bank Configuration Register*/
106
107
108/*--------------------TMS570_FLASH_FRDCNTL--------------------*/
109/* field: RWAIT - Random/data Read Wait State */
110#define TMS570_FLASH_FRDCNTL_RWAIT(val) BSP_FLD32(val,8, 11)
111#define TMS570_FLASH_FRDCNTL_RWAIT_GET(reg) BSP_FLD32GET(reg,8, 11)
112#define TMS570_FLASH_FRDCNTL_RWAIT_SET(reg,val) BSP_FLD32SET(reg, val,8, 11)
113
114/* field: ASWSTEN - Address Setup Wait State Enable */
115#define TMS570_FLASH_FRDCNTL_ASWSTEN BSP_BIT32(4)
116
117/* field: ENPIPE - Enable Pipeline Mode */
118#define TMS570_FLASH_FRDCNTL_ENPIPE BSP_BIT32(0)
119
120
121/*-------------------TMS570_FLASH_FEDACTRL1-------------------*/
122/* field: SUSP_IGNR - Suspend Ignore. */
123#define TMS570_FLASH_FEDACTRL1_SUSP_IGNR BSP_BIT32(24)
124
125/* field: EDACMODE - Error Correction Mode. */
126#define TMS570_FLASH_FEDACTRL1_EDACMODE(val) BSP_FLD32(val,16, 19)
127#define TMS570_FLASH_FEDACTRL1_EDACMODE_GET(reg) BSP_FLD32GET(reg,16, 19)
128#define TMS570_FLASH_FEDACTRL1_EDACMODE_SET(reg,val) BSP_FLD32SET(reg, val,16, 19)
129
130/* field: EOFEN - Event on Ones Fail Enable */
131#define TMS570_FLASH_FEDACTRL1_EOFEN BSP_BIT32(10)
132
133/* field: EZFEN - Event on Zeros Fail Enable */
134#define TMS570_FLASH_FEDACTRL1_EZFEN BSP_BIT32(9)
135
136/* field: EPEN - Error Profiling Enable. */
137#define TMS570_FLASH_FEDACTRL1_EPEN BSP_BIT32(8)
138
139/* field: EDACEN - Error Detection and Correction Enable */
140#define TMS570_FLASH_FEDACTRL1_EDACEN(val) BSP_FLD32(val,0, 3)
141#define TMS570_FLASH_FEDACTRL1_EDACEN_GET(reg) BSP_FLD32GET(reg,0, 3)
142#define TMS570_FLASH_FEDACTRL1_EDACEN_SET(reg,val) BSP_FLD32SET(reg, val,0, 3)
143
144
145/*-------------------TMS570_FLASH_FEDACTRL2-------------------*/
146/* field: SEC_THRESHOLD - Single Error Correction Threshold */
147#define TMS570_FLASH_FEDACTRL2_SEC_THRESHOLD(val) BSP_FLD32(val,0, 15)
148#define TMS570_FLASH_FEDACTRL2_SEC_THRESHOLD_GET(reg) BSP_FLD32GET(reg,0, 15)
149#define TMS570_FLASH_FEDACTRL2_SEC_THRESHOLD_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
150
151
152/*------------------TMS570_FLASH_FCORERRCNT------------------*/
153/* field: FERRCNT - Single Error Correction Count */
154#define TMS570_FLASH_FCORERRCNT_FERRCNT(val) BSP_FLD32(val,0, 15)
155#define TMS570_FLASH_FCORERRCNT_FERRCNT_GET(reg) BSP_FLD32GET(reg,0, 15)
156#define TMS570_FLASH_FCORERRCNT_FERRCNT_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
157
158
159/*------------------TMS570_FLASH_FCORERRADD------------------*/
160/* field: COR_ERR_ADD - Correctable Error Address */
161#define TMS570_FLASH_FCORERRADD_COR_ERR_ADD(val) BSP_FLD32(val,3, 31)
162#define TMS570_FLASH_FCORERRADD_COR_ERR_ADD_GET(reg) BSP_FLD32GET(reg,3, 31)
163#define TMS570_FLASH_FCORERRADD_COR_ERR_ADD_SET(reg,val) BSP_FLD32SET(reg, val,3, 31)
164
165/* field: B_OFF - Byte Offset */
166#define TMS570_FLASH_FCORERRADD_B_OFF(val) BSP_FLD32(val,0, 2)
167#define TMS570_FLASH_FCORERRADD_B_OFF_GET(reg) BSP_FLD32GET(reg,0, 2)
168#define TMS570_FLASH_FCORERRADD_B_OFF_SET(reg,val) BSP_FLD32SET(reg, val,0, 2)
169
170
171/*------------------TMS570_FLASH_FCORERRPOS------------------*/
172/* field: BUS2 - Bus 2 Error */
173#define TMS570_FLASH_FCORERRPOS_BUS2 BSP_BIT32(9)
174
175/* field: TYPE - ErrorType */
176#define TMS570_FLASH_FCORERRPOS_TYPE BSP_BIT32(8)
177
178/* field: ERR_POS - The bit address of the single bit error */
179#define TMS570_FLASH_FCORERRPOS_ERR_POS(val) BSP_FLD32(val,0, 7)
180#define TMS570_FLASH_FCORERRPOS_ERR_POS_GET(reg) BSP_FLD32GET(reg,0, 7)
181#define TMS570_FLASH_FCORERRPOS_ERR_POS_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
182
183
184/*------------------TMS570_FLASH_FEDACSTATUS------------------*/
185/* field: Reserved - Read returns 0. Writes have no effect. */
186#define TMS570_FLASH_FEDACSTATUS_Reserved(val) BSP_FLD32(val,26, 31)
187#define TMS570_FLASH_FEDACSTATUS_Reserved_GET(reg) BSP_FLD32GET(reg,26, 31)
188#define TMS570_FLASH_FEDACSTATUS_Reserved_SET(reg,val) BSP_FLD32SET(reg, val,26, 31)
189
190/* field: FSM_DONE - Flash State Machine Done */
191#define TMS570_FLASH_FEDACSTATUS_FSM_DONE BSP_BIT32(24)
192
193/* field: COMB2_MAL_G - Bus 2 Compare Malfunction Flag. */
194#define TMS570_FLASH_FEDACSTATUS_COMB2_MAL_G BSP_BIT32(19)
195
196/* field: ECC_B2_MAL_ - Bus 2 ECC Malfunction Error Flag */
197#define TMS570_FLASH_FEDACSTATUS_ECC_B2_MAL_ BSP_BIT32(18)
198
199/* field: B2_UNC_ERR - Bus 2 uncorrectable error */
200#define TMS570_FLASH_FEDACSTATUS_B2_UNC_ERR BSP_BIT32(17)
201
202/* field: B2_COR_ERR - Bus 2 Correctable Error */
203#define TMS570_FLASH_FEDACSTATUS_B2_COR_ERR BSP_BIT32(16)
204
205/* field: D_UNC_ERR - Diagnostic Uncorrectable Error */
206#define TMS570_FLASH_FEDACSTATUS_D_UNC_ERR BSP_BIT32(12)
207
208/* field: ADD_TAG_ERR - Address Tag Register Error Flag */
209#define TMS570_FLASH_FEDACSTATUS_ADD_TAG_ERR BSP_BIT32(11)
210
211/* field: ADD_PAR_ERR - Address Parity Error Flag */
212#define TMS570_FLASH_FEDACSTATUS_ADD_PAR_ERR BSP_BIT32(10)
213
214/* field: B1_UNC_ERR - Bus 1 Uncorrectable Error Flag */
215#define TMS570_FLASH_FEDACSTATUS_B1_UNC_ERR BSP_BIT32(8)
216
217/* field: D_CORR_ERR - Diagnostic Correctable Error Status Flag */
218#define TMS570_FLASH_FEDACSTATUS_D_CORR_ERR BSP_BIT32(3)
219
220/* field: ERR_ONE_FLG - Error on One Fail Status Flag */
221#define TMS570_FLASH_FEDACSTATUS_ERR_ONE_FLG BSP_BIT32(2)
222
223/* field: ERR_ZERO__FLG - Error on Zero Fail Status Flag */
224#define TMS570_FLASH_FEDACSTATUS_ERR_ZERO__FLG BSP_BIT32(1)
225
226/* field: ERR_PRF_FLG - Error Profiling Status Flag */
227#define TMS570_FLASH_FEDACSTATUS_ERR_PRF_FLG BSP_BIT32(0)
228
229
230/*------------------TMS570_FLASH_FUNCERRADD------------------*/
231/* field: UNC_ERR_ADD - Un-correctable Error Address */
232#define TMS570_FLASH_FUNCERRADD_UNC_ERR_ADD(val) BSP_FLD32(val,3, 31)
233#define TMS570_FLASH_FUNCERRADD_UNC_ERR_ADD_GET(reg) BSP_FLD32GET(reg,3, 31)
234#define TMS570_FLASH_FUNCERRADD_UNC_ERR_ADD_SET(reg,val) BSP_FLD32SET(reg, val,3, 31)
235
236/* field: B_OFF - Byte offset */
237#define TMS570_FLASH_FUNCERRADD_B_OFF(val) BSP_FLD32(val,0, 2)
238#define TMS570_FLASH_FUNCERRADD_B_OFF_GET(reg) BSP_FLD32GET(reg,0, 2)
239#define TMS570_FLASH_FUNCERRADD_B_OFF_SET(reg,val) BSP_FLD32SET(reg, val,0, 2)
240
241
242/*-------------------TMS570_FLASH_FEDACSDIS-------------------*/
243/* field: BankID1_Inverse - The bank ID inverse bits are used with the bank ID bits to select the bank for which a sector */
244#define TMS570_FLASH_FEDACSDIS_BankID1_Inverse(val) BSP_FLD32(val,29, 31)
245#define TMS570_FLASH_FEDACSDIS_BankID1_Inverse_GET(reg) BSP_FLD32GET(reg,29, 31)
246#define TMS570_FLASH_FEDACSDIS_BankID1_Inverse_SET(reg,val) BSP_FLD32SET(reg, val,29, 31)
247
248/* field: SectorID1_inverse - The sector ID inverse bits are used with the sector ID bits to determine which sector is */
249#define TMS570_FLASH_FEDACSDIS_SectorID1_inverse(val) BSP_FLD32(val,24, 27)
250#define TMS570_FLASH_FEDACSDIS_SectorID1_inverse_GET(reg) BSP_FLD32GET(reg,24, 27)
251#define TMS570_FLASH_FEDACSDIS_SectorID1_inverse_SET(reg,val) BSP_FLD32SET(reg, val,24, 27)
252
253/* field: BankID1 - The bank ID bits are used with the bank ID inverse bits to select the bank for which a sector */
254#define TMS570_FLASH_FEDACSDIS_BankID1(val) BSP_FLD32(val,21, 23)
255#define TMS570_FLASH_FEDACSDIS_BankID1_GET(reg) BSP_FLD32GET(reg,21, 23)
256#define TMS570_FLASH_FEDACSDIS_BankID1_SET(reg,val) BSP_FLD32SET(reg, val,21, 23)
257
258/* field: SectorID1 - The sector ID bits are used with the sector ID inverse bits to determine which sector is */
259#define TMS570_FLASH_FEDACSDIS_SectorID1(val) BSP_FLD32(val,16, 19)
260#define TMS570_FLASH_FEDACSDIS_SectorID1_GET(reg) BSP_FLD32GET(reg,16, 19)
261#define TMS570_FLASH_FEDACSDIS_SectorID1_SET(reg,val) BSP_FLD32SET(reg, val,16, 19)
262
263/* field: BankID0_Inverse - The bank ID inverse bits are used with the bank ID bits to select the bank for which a sector */
264#define TMS570_FLASH_FEDACSDIS_BankID0_Inverse(val) BSP_FLD32(val,13, 15)
265#define TMS570_FLASH_FEDACSDIS_BankID0_Inverse_GET(reg) BSP_FLD32GET(reg,13, 15)
266#define TMS570_FLASH_FEDACSDIS_BankID0_Inverse_SET(reg,val) BSP_FLD32SET(reg, val,13, 15)
267
268/* field: SectorID0_inverse - The sector ID inverse bits are used with the sector ID bits to determine which sector is */
269#define TMS570_FLASH_FEDACSDIS_SectorID0_inverse(val) BSP_FLD32(val,8, 11)
270#define TMS570_FLASH_FEDACSDIS_SectorID0_inverse_GET(reg) BSP_FLD32GET(reg,8, 11)
271#define TMS570_FLASH_FEDACSDIS_SectorID0_inverse_SET(reg,val) BSP_FLD32SET(reg, val,8, 11)
272
273/* field: BankID0 - The bank ID bits are used with the bank ID inverse bits to select the bank for which a sector */
274#define TMS570_FLASH_FEDACSDIS_BankID0(val) BSP_FLD32(val,5, 7)
275#define TMS570_FLASH_FEDACSDIS_BankID0_GET(reg) BSP_FLD32GET(reg,5, 7)
276#define TMS570_FLASH_FEDACSDIS_BankID0_SET(reg,val) BSP_FLD32SET(reg, val,5, 7)
277
278/* field: SectorID0 - The sector ID bits are used with the sector ID inverse bits to determine which sector is */
279#define TMS570_FLASH_FEDACSDIS_SectorID0(val) BSP_FLD32(val,0, 3)
280#define TMS570_FLASH_FEDACSDIS_SectorID0_GET(reg) BSP_FLD32GET(reg,0, 3)
281#define TMS570_FLASH_FEDACSDIS_SectorID0_SET(reg,val) BSP_FLD32SET(reg, val,0, 3)
282
283
284/*------------------TMS570_FLASH_FPRIMADDTAG------------------*/
285/* field: PRIM_ADD_TAG - Primary Address Tag Register */
286#define TMS570_FLASH_FPRIMADDTAG_PRIM_ADD_TAG(val) BSP_FLD32(val,4, 31)
287#define TMS570_FLASH_FPRIMADDTAG_PRIM_ADD_TAG_GET(reg) BSP_FLD32GET(reg,4, 31)
288#define TMS570_FLASH_FPRIMADDTAG_PRIM_ADD_TAG_SET(reg,val) BSP_FLD32SET(reg, val,4, 31)
289
290/* field: 0 - Always 0000 */
291#define TMS570_FLASH_FPRIMADDTAG_0(val) BSP_FLD32(val,0, 3)
292#define TMS570_FLASH_FPRIMADDTAG_0_GET(reg) BSP_FLD32GET(reg,0, 3)
293#define TMS570_FLASH_FPRIMADDTAG_0_SET(reg,val) BSP_FLD32SET(reg, val,0, 3)
294
295
296/*------------------TMS570_FLASH_FDUPADDTAG------------------*/
297/* field: DUP_ADD_TAG - Primary Address Tag Register */
298#define TMS570_FLASH_FDUPADDTAG_DUP_ADD_TAG(val) BSP_FLD32(val,4, 31)
299#define TMS570_FLASH_FDUPADDTAG_DUP_ADD_TAG_GET(reg) BSP_FLD32GET(reg,4, 31)
300#define TMS570_FLASH_FDUPADDTAG_DUP_ADD_TAG_SET(reg,val) BSP_FLD32SET(reg, val,4, 31)
301
302
303/*--------------------TMS570_FLASH_FBPROT--------------------*/
304/* field: PROTL1DIS - PROTL1DIS: Level 1 Protection Disabled */
305#define TMS570_FLASH_FBPROT_PROTL1DIS BSP_BIT32(0)
306
307
308/*---------------------TMS570_FLASH_FBSE---------------------*/
309/* field: BSE - Bank Sector Enable */
310#define TMS570_FLASH_FBSE_BSE(val) BSP_FLD32(val,0, 15)
311#define TMS570_FLASH_FBSE_BSE_GET(reg) BSP_FLD32GET(reg,0, 15)
312#define TMS570_FLASH_FBSE_BSE_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
313
314
315/*--------------------TMS570_FLASH_FBBUSY--------------------*/
316/* field: BUSY - Bank Busy */
317#define TMS570_FLASH_FBBUSY_BUSY(val) BSP_FLD32(val,0, 7)
318#define TMS570_FLASH_FBBUSY_BUSY_GET(reg) BSP_FLD32GET(reg,0, 7)
319#define TMS570_FLASH_FBBUSY_BUSY_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
320
321
322/*---------------------TMS570_FLASH_FBAC---------------------*/
323/* field: OTPPROTDIS - OTP Sector Protection Disable. */
324#define TMS570_FLASH_FBAC_OTPPROTDIS(val) BSP_FLD32(val,16, 23)
325#define TMS570_FLASH_FBAC_OTPPROTDIS_GET(reg) BSP_FLD32GET(reg,16, 23)
326#define TMS570_FLASH_FBAC_OTPPROTDIS_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
327
328/* field: 15_8 - BAGP 0-FFh Bank Active Grace Period. */
329#define TMS570_FLASH_FBAC_15_8(val) BSP_FLD32(val,8, 15)
330#define TMS570_FLASH_FBAC_15_8_GET(reg) BSP_FLD32GET(reg,8, 15)
331#define TMS570_FLASH_FBAC_15_8_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
332
333/* field: VREADST - VREAD Setup. */
334#define TMS570_FLASH_FBAC_VREADST(val) BSP_FLD32(val,0, 7)
335#define TMS570_FLASH_FBAC_VREADST_GET(reg) BSP_FLD32GET(reg,0, 7)
336#define TMS570_FLASH_FBAC_VREADST_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
337
338
339/*------------------TMS570_FLASH_FBFALLBACK------------------*/
340/* field: BANKPWR7 - Bank 7 Fallback Power Mode */
341#define TMS570_FLASH_FBFALLBACK_BANKPWR7(val) BSP_FLD32(val,14, 15)
342#define TMS570_FLASH_FBFALLBACK_BANKPWR7_GET(reg) BSP_FLD32GET(reg,14, 15)
343#define TMS570_FLASH_FBFALLBACK_BANKPWR7_SET(reg,val) BSP_FLD32SET(reg, val,14, 15)
344
345/* field: BANKPWR1 - Bank 1 Fallback Power Mode */
346#define TMS570_FLASH_FBFALLBACK_BANKPWR1(val) BSP_FLD32(val,2, 3)
347#define TMS570_FLASH_FBFALLBACK_BANKPWR1_GET(reg) BSP_FLD32GET(reg,2, 3)
348#define TMS570_FLASH_FBFALLBACK_BANKPWR1_SET(reg,val) BSP_FLD32SET(reg, val,2, 3)
349
350/* field: BANKPWR0 - Bank 0 Fallback Power Mode */
351#define TMS570_FLASH_FBFALLBACK_BANKPWR0(val) BSP_FLD32(val,0, 1)
352#define TMS570_FLASH_FBFALLBACK_BANKPWR0_GET(reg) BSP_FLD32GET(reg,0, 1)
353#define TMS570_FLASH_FBFALLBACK_BANKPWR0_SET(reg,val) BSP_FLD32SET(reg, val,0, 1)
354
355
356/*--------------------TMS570_FLASH_FBPRDY--------------------*/
357/* field: BANKBUSY - Bank busy bits (one bit for each bank) */
358#define TMS570_FLASH_FBPRDY_BANKBUSY(val) BSP_FLD32(val,16, 23)
359#define TMS570_FLASH_FBPRDY_BANKBUSY_GET(reg) BSP_FLD32GET(reg,16, 23)
360#define TMS570_FLASH_FBPRDY_BANKBUSY_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
361
362/* field: PUMPRDY - Flash pump ready flag */
363#define TMS570_FLASH_FBPRDY_PUMPRDY BSP_BIT32(15)
364
365/* field: BANKRDY - Bank ready bits (one bit for each bank) */
366#define TMS570_FLASH_FBPRDY_BANKRDY(val) BSP_FLD32(val,0, 7)
367#define TMS570_FLASH_FBPRDY_BANKRDY_GET(reg) BSP_FLD32GET(reg,0, 7)
368#define TMS570_FLASH_FBPRDY_BANKRDY_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
369
370
371/*---------------------TMS570_FLASH_FPAC1---------------------*/
372/* field: PSLEEP - Pump Sleep. */
373#define TMS570_FLASH_FPAC1_PSLEEP(val) BSP_FLD32(val,16, 26)
374#define TMS570_FLASH_FPAC1_PSLEEP_GET(reg) BSP_FLD32GET(reg,16, 26)
375#define TMS570_FLASH_FPAC1_PSLEEP_SET(reg,val) BSP_FLD32SET(reg, val,16, 26)
376
377/* field: PUMPPWR - Flash Charge Pump Fallback Power Mode */
378#define TMS570_FLASH_FPAC1_PUMPPWR BSP_BIT32(0)
379
380
381/*---------------------TMS570_FLASH_FPAC2---------------------*/
382/* field: PAGP - Pump Active Grace Period */
383#define TMS570_FLASH_FPAC2_PAGP(val) BSP_FLD32(val,0, 15)
384#define TMS570_FLASH_FPAC2_PAGP_GET(reg) BSP_FLD32GET(reg,0, 15)
385#define TMS570_FLASH_FPAC2_PAGP_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
386
387
388/*---------------------TMS570_FLASH_FMAC---------------------*/
389/* field: BANK - Bank Enable. */
390#define TMS570_FLASH_FMAC_BANK(val) BSP_FLD32(val,0, 2)
391#define TMS570_FLASH_FMAC_BANK_GET(reg) BSP_FLD32GET(reg,0, 2)
392#define TMS570_FLASH_FMAC_BANK_SET(reg,val) BSP_FLD32SET(reg, val,0, 2)
393
394
395/*--------------------TMS570_FLASH_FMSTAT--------------------*/
396/* field: ILA - Illegal Address */
397#define TMS570_FLASH_FMSTAT_ILA BSP_BIT32(14)
398
399/* field: PGV - Program Verify */
400#define TMS570_FLASH_FMSTAT_PGV BSP_BIT32(12)
401
402/* field: EV - Erase Verify */
403#define TMS570_FLASH_FMSTAT_EV BSP_BIT32(10)
404
405/* field: BUSY - Busy */
406#define TMS570_FLASH_FMSTAT_BUSY BSP_BIT32(8)
407
408/* field: ERS - Erase Active */
409#define TMS570_FLASH_FMSTAT_ERS BSP_BIT32(7)
410
411/* field: PGM - Program Active */
412#define TMS570_FLASH_FMSTAT_PGM BSP_BIT32(6)
413
414/* field: INVDAT - Invalid Data */
415#define TMS570_FLASH_FMSTAT_INVDAT BSP_BIT32(5)
416
417/* field: CSTAT - Command Status */
418#define TMS570_FLASH_FMSTAT_CSTAT BSP_BIT32(4)
419
420/* field: VOLTSTAT - Core Voltage Status */
421#define TMS570_FLASH_FMSTAT_VOLTSTAT BSP_BIT32(3)
422
423/* field: ESUSP - Erase Suspended */
424#define TMS570_FLASH_FMSTAT_ESUSP BSP_BIT32(2)
425
426/* field: PSUSP - Program Suspended */
427#define TMS570_FLASH_FMSTAT_PSUSP BSP_BIT32(1)
428
429/* field: SLOCK - Sector Lock Status */
430#define TMS570_FLASH_FMSTAT_SLOCK BSP_BIT32(0)
431
432
433/*-------------------TMS570_FLASH_FEMUDMSW-------------------*/
434/* field: EMU_DMSW - EEPROM Emulation Most Significant Data Word */
435/* Whole 32 bits */
436
437/*-------------------TMS570_FLASH_FEMUDLSW-------------------*/
438/* field: EMU_DLSW - EEPROM Emulation Least Significant Data Word */
439/* Whole 32 bits */
440
441/*--------------------TMS570_FLASH_FEMUECC--------------------*/
442/* field: EMU_ECC - This register can be written by the CPU in any mode. */
443#define TMS570_FLASH_FEMUECC_EMU_ECC(val) BSP_FLD32(val,0, 7)
444#define TMS570_FLASH_FEMUECC_EMU_ECC_GET(reg) BSP_FLD32GET(reg,0, 7)
445#define TMS570_FLASH_FEMUECC_EMU_ECC_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
446
447
448/*-------------------TMS570_FLASH_FEMUADDR-------------------*/
449/* field: EMU_ADDR - EEPROM Emulation Address */
450#define TMS570_FLASH_FEMUADDR_EMU_ADDR(val) BSP_FLD32(val,3, 21)
451#define TMS570_FLASH_FEMUADDR_EMU_ADDR_GET(reg) BSP_FLD32GET(reg,3, 21)
452#define TMS570_FLASH_FEMUADDR_EMU_ADDR_SET(reg,val) BSP_FLD32SET(reg, val,3, 21)
453
454
455/*-------------------TMS570_FLASH_FDIAGCTRL-------------------*/
456/* field: DIAG_TRIG - Diagnostic Trigger */
457#define TMS570_FLASH_FDIAGCTRL_DIAG_TRIG BSP_BIT32(24)
458
459/* field: DIAG_EN_KEY - Diagnostic Enable Key */
460#define TMS570_FLASH_FDIAGCTRL_DIAG_EN_KEY(val) BSP_FLD32(val,16, 19)
461#define TMS570_FLASH_FDIAGCTRL_DIAG_EN_KEY_GET(reg) BSP_FLD32GET(reg,16, 19)
462#define TMS570_FLASH_FDIAGCTRL_DIAG_EN_KEY_SET(reg,val) BSP_FLD32SET(reg, val,16, 19)
463
464/* field: DIAG_ECC_SEL - Diagnostic SECDED Select */
465#define TMS570_FLASH_FDIAGCTRL_DIAG_ECC_SEL(val) BSP_FLD32(val,12, 14)
466#define TMS570_FLASH_FDIAGCTRL_DIAG_ECC_SEL_GET(reg) BSP_FLD32GET(reg,12, 14)
467#define TMS570_FLASH_FDIAGCTRL_DIAG_ECC_SEL_SET(reg,val) BSP_FLD32SET(reg, val,12, 14)
468
469
470/*-------------------TMS570_FLASH_FRAWDATAH-------------------*/
471/* field: RAW_DATA_ - Uncorrected Raw Data */
472/* Whole 32 bits */
473
474/*-------------------TMS570_FLASH_FRAWDATAL-------------------*/
475/* field: RAW_DATA_ - Uncorrected Raw Data. Same as FRAW_DATAH but stores lower 32 bits. */
476/* Whole 32 bits */
477
478/*--------------------TMS570_FLASH_FRAWECC--------------------*/
479/* field: PIPE_BUF - Error came from pipeline buffer hit */
480#define TMS570_FLASH_FRAWECC_PIPE_BUF BSP_BIT32(8)
481
482/* field: RAW_ECC - Uncorrected Raw ECC */
483#define TMS570_FLASH_FRAWECC_RAW_ECC(val) BSP_FLD32(val,0, 7)
484#define TMS570_FLASH_FRAWECC_RAW_ECC_GET(reg) BSP_FLD32GET(reg,0, 7)
485#define TMS570_FLASH_FRAWECC_RAW_ECC_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
486
487
488/*--------------------TMS570_FLASH_FPAROVR--------------------*/
489/* field: BNK_INV_PAR - Buffer Invert Parity */
490#define TMS570_FLASH_FPAROVR_BNK_INV_PAR BSP_BIT32(16)
491
492/* field: BUS_PAR_DIS - Disable Bus Parity */
493#define TMS570_FLASH_FPAROVR_BUS_PAR_DIS(val) BSP_FLD32(val,12, 15)
494#define TMS570_FLASH_FPAROVR_BUS_PAR_DIS_GET(reg) BSP_FLD32GET(reg,12, 15)
495#define TMS570_FLASH_FPAROVR_BUS_PAR_DIS_SET(reg,val) BSP_FLD32SET(reg, val,12, 15)
496
497/* field: PAR_OVR_KEY - When this value is 101, the selected ADD_INV_PAR and DAT_INV_PAR fields will become active. */
498#define TMS570_FLASH_FPAROVR_PAR_OVR_KEY(val) BSP_FLD32(val,9, 11)
499#define TMS570_FLASH_FPAROVR_PAR_OVR_KEY_GET(reg) BSP_FLD32GET(reg,9, 11)
500#define TMS570_FLASH_FPAROVR_PAR_OVR_KEY_SET(reg,val) BSP_FLD32SET(reg, val,9, 11)
501
502/* field: ADD_INV_PAR - Address Odd Parity */
503#define TMS570_FLASH_FPAROVR_ADD_INV_PAR BSP_BIT32(8)
504
505/* field: DAT_INV_PAR - Data Odd Parity */
506#define TMS570_FLASH_FPAROVR_DAT_INV_PAR(val) BSP_FLD32(val,0, 7)
507#define TMS570_FLASH_FPAROVR_DAT_INV_PAR_GET(reg) BSP_FLD32GET(reg,0, 7)
508#define TMS570_FLASH_FPAROVR_DAT_INV_PAR_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
509
510
511/*------------------TMS570_FLASH_FEDACSDIS2------------------*/
512/* field: BankID3_Inverse - The bank ID inverse bits are used with the bank ID bits to select the bank for which a sector */
513#define TMS570_FLASH_FEDACSDIS2_BankID3_Inverse(val) BSP_FLD32(val,29, 31)
514#define TMS570_FLASH_FEDACSDIS2_BankID3_Inverse_GET(reg) BSP_FLD32GET(reg,29, 31)
515#define TMS570_FLASH_FEDACSDIS2_BankID3_Inverse_SET(reg,val) BSP_FLD32SET(reg, val,29, 31)
516
517/* field: SectorID3_inverse - The sector ID inverse bits are used with the sector ID bits to determine which sector is disabled. */
518#define TMS570_FLASH_FEDACSDIS2_SectorID3_inverse(val) BSP_FLD32(val,24, 27)
519#define TMS570_FLASH_FEDACSDIS2_SectorID3_inverse_GET(reg) BSP_FLD32GET(reg,24, 27)
520#define TMS570_FLASH_FEDACSDIS2_SectorID3_inverse_SET(reg,val) BSP_FLD32SET(reg, val,24, 27)
521
522/* field: BankID3 - The bank ID bits are used with the bank ID inverse bits to select the bank for which a sector */
523#define TMS570_FLASH_FEDACSDIS2_BankID3(val) BSP_FLD32(val,21, 23)
524#define TMS570_FLASH_FEDACSDIS2_BankID3_GET(reg) BSP_FLD32GET(reg,21, 23)
525#define TMS570_FLASH_FEDACSDIS2_BankID3_SET(reg,val) BSP_FLD32SET(reg, val,21, 23)
526
527/* field: SectorID3 - The sector ID bits are used with the sector ID inverse bits to determine which sector is */
528#define TMS570_FLASH_FEDACSDIS2_SectorID3(val) BSP_FLD32(val,16, 19)
529#define TMS570_FLASH_FEDACSDIS2_SectorID3_GET(reg) BSP_FLD32GET(reg,16, 19)
530#define TMS570_FLASH_FEDACSDIS2_SectorID3_SET(reg,val) BSP_FLD32SET(reg, val,16, 19)
531
532/* field: BankID2_Inverse - is disabled. The only bank that supports sector disable is bank 7. */
533#define TMS570_FLASH_FEDACSDIS2_BankID2_Inverse(val) BSP_FLD32(val,13, 15)
534#define TMS570_FLASH_FEDACSDIS2_BankID2_Inverse_GET(reg) BSP_FLD32GET(reg,13, 15)
535#define TMS570_FLASH_FEDACSDIS2_BankID2_Inverse_SET(reg,val) BSP_FLD32SET(reg, val,13, 15)
536
537/* field: SectorID2_inverse - The sector ID inverse bits are used with the sector ID bits to determine which sector is */
538#define TMS570_FLASH_FEDACSDIS2_SectorID2_inverse(val) BSP_FLD32(val,8, 11)
539#define TMS570_FLASH_FEDACSDIS2_SectorID2_inverse_GET(reg) BSP_FLD32GET(reg,8, 11)
540#define TMS570_FLASH_FEDACSDIS2_SectorID2_inverse_SET(reg,val) BSP_FLD32SET(reg, val,8, 11)
541
542/* field: BankID2 - The bank ID bits are used with the bank ID inverse bits to select the bank for which a sector */
543#define TMS570_FLASH_FEDACSDIS2_BankID2(val) BSP_FLD32(val,5, 7)
544#define TMS570_FLASH_FEDACSDIS2_BankID2_GET(reg) BSP_FLD32GET(reg,5, 7)
545#define TMS570_FLASH_FEDACSDIS2_BankID2_SET(reg,val) BSP_FLD32SET(reg, val,5, 7)
546
547/* field: SectorID2 - The sector ID bits are used with the sector ID inverse bits to determine which sector is */
548#define TMS570_FLASH_FEDACSDIS2_SectorID2(val) BSP_FLD32(val,0, 3)
549#define TMS570_FLASH_FEDACSDIS2_SectorID2_GET(reg) BSP_FLD32GET(reg,0, 3)
550#define TMS570_FLASH_FEDACSDIS2_SectorID2_SET(reg,val) BSP_FLD32SET(reg, val,0, 3)
551
552
553/*-------------------TMS570_FLASH_FSMWRENA-------------------*/
554/* field: WR_ENA - Flash State Machine Write Enable */
555#define TMS570_FLASH_FSMWRENA_WR_ENA(val) BSP_FLD32(val,0, 2)
556#define TMS570_FLASH_FSMWRENA_WR_ENA_GET(reg) BSP_FLD32GET(reg,0, 2)
557#define TMS570_FLASH_FSMWRENA_WR_ENA_SET(reg,val) BSP_FLD32SET(reg, val,0, 2)
558
559
560/*-------------------TMS570_FLASH_FSMSECTOR-------------------*/
561/* field: SECT_ERASED - Sectors Erased */
562#define TMS570_FLASH_FSMSECTOR_SECT_ERASED(val) BSP_FLD32(val,16, 31)
563#define TMS570_FLASH_FSMSECTOR_SECT_ERASED_GET(reg) BSP_FLD32GET(reg,16, 31)
564#define TMS570_FLASH_FSMSECTOR_SECT_ERASED_SET(reg,val) BSP_FLD32SET(reg, val,16, 31)
565
566
567/*-----------------TMS570_FLASH_EEPROMCONFIG-----------------*/
568/* field: EWAIT - EEPROM Wait state Counter */
569#define TMS570_FLASH_EEPROMCONFIG_EWAIT(val) BSP_FLD32(val,16, 19)
570#define TMS570_FLASH_EEPROMCONFIG_EWAIT_GET(reg) BSP_FLD32GET(reg,16, 19)
571#define TMS570_FLASH_EEPROMCONFIG_EWAIT_SET(reg,val) BSP_FLD32SET(reg, val,16, 19)
572
573/* field: AUTOSUSP_EN - Auto Suspend Enable */
574#define TMS570_FLASH_EEPROMCONFIG_AUTOSUSP_EN BSP_BIT32(8)
575
576/* field: AUTOSTART_GRACE - Auto-suspend Startup Grace Period */
577#define TMS570_FLASH_EEPROMCONFIG_AUTOSTART_GRACE(val) BSP_FLD32(val,0, 7)
578#define TMS570_FLASH_EEPROMCONFIG_AUTOSTART_GRACE_GET(reg) BSP_FLD32GET(reg,0, 7)
579#define TMS570_FLASH_EEPROMCONFIG_AUTOSTART_GRACE_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
580
581
582/*--------------------TMS570_FLASH_EECTRL1--------------------*/
583/* field: EDACMODE - Error Correction Mode. */
584#define TMS570_FLASH_EECTRL1_EDACMODE(val) BSP_FLD32(val,16, 19)
585#define TMS570_FLASH_EECTRL1_EDACMODE_GET(reg) BSP_FLD32GET(reg,16, 19)
586#define TMS570_FLASH_EECTRL1_EDACMODE_SET(reg,val) BSP_FLD32SET(reg, val,16, 19)
587
588/* field: EE_EOFEN - EEPROM Emulation Event on a correctable One's Fail Enable bit */
589#define TMS570_FLASH_EECTRL1_EE_EOFEN BSP_BIT32(10)
590
591/* field: EE_EZFEN - EEPROM Emulation Event on a correctable Zero's Fail Enable bit */
592#define TMS570_FLASH_EECTRL1_EE_EZFEN BSP_BIT32(9)
593
594/* field: EE_EPEN - EEPROM Emulation Error Profiling Enable. */
595#define TMS570_FLASH_EECTRL1_EE_EPEN BSP_BIT32(8)
596
597
598/*--------------------TMS570_FLASH_EECTRL2--------------------*/
599/* field: EE_SEC_THRESHOLD - EEPROM Emulation Single Error Correction Threshold */
600#define TMS570_FLASH_EECTRL2_EE_SEC_THRESHOLD(val) BSP_FLD32(val,0, 15)
601#define TMS570_FLASH_EECTRL2_EE_SEC_THRESHOLD_GET(reg) BSP_FLD32GET(reg,0, 15)
602#define TMS570_FLASH_EECTRL2_EE_SEC_THRESHOLD_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
603
604
605/*------------------TMS570_FLASH_EECORERRCNT------------------*/
606/* field: EE_ERRCNT - Single Error Correction Count */
607#define TMS570_FLASH_EECORERRCNT_EE_ERRCNT(val) BSP_FLD32(val,0, 15)
608#define TMS570_FLASH_EECORERRCNT_EE_ERRCNT_GET(reg) BSP_FLD32GET(reg,0, 15)
609#define TMS570_FLASH_EECORERRCNT_EE_ERRCNT_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
610
611
612/*------------------TMS570_FLASH_EECORERRADD------------------*/
613/* field: COR_ERR_ADD - Correctable Error Address */
614#define TMS570_FLASH_EECORERRADD_COR_ERR_ADD(val) BSP_FLD32(val,3, 31)
615#define TMS570_FLASH_EECORERRADD_COR_ERR_ADD_GET(reg) BSP_FLD32GET(reg,3, 31)
616#define TMS570_FLASH_EECORERRADD_COR_ERR_ADD_SET(reg,val) BSP_FLD32SET(reg, val,3, 31)
617
618/* field: B_OFF - Byte offset */
619#define TMS570_FLASH_EECORERRADD_B_OFF(val) BSP_FLD32(val,0, 2)
620#define TMS570_FLASH_EECORERRADD_B_OFF_GET(reg) BSP_FLD32GET(reg,0, 2)
621#define TMS570_FLASH_EECORERRADD_B_OFF_SET(reg,val) BSP_FLD32SET(reg, val,0, 2)
622
623
624/*------------------TMS570_FLASH_EECORERRPOS------------------*/
625/* field: TYPE - ErrorType */
626#define TMS570_FLASH_EECORERRPOS_TYPE BSP_BIT32(8)
627
628/* field: EE_ERR_POS - The bit address of the single bit error */
629#define TMS570_FLASH_EECORERRPOS_EE_ERR_POS(val) BSP_FLD32(val,0, 7)
630#define TMS570_FLASH_EECORERRPOS_EE_ERR_POS_GET(reg) BSP_FLD32GET(reg,0, 7)
631#define TMS570_FLASH_EECORERRPOS_EE_ERR_POS_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
632
633
634/*-------------------TMS570_FLASH_EESTATUS-------------------*/
635/* field: EE_D_UNC_ERR - Diagnostic Mode Uncorrectable Error Status Flag */
636#define TMS570_FLASH_EESTATUS_EE_D_UNC_ERR BSP_BIT32(12)
637
638/* field: EE_UNC_ERR - EEPROM Emulation Uncorrectable Error Flag */
639#define TMS570_FLASH_EESTATUS_EE_UNC_ERR BSP_BIT32(8)
640
641/* field: EE_CMG - EEPROM Emulation Compare Malfunction Good */
642#define TMS570_FLASH_EESTATUS_EE_CMG BSP_BIT32(6)
643
644/* field: EE_CME - . */
645#define TMS570_FLASH_EESTATUS_EE_CME BSP_BIT32(4)
646
647/* field: EE_D_COR_ERR - Diagnostic Correctable Error Flag */
648#define TMS570_FLASH_EESTATUS_EE_D_COR_ERR BSP_BIT32(3)
649
650/* field: EE_ERR_ONE_FLG - Error on One Fail Error Flag */
651#define TMS570_FLASH_EESTATUS_EE_ERR_ONE_FLG BSP_BIT32(2)
652
653/* field: EE_ERR_ZERO_FLG - Error on Zero Fail Error Flag */
654#define TMS570_FLASH_EESTATUS_EE_ERR_ZERO_FLG BSP_BIT32(1)
655
656/* field: EE_ERR_PRF_FLG - Error Profiling Error Flag */
657#define TMS570_FLASH_EESTATUS_EE_ERR_PRF_FLG BSP_BIT32(0)
658
659
660/*------------------TMS570_FLASH_EEUNCERRADD------------------*/
661/* field: UNC_ERR_ADD - Un-correctable Error Address */
662#define TMS570_FLASH_EEUNCERRADD_UNC_ERR_ADD(val) BSP_FLD32(val,3, 31)
663#define TMS570_FLASH_EEUNCERRADD_UNC_ERR_ADD_GET(reg) BSP_FLD32GET(reg,3, 31)
664#define TMS570_FLASH_EEUNCERRADD_UNC_ERR_ADD_SET(reg,val) BSP_FLD32SET(reg, val,3, 31)
665
666/* field: B_OFF - Byte offset */
667#define TMS570_FLASH_EEUNCERRADD_B_OFF(val) BSP_FLD32(val,0, 2)
668#define TMS570_FLASH_EEUNCERRADD_B_OFF_GET(reg) BSP_FLD32GET(reg,0, 2)
669#define TMS570_FLASH_EEUNCERRADD_B_OFF_SET(reg,val) BSP_FLD32SET(reg, val,0, 2)
670
671
672/*-------------------TMS570_FLASH_FCFGBANK-------------------*/
673/* field: EE_BANK_WIDTH - Bank 7 width (144 bits wide) */
674#define TMS570_FLASH_FCFGBANK_EE_BANK_WIDTH(val) BSP_FLD32(val,20, 31)
675#define TMS570_FLASH_FCFGBANK_EE_BANK_WIDTH_GET(reg) BSP_FLD32GET(reg,20, 31)
676#define TMS570_FLASH_FCFGBANK_EE_BANK_WIDTH_SET(reg,val) BSP_FLD32SET(reg, val,20, 31)
677
678/* field: MAIN_BANK_WIDTH - Width of main flash banks (144 bits wide) */
679#define TMS570_FLASH_FCFGBANK_MAIN_BANK_WIDTH(val) BSP_FLD32(val,4, 15)
680#define TMS570_FLASH_FCFGBANK_MAIN_BANK_WIDTH_GET(reg) BSP_FLD32GET(reg,4, 15)
681#define TMS570_FLASH_FCFGBANK_MAIN_BANK_WIDTH_SET(reg,val) BSP_FLD32SET(reg, val,4, 15)
682
683
684
685#endif /* LIBBSP_ARM_TMS570_FLASH */
This header file provides utility macros for BSPs.
Definition: reg_flash.h:54