RTEMS 6.1-rc4
Loading...
Searching...
No Matches
Data Structures | Macros
reg_flash.h File Reference

This header file provides flash interfaces. More...

#include <bsp/utility.h>

Go to the source code of this file.

Data Structures

struct  tms570_flash_t
 

Macros

#define TMS570_FLASH_FRDCNTL_RWAIT(val)   BSP_FLD32(val,8, 11)
 
#define TMS570_FLASH_FRDCNTL_RWAIT_GET(reg)   BSP_FLD32GET(reg,8, 11)
 
#define TMS570_FLASH_FRDCNTL_RWAIT_SET(reg, val)   BSP_FLD32SET(reg, val,8, 11)
 
#define TMS570_FLASH_FRDCNTL_ASWSTEN   BSP_BIT32(4)
 
#define TMS570_FLASH_FRDCNTL_ENPIPE   BSP_BIT32(0)
 
#define TMS570_FLASH_FEDACTRL1_SUSP_IGNR   BSP_BIT32(24)
 
#define TMS570_FLASH_FEDACTRL1_EDACMODE(val)   BSP_FLD32(val,16, 19)
 
#define TMS570_FLASH_FEDACTRL1_EDACMODE_GET(reg)   BSP_FLD32GET(reg,16, 19)
 
#define TMS570_FLASH_FEDACTRL1_EDACMODE_SET(reg, val)   BSP_FLD32SET(reg, val,16, 19)
 
#define TMS570_FLASH_FEDACTRL1_EOFEN   BSP_BIT32(10)
 
#define TMS570_FLASH_FEDACTRL1_EZFEN   BSP_BIT32(9)
 
#define TMS570_FLASH_FEDACTRL1_EPEN   BSP_BIT32(8)
 
#define TMS570_FLASH_FEDACTRL1_EDACEN(val)   BSP_FLD32(val,0, 3)
 
#define TMS570_FLASH_FEDACTRL1_EDACEN_GET(reg)   BSP_FLD32GET(reg,0, 3)
 
#define TMS570_FLASH_FEDACTRL1_EDACEN_SET(reg, val)   BSP_FLD32SET(reg, val,0, 3)
 
#define TMS570_FLASH_FEDACTRL2_SEC_THRESHOLD(val)   BSP_FLD32(val,0, 15)
 
#define TMS570_FLASH_FEDACTRL2_SEC_THRESHOLD_GET(reg)   BSP_FLD32GET(reg,0, 15)
 
#define TMS570_FLASH_FEDACTRL2_SEC_THRESHOLD_SET(reg, val)   BSP_FLD32SET(reg, val,0, 15)
 
#define TMS570_FLASH_FCORERRCNT_FERRCNT(val)   BSP_FLD32(val,0, 15)
 
#define TMS570_FLASH_FCORERRCNT_FERRCNT_GET(reg)   BSP_FLD32GET(reg,0, 15)
 
#define TMS570_FLASH_FCORERRCNT_FERRCNT_SET(reg, val)   BSP_FLD32SET(reg, val,0, 15)
 
#define TMS570_FLASH_FCORERRADD_COR_ERR_ADD(val)   BSP_FLD32(val,3, 31)
 
#define TMS570_FLASH_FCORERRADD_COR_ERR_ADD_GET(reg)   BSP_FLD32GET(reg,3, 31)
 
#define TMS570_FLASH_FCORERRADD_COR_ERR_ADD_SET(reg, val)   BSP_FLD32SET(reg, val,3, 31)
 
#define TMS570_FLASH_FCORERRADD_B_OFF(val)   BSP_FLD32(val,0, 2)
 
#define TMS570_FLASH_FCORERRADD_B_OFF_GET(reg)   BSP_FLD32GET(reg,0, 2)
 
#define TMS570_FLASH_FCORERRADD_B_OFF_SET(reg, val)   BSP_FLD32SET(reg, val,0, 2)
 
#define TMS570_FLASH_FCORERRPOS_BUS2   BSP_BIT32(9)
 
#define TMS570_FLASH_FCORERRPOS_TYPE   BSP_BIT32(8)
 
#define TMS570_FLASH_FCORERRPOS_ERR_POS(val)   BSP_FLD32(val,0, 7)
 
#define TMS570_FLASH_FCORERRPOS_ERR_POS_GET(reg)   BSP_FLD32GET(reg,0, 7)
 
#define TMS570_FLASH_FCORERRPOS_ERR_POS_SET(reg, val)   BSP_FLD32SET(reg, val,0, 7)
 
#define TMS570_FLASH_FEDACSTATUS_Reserved(val)   BSP_FLD32(val,26, 31)
 
#define TMS570_FLASH_FEDACSTATUS_Reserved_GET(reg)   BSP_FLD32GET(reg,26, 31)
 
#define TMS570_FLASH_FEDACSTATUS_Reserved_SET(reg, val)   BSP_FLD32SET(reg, val,26, 31)
 
#define TMS570_FLASH_FEDACSTATUS_FSM_DONE   BSP_BIT32(24)
 
#define TMS570_FLASH_FEDACSTATUS_COMB2_MAL_G   BSP_BIT32(19)
 
#define TMS570_FLASH_FEDACSTATUS_ECC_B2_MAL_   BSP_BIT32(18)
 
#define TMS570_FLASH_FEDACSTATUS_B2_UNC_ERR   BSP_BIT32(17)
 
#define TMS570_FLASH_FEDACSTATUS_B2_COR_ERR   BSP_BIT32(16)
 
#define TMS570_FLASH_FEDACSTATUS_D_UNC_ERR   BSP_BIT32(12)
 
#define TMS570_FLASH_FEDACSTATUS_ADD_TAG_ERR   BSP_BIT32(11)
 
#define TMS570_FLASH_FEDACSTATUS_ADD_PAR_ERR   BSP_BIT32(10)
 
#define TMS570_FLASH_FEDACSTATUS_B1_UNC_ERR   BSP_BIT32(8)
 
#define TMS570_FLASH_FEDACSTATUS_D_CORR_ERR   BSP_BIT32(3)
 
#define TMS570_FLASH_FEDACSTATUS_ERR_ONE_FLG   BSP_BIT32(2)
 
#define TMS570_FLASH_FEDACSTATUS_ERR_ZERO__FLG   BSP_BIT32(1)
 
#define TMS570_FLASH_FEDACSTATUS_ERR_PRF_FLG   BSP_BIT32(0)
 
#define TMS570_FLASH_FUNCERRADD_UNC_ERR_ADD(val)   BSP_FLD32(val,3, 31)
 
#define TMS570_FLASH_FUNCERRADD_UNC_ERR_ADD_GET(reg)   BSP_FLD32GET(reg,3, 31)
 
#define TMS570_FLASH_FUNCERRADD_UNC_ERR_ADD_SET(reg, val)   BSP_FLD32SET(reg, val,3, 31)
 
#define TMS570_FLASH_FUNCERRADD_B_OFF(val)   BSP_FLD32(val,0, 2)
 
#define TMS570_FLASH_FUNCERRADD_B_OFF_GET(reg)   BSP_FLD32GET(reg,0, 2)
 
#define TMS570_FLASH_FUNCERRADD_B_OFF_SET(reg, val)   BSP_FLD32SET(reg, val,0, 2)
 
#define TMS570_FLASH_FEDACSDIS_BankID1_Inverse(val)   BSP_FLD32(val,29, 31)
 
#define TMS570_FLASH_FEDACSDIS_BankID1_Inverse_GET(reg)   BSP_FLD32GET(reg,29, 31)
 
#define TMS570_FLASH_FEDACSDIS_BankID1_Inverse_SET(reg, val)   BSP_FLD32SET(reg, val,29, 31)
 
#define TMS570_FLASH_FEDACSDIS_SectorID1_inverse(val)   BSP_FLD32(val,24, 27)
 
#define TMS570_FLASH_FEDACSDIS_SectorID1_inverse_GET(reg)   BSP_FLD32GET(reg,24, 27)
 
#define TMS570_FLASH_FEDACSDIS_SectorID1_inverse_SET(reg, val)   BSP_FLD32SET(reg, val,24, 27)
 
#define TMS570_FLASH_FEDACSDIS_BankID1(val)   BSP_FLD32(val,21, 23)
 
#define TMS570_FLASH_FEDACSDIS_BankID1_GET(reg)   BSP_FLD32GET(reg,21, 23)
 
#define TMS570_FLASH_FEDACSDIS_BankID1_SET(reg, val)   BSP_FLD32SET(reg, val,21, 23)
 
#define TMS570_FLASH_FEDACSDIS_SectorID1(val)   BSP_FLD32(val,16, 19)
 
#define TMS570_FLASH_FEDACSDIS_SectorID1_GET(reg)   BSP_FLD32GET(reg,16, 19)
 
#define TMS570_FLASH_FEDACSDIS_SectorID1_SET(reg, val)   BSP_FLD32SET(reg, val,16, 19)
 
#define TMS570_FLASH_FEDACSDIS_BankID0_Inverse(val)   BSP_FLD32(val,13, 15)
 
#define TMS570_FLASH_FEDACSDIS_BankID0_Inverse_GET(reg)   BSP_FLD32GET(reg,13, 15)
 
#define TMS570_FLASH_FEDACSDIS_BankID0_Inverse_SET(reg, val)   BSP_FLD32SET(reg, val,13, 15)
 
#define TMS570_FLASH_FEDACSDIS_SectorID0_inverse(val)   BSP_FLD32(val,8, 11)
 
#define TMS570_FLASH_FEDACSDIS_SectorID0_inverse_GET(reg)   BSP_FLD32GET(reg,8, 11)
 
#define TMS570_FLASH_FEDACSDIS_SectorID0_inverse_SET(reg, val)   BSP_FLD32SET(reg, val,8, 11)
 
#define TMS570_FLASH_FEDACSDIS_BankID0(val)   BSP_FLD32(val,5, 7)
 
#define TMS570_FLASH_FEDACSDIS_BankID0_GET(reg)   BSP_FLD32GET(reg,5, 7)
 
#define TMS570_FLASH_FEDACSDIS_BankID0_SET(reg, val)   BSP_FLD32SET(reg, val,5, 7)
 
#define TMS570_FLASH_FEDACSDIS_SectorID0(val)   BSP_FLD32(val,0, 3)
 
#define TMS570_FLASH_FEDACSDIS_SectorID0_GET(reg)   BSP_FLD32GET(reg,0, 3)
 
#define TMS570_FLASH_FEDACSDIS_SectorID0_SET(reg, val)   BSP_FLD32SET(reg, val,0, 3)
 
#define TMS570_FLASH_FPRIMADDTAG_PRIM_ADD_TAG(val)   BSP_FLD32(val,4, 31)
 
#define TMS570_FLASH_FPRIMADDTAG_PRIM_ADD_TAG_GET(reg)   BSP_FLD32GET(reg,4, 31)
 
#define TMS570_FLASH_FPRIMADDTAG_PRIM_ADD_TAG_SET(reg, val)   BSP_FLD32SET(reg, val,4, 31)
 
#define TMS570_FLASH_FPRIMADDTAG_0(val)   BSP_FLD32(val,0, 3)
 
#define TMS570_FLASH_FPRIMADDTAG_0_GET(reg)   BSP_FLD32GET(reg,0, 3)
 
#define TMS570_FLASH_FPRIMADDTAG_0_SET(reg, val)   BSP_FLD32SET(reg, val,0, 3)
 
#define TMS570_FLASH_FDUPADDTAG_DUP_ADD_TAG(val)   BSP_FLD32(val,4, 31)
 
#define TMS570_FLASH_FDUPADDTAG_DUP_ADD_TAG_GET(reg)   BSP_FLD32GET(reg,4, 31)
 
#define TMS570_FLASH_FDUPADDTAG_DUP_ADD_TAG_SET(reg, val)   BSP_FLD32SET(reg, val,4, 31)
 
#define TMS570_FLASH_FBPROT_PROTL1DIS   BSP_BIT32(0)
 
#define TMS570_FLASH_FBSE_BSE(val)   BSP_FLD32(val,0, 15)
 
#define TMS570_FLASH_FBSE_BSE_GET(reg)   BSP_FLD32GET(reg,0, 15)
 
#define TMS570_FLASH_FBSE_BSE_SET(reg, val)   BSP_FLD32SET(reg, val,0, 15)
 
#define TMS570_FLASH_FBBUSY_BUSY(val)   BSP_FLD32(val,0, 7)
 
#define TMS570_FLASH_FBBUSY_BUSY_GET(reg)   BSP_FLD32GET(reg,0, 7)
 
#define TMS570_FLASH_FBBUSY_BUSY_SET(reg, val)   BSP_FLD32SET(reg, val,0, 7)
 
#define TMS570_FLASH_FBAC_OTPPROTDIS(val)   BSP_FLD32(val,16, 23)
 
#define TMS570_FLASH_FBAC_OTPPROTDIS_GET(reg)   BSP_FLD32GET(reg,16, 23)
 
#define TMS570_FLASH_FBAC_OTPPROTDIS_SET(reg, val)   BSP_FLD32SET(reg, val,16, 23)
 
#define TMS570_FLASH_FBAC_15_8(val)   BSP_FLD32(val,8, 15)
 
#define TMS570_FLASH_FBAC_15_8_GET(reg)   BSP_FLD32GET(reg,8, 15)
 
#define TMS570_FLASH_FBAC_15_8_SET(reg, val)   BSP_FLD32SET(reg, val,8, 15)
 
#define TMS570_FLASH_FBAC_VREADST(val)   BSP_FLD32(val,0, 7)
 
#define TMS570_FLASH_FBAC_VREADST_GET(reg)   BSP_FLD32GET(reg,0, 7)
 
#define TMS570_FLASH_FBAC_VREADST_SET(reg, val)   BSP_FLD32SET(reg, val,0, 7)
 
#define TMS570_FLASH_FBFALLBACK_BANKPWR7(val)   BSP_FLD32(val,14, 15)
 
#define TMS570_FLASH_FBFALLBACK_BANKPWR7_GET(reg)   BSP_FLD32GET(reg,14, 15)
 
#define TMS570_FLASH_FBFALLBACK_BANKPWR7_SET(reg, val)   BSP_FLD32SET(reg, val,14, 15)
 
#define TMS570_FLASH_FBFALLBACK_BANKPWR1(val)   BSP_FLD32(val,2, 3)
 
#define TMS570_FLASH_FBFALLBACK_BANKPWR1_GET(reg)   BSP_FLD32GET(reg,2, 3)
 
#define TMS570_FLASH_FBFALLBACK_BANKPWR1_SET(reg, val)   BSP_FLD32SET(reg, val,2, 3)
 
#define TMS570_FLASH_FBFALLBACK_BANKPWR0(val)   BSP_FLD32(val,0, 1)
 
#define TMS570_FLASH_FBFALLBACK_BANKPWR0_GET(reg)   BSP_FLD32GET(reg,0, 1)
 
#define TMS570_FLASH_FBFALLBACK_BANKPWR0_SET(reg, val)   BSP_FLD32SET(reg, val,0, 1)
 
#define TMS570_FLASH_FBPRDY_BANKBUSY(val)   BSP_FLD32(val,16, 23)
 
#define TMS570_FLASH_FBPRDY_BANKBUSY_GET(reg)   BSP_FLD32GET(reg,16, 23)
 
#define TMS570_FLASH_FBPRDY_BANKBUSY_SET(reg, val)   BSP_FLD32SET(reg, val,16, 23)
 
#define TMS570_FLASH_FBPRDY_PUMPRDY   BSP_BIT32(15)
 
#define TMS570_FLASH_FBPRDY_BANKRDY(val)   BSP_FLD32(val,0, 7)
 
#define TMS570_FLASH_FBPRDY_BANKRDY_GET(reg)   BSP_FLD32GET(reg,0, 7)
 
#define TMS570_FLASH_FBPRDY_BANKRDY_SET(reg, val)   BSP_FLD32SET(reg, val,0, 7)
 
#define TMS570_FLASH_FPAC1_PSLEEP(val)   BSP_FLD32(val,16, 26)
 
#define TMS570_FLASH_FPAC1_PSLEEP_GET(reg)   BSP_FLD32GET(reg,16, 26)
 
#define TMS570_FLASH_FPAC1_PSLEEP_SET(reg, val)   BSP_FLD32SET(reg, val,16, 26)
 
#define TMS570_FLASH_FPAC1_PUMPPWR   BSP_BIT32(0)
 
#define TMS570_FLASH_FPAC2_PAGP(val)   BSP_FLD32(val,0, 15)
 
#define TMS570_FLASH_FPAC2_PAGP_GET(reg)   BSP_FLD32GET(reg,0, 15)
 
#define TMS570_FLASH_FPAC2_PAGP_SET(reg, val)   BSP_FLD32SET(reg, val,0, 15)
 
#define TMS570_FLASH_FMAC_BANK(val)   BSP_FLD32(val,0, 2)
 
#define TMS570_FLASH_FMAC_BANK_GET(reg)   BSP_FLD32GET(reg,0, 2)
 
#define TMS570_FLASH_FMAC_BANK_SET(reg, val)   BSP_FLD32SET(reg, val,0, 2)
 
#define TMS570_FLASH_FMSTAT_ILA   BSP_BIT32(14)
 
#define TMS570_FLASH_FMSTAT_PGV   BSP_BIT32(12)
 
#define TMS570_FLASH_FMSTAT_EV   BSP_BIT32(10)
 
#define TMS570_FLASH_FMSTAT_BUSY   BSP_BIT32(8)
 
#define TMS570_FLASH_FMSTAT_ERS   BSP_BIT32(7)
 
#define TMS570_FLASH_FMSTAT_PGM   BSP_BIT32(6)
 
#define TMS570_FLASH_FMSTAT_INVDAT   BSP_BIT32(5)
 
#define TMS570_FLASH_FMSTAT_CSTAT   BSP_BIT32(4)
 
#define TMS570_FLASH_FMSTAT_VOLTSTAT   BSP_BIT32(3)
 
#define TMS570_FLASH_FMSTAT_ESUSP   BSP_BIT32(2)
 
#define TMS570_FLASH_FMSTAT_PSUSP   BSP_BIT32(1)
 
#define TMS570_FLASH_FMSTAT_SLOCK   BSP_BIT32(0)
 
#define TMS570_FLASH_FEMUECC_EMU_ECC(val)   BSP_FLD32(val,0, 7)
 
#define TMS570_FLASH_FEMUECC_EMU_ECC_GET(reg)   BSP_FLD32GET(reg,0, 7)
 
#define TMS570_FLASH_FEMUECC_EMU_ECC_SET(reg, val)   BSP_FLD32SET(reg, val,0, 7)
 
#define TMS570_FLASH_FEMUADDR_EMU_ADDR(val)   BSP_FLD32(val,3, 21)
 
#define TMS570_FLASH_FEMUADDR_EMU_ADDR_GET(reg)   BSP_FLD32GET(reg,3, 21)
 
#define TMS570_FLASH_FEMUADDR_EMU_ADDR_SET(reg, val)   BSP_FLD32SET(reg, val,3, 21)
 
#define TMS570_FLASH_FDIAGCTRL_DIAG_TRIG   BSP_BIT32(24)
 
#define TMS570_FLASH_FDIAGCTRL_DIAG_EN_KEY(val)   BSP_FLD32(val,16, 19)
 
#define TMS570_FLASH_FDIAGCTRL_DIAG_EN_KEY_GET(reg)   BSP_FLD32GET(reg,16, 19)
 
#define TMS570_FLASH_FDIAGCTRL_DIAG_EN_KEY_SET(reg, val)   BSP_FLD32SET(reg, val,16, 19)
 
#define TMS570_FLASH_FDIAGCTRL_DIAG_ECC_SEL(val)   BSP_FLD32(val,12, 14)
 
#define TMS570_FLASH_FDIAGCTRL_DIAG_ECC_SEL_GET(reg)   BSP_FLD32GET(reg,12, 14)
 
#define TMS570_FLASH_FDIAGCTRL_DIAG_ECC_SEL_SET(reg, val)   BSP_FLD32SET(reg, val,12, 14)
 
#define TMS570_FLASH_FRAWECC_PIPE_BUF   BSP_BIT32(8)
 
#define TMS570_FLASH_FRAWECC_RAW_ECC(val)   BSP_FLD32(val,0, 7)
 
#define TMS570_FLASH_FRAWECC_RAW_ECC_GET(reg)   BSP_FLD32GET(reg,0, 7)
 
#define TMS570_FLASH_FRAWECC_RAW_ECC_SET(reg, val)   BSP_FLD32SET(reg, val,0, 7)
 
#define TMS570_FLASH_FPAROVR_BNK_INV_PAR   BSP_BIT32(16)
 
#define TMS570_FLASH_FPAROVR_BUS_PAR_DIS(val)   BSP_FLD32(val,12, 15)
 
#define TMS570_FLASH_FPAROVR_BUS_PAR_DIS_GET(reg)   BSP_FLD32GET(reg,12, 15)
 
#define TMS570_FLASH_FPAROVR_BUS_PAR_DIS_SET(reg, val)   BSP_FLD32SET(reg, val,12, 15)
 
#define TMS570_FLASH_FPAROVR_PAR_OVR_KEY(val)   BSP_FLD32(val,9, 11)
 
#define TMS570_FLASH_FPAROVR_PAR_OVR_KEY_GET(reg)   BSP_FLD32GET(reg,9, 11)
 
#define TMS570_FLASH_FPAROVR_PAR_OVR_KEY_SET(reg, val)   BSP_FLD32SET(reg, val,9, 11)
 
#define TMS570_FLASH_FPAROVR_ADD_INV_PAR   BSP_BIT32(8)
 
#define TMS570_FLASH_FPAROVR_DAT_INV_PAR(val)   BSP_FLD32(val,0, 7)
 
#define TMS570_FLASH_FPAROVR_DAT_INV_PAR_GET(reg)   BSP_FLD32GET(reg,0, 7)
 
#define TMS570_FLASH_FPAROVR_DAT_INV_PAR_SET(reg, val)   BSP_FLD32SET(reg, val,0, 7)
 
#define TMS570_FLASH_FEDACSDIS2_BankID3_Inverse(val)   BSP_FLD32(val,29, 31)
 
#define TMS570_FLASH_FEDACSDIS2_BankID3_Inverse_GET(reg)   BSP_FLD32GET(reg,29, 31)
 
#define TMS570_FLASH_FEDACSDIS2_BankID3_Inverse_SET(reg, val)   BSP_FLD32SET(reg, val,29, 31)
 
#define TMS570_FLASH_FEDACSDIS2_SectorID3_inverse(val)   BSP_FLD32(val,24, 27)
 
#define TMS570_FLASH_FEDACSDIS2_SectorID3_inverse_GET(reg)   BSP_FLD32GET(reg,24, 27)
 
#define TMS570_FLASH_FEDACSDIS2_SectorID3_inverse_SET(reg, val)   BSP_FLD32SET(reg, val,24, 27)
 
#define TMS570_FLASH_FEDACSDIS2_BankID3(val)   BSP_FLD32(val,21, 23)
 
#define TMS570_FLASH_FEDACSDIS2_BankID3_GET(reg)   BSP_FLD32GET(reg,21, 23)
 
#define TMS570_FLASH_FEDACSDIS2_BankID3_SET(reg, val)   BSP_FLD32SET(reg, val,21, 23)
 
#define TMS570_FLASH_FEDACSDIS2_SectorID3(val)   BSP_FLD32(val,16, 19)
 
#define TMS570_FLASH_FEDACSDIS2_SectorID3_GET(reg)   BSP_FLD32GET(reg,16, 19)
 
#define TMS570_FLASH_FEDACSDIS2_SectorID3_SET(reg, val)   BSP_FLD32SET(reg, val,16, 19)
 
#define TMS570_FLASH_FEDACSDIS2_BankID2_Inverse(val)   BSP_FLD32(val,13, 15)
 
#define TMS570_FLASH_FEDACSDIS2_BankID2_Inverse_GET(reg)   BSP_FLD32GET(reg,13, 15)
 
#define TMS570_FLASH_FEDACSDIS2_BankID2_Inverse_SET(reg, val)   BSP_FLD32SET(reg, val,13, 15)
 
#define TMS570_FLASH_FEDACSDIS2_SectorID2_inverse(val)   BSP_FLD32(val,8, 11)
 
#define TMS570_FLASH_FEDACSDIS2_SectorID2_inverse_GET(reg)   BSP_FLD32GET(reg,8, 11)
 
#define TMS570_FLASH_FEDACSDIS2_SectorID2_inverse_SET(reg, val)   BSP_FLD32SET(reg, val,8, 11)
 
#define TMS570_FLASH_FEDACSDIS2_BankID2(val)   BSP_FLD32(val,5, 7)
 
#define TMS570_FLASH_FEDACSDIS2_BankID2_GET(reg)   BSP_FLD32GET(reg,5, 7)
 
#define TMS570_FLASH_FEDACSDIS2_BankID2_SET(reg, val)   BSP_FLD32SET(reg, val,5, 7)
 
#define TMS570_FLASH_FEDACSDIS2_SectorID2(val)   BSP_FLD32(val,0, 3)
 
#define TMS570_FLASH_FEDACSDIS2_SectorID2_GET(reg)   BSP_FLD32GET(reg,0, 3)
 
#define TMS570_FLASH_FEDACSDIS2_SectorID2_SET(reg, val)   BSP_FLD32SET(reg, val,0, 3)
 
#define TMS570_FLASH_FSMWRENA_WR_ENA(val)   BSP_FLD32(val,0, 2)
 
#define TMS570_FLASH_FSMWRENA_WR_ENA_GET(reg)   BSP_FLD32GET(reg,0, 2)
 
#define TMS570_FLASH_FSMWRENA_WR_ENA_SET(reg, val)   BSP_FLD32SET(reg, val,0, 2)
 
#define TMS570_FLASH_FSMSECTOR_SECT_ERASED(val)   BSP_FLD32(val,16, 31)
 
#define TMS570_FLASH_FSMSECTOR_SECT_ERASED_GET(reg)   BSP_FLD32GET(reg,16, 31)
 
#define TMS570_FLASH_FSMSECTOR_SECT_ERASED_SET(reg, val)   BSP_FLD32SET(reg, val,16, 31)
 
#define TMS570_FLASH_EEPROMCONFIG_EWAIT(val)   BSP_FLD32(val,16, 19)
 
#define TMS570_FLASH_EEPROMCONFIG_EWAIT_GET(reg)   BSP_FLD32GET(reg,16, 19)
 
#define TMS570_FLASH_EEPROMCONFIG_EWAIT_SET(reg, val)   BSP_FLD32SET(reg, val,16, 19)
 
#define TMS570_FLASH_EEPROMCONFIG_AUTOSUSP_EN   BSP_BIT32(8)
 
#define TMS570_FLASH_EEPROMCONFIG_AUTOSTART_GRACE(val)   BSP_FLD32(val,0, 7)
 
#define TMS570_FLASH_EEPROMCONFIG_AUTOSTART_GRACE_GET(reg)   BSP_FLD32GET(reg,0, 7)
 
#define TMS570_FLASH_EEPROMCONFIG_AUTOSTART_GRACE_SET(reg, val)   BSP_FLD32SET(reg, val,0, 7)
 
#define TMS570_FLASH_EECTRL1_EDACMODE(val)   BSP_FLD32(val,16, 19)
 
#define TMS570_FLASH_EECTRL1_EDACMODE_GET(reg)   BSP_FLD32GET(reg,16, 19)
 
#define TMS570_FLASH_EECTRL1_EDACMODE_SET(reg, val)   BSP_FLD32SET(reg, val,16, 19)
 
#define TMS570_FLASH_EECTRL1_EE_EOFEN   BSP_BIT32(10)
 
#define TMS570_FLASH_EECTRL1_EE_EZFEN   BSP_BIT32(9)
 
#define TMS570_FLASH_EECTRL1_EE_EPEN   BSP_BIT32(8)
 
#define TMS570_FLASH_EECTRL2_EE_SEC_THRESHOLD(val)   BSP_FLD32(val,0, 15)
 
#define TMS570_FLASH_EECTRL2_EE_SEC_THRESHOLD_GET(reg)   BSP_FLD32GET(reg,0, 15)
 
#define TMS570_FLASH_EECTRL2_EE_SEC_THRESHOLD_SET(reg, val)   BSP_FLD32SET(reg, val,0, 15)
 
#define TMS570_FLASH_EECORERRCNT_EE_ERRCNT(val)   BSP_FLD32(val,0, 15)
 
#define TMS570_FLASH_EECORERRCNT_EE_ERRCNT_GET(reg)   BSP_FLD32GET(reg,0, 15)
 
#define TMS570_FLASH_EECORERRCNT_EE_ERRCNT_SET(reg, val)   BSP_FLD32SET(reg, val,0, 15)
 
#define TMS570_FLASH_EECORERRADD_COR_ERR_ADD(val)   BSP_FLD32(val,3, 31)
 
#define TMS570_FLASH_EECORERRADD_COR_ERR_ADD_GET(reg)   BSP_FLD32GET(reg,3, 31)
 
#define TMS570_FLASH_EECORERRADD_COR_ERR_ADD_SET(reg, val)   BSP_FLD32SET(reg, val,3, 31)
 
#define TMS570_FLASH_EECORERRADD_B_OFF(val)   BSP_FLD32(val,0, 2)
 
#define TMS570_FLASH_EECORERRADD_B_OFF_GET(reg)   BSP_FLD32GET(reg,0, 2)
 
#define TMS570_FLASH_EECORERRADD_B_OFF_SET(reg, val)   BSP_FLD32SET(reg, val,0, 2)
 
#define TMS570_FLASH_EECORERRPOS_TYPE   BSP_BIT32(8)
 
#define TMS570_FLASH_EECORERRPOS_EE_ERR_POS(val)   BSP_FLD32(val,0, 7)
 
#define TMS570_FLASH_EECORERRPOS_EE_ERR_POS_GET(reg)   BSP_FLD32GET(reg,0, 7)
 
#define TMS570_FLASH_EECORERRPOS_EE_ERR_POS_SET(reg, val)   BSP_FLD32SET(reg, val,0, 7)
 
#define TMS570_FLASH_EESTATUS_EE_D_UNC_ERR   BSP_BIT32(12)
 
#define TMS570_FLASH_EESTATUS_EE_UNC_ERR   BSP_BIT32(8)
 
#define TMS570_FLASH_EESTATUS_EE_CMG   BSP_BIT32(6)
 
#define TMS570_FLASH_EESTATUS_EE_CME   BSP_BIT32(4)
 
#define TMS570_FLASH_EESTATUS_EE_D_COR_ERR   BSP_BIT32(3)
 
#define TMS570_FLASH_EESTATUS_EE_ERR_ONE_FLG   BSP_BIT32(2)
 
#define TMS570_FLASH_EESTATUS_EE_ERR_ZERO_FLG   BSP_BIT32(1)
 
#define TMS570_FLASH_EESTATUS_EE_ERR_PRF_FLG   BSP_BIT32(0)
 
#define TMS570_FLASH_EEUNCERRADD_UNC_ERR_ADD(val)   BSP_FLD32(val,3, 31)
 
#define TMS570_FLASH_EEUNCERRADD_UNC_ERR_ADD_GET(reg)   BSP_FLD32GET(reg,3, 31)
 
#define TMS570_FLASH_EEUNCERRADD_UNC_ERR_ADD_SET(reg, val)   BSP_FLD32SET(reg, val,3, 31)
 
#define TMS570_FLASH_EEUNCERRADD_B_OFF(val)   BSP_FLD32(val,0, 2)
 
#define TMS570_FLASH_EEUNCERRADD_B_OFF_GET(reg)   BSP_FLD32GET(reg,0, 2)
 
#define TMS570_FLASH_EEUNCERRADD_B_OFF_SET(reg, val)   BSP_FLD32SET(reg, val,0, 2)
 
#define TMS570_FLASH_FCFGBANK_EE_BANK_WIDTH(val)   BSP_FLD32(val,20, 31)
 
#define TMS570_FLASH_FCFGBANK_EE_BANK_WIDTH_GET(reg)   BSP_FLD32GET(reg,20, 31)
 
#define TMS570_FLASH_FCFGBANK_EE_BANK_WIDTH_SET(reg, val)   BSP_FLD32SET(reg, val,20, 31)
 
#define TMS570_FLASH_FCFGBANK_MAIN_BANK_WIDTH(val)   BSP_FLD32(val,4, 15)
 
#define TMS570_FLASH_FCFGBANK_MAIN_BANK_WIDTH_GET(reg)   BSP_FLD32GET(reg,4, 15)
 
#define TMS570_FLASH_FCFGBANK_MAIN_BANK_WIDTH_SET(reg, val)   BSP_FLD32SET(reg, val,4, 15)
 

Detailed Description

This header file provides flash interfaces.