39 #ifndef LIBBSP_ARM_TMS570_CRC 40 #define LIBBSP_ARM_TMS570_CRC 46 uint8_t reserved1 [4];
48 uint8_t reserved2 [4];
50 uint8_t reserved3 [4];
52 uint8_t reserved4 [4];
54 uint8_t reserved5 [4];
56 uint8_t reserved6 [4];
57 uint32_t INT_OFFS_REG;
58 uint8_t reserved7 [4];
60 uint8_t reserved8 [4];
66 uint8_t reserved9 [12];
67 uint32_t PSA_SIGREGL1;
68 uint32_t PSA_SIGREGH1;
71 uint32_t PSA_SECSIGREGL1;
72 uint32_t PSA_SECSIGREGH1;
73 uint32_t RAW_DATAREGL1;
74 uint32_t RAW_DATAREGH1;
80 uint8_t reserved10 [12];
81 uint32_t PSA_SIGREGL2;
82 uint32_t PSA_SIGREGH2;
85 uint32_t PSA_SECSIGREGL2;
86 uint32_t PSA_SECSIGREGH2;
87 uint32_t RAW_DATAREGL2;
88 uint32_t RAW_DATAREGH2;
89 uint8_t reserved11 [128];
96 #define TMS570_CRC_CTRL0_CH2_PSA_SWREST BSP_BIT32(8) 99 #define TMS570_CRC_CTRL0_CH1_PSA_SWREST BSP_BIT32(0) 104 #define TMS570_CRC_CTRL1_PWDN BSP_BIT32(0) 109 #define TMS570_CRC_CTRL2_CH2_MODE(val) BSP_FLD32(val,8, 9) 110 #define TMS570_CRC_CTRL2_CH2_MODE_GET(reg) BSP_FLD32GET(reg,8, 9) 111 #define TMS570_CRC_CTRL2_CH2_MODE_SET(reg,val) BSP_FLD32SET(reg, val,8, 9) 114 #define TMS570_CRC_CTRL2_CH1_TRACEEN BSP_BIT32(4) 117 #define TMS570_CRC_CTRL2_CH1_MODE(val) BSP_FLD32(val,0, 1) 118 #define TMS570_CRC_CTRL2_CH1_MODE_GET(reg) BSP_FLD32GET(reg,0, 1) 119 #define TMS570_CRC_CTRL2_CH1_MODE_SET(reg,val) BSP_FLD32SET(reg, val,0, 1) 124 #define TMS570_CRC_INTS_CH2_TIMEOUTENS BSP_BIT32(12) 127 #define TMS570_CRC_INTS_CH2_UNDERENS BSP_BIT32(11) 130 #define TMS570_CRC_INTS_CH2_OVERENS BSP_BIT32(10) 133 #define TMS570_CRC_INTS_CH2_CRCFAILENS BSP_BIT32(9) 136 #define TMS570_CRC_INTS_CH2_CCITENS BSP_BIT32(8) 139 #define TMS570_CRC_INTS_CH1_TIMEOUTENS BSP_BIT32(4) 142 #define TMS570_CRC_INTS_CH1_UNDERENS BSP_BIT32(3) 145 #define TMS570_CRC_INTS_CH1_OVERENS BSP_BIT32(2) 148 #define TMS570_CRC_INTS_CH1_CRCFAILENS BSP_BIT32(1) 151 #define TMS570_CRC_INTS_CH1_CCITENS BSP_BIT32(0) 156 #define TMS570_CRC_INTR_CH2_TIMEOUTENR BSP_BIT32(12) 159 #define TMS570_CRC_INTR_CH2_UNDERENR BSP_BIT32(11) 162 #define TMS570_CRC_INTR_CH2_OVERENR BSP_BIT32(10) 165 #define TMS570_CRC_INTR_CH2_CRCFAILENR BSP_BIT32(9) 168 #define TMS570_CRC_INTR_CH2_CCITENR BSP_BIT32(8) 171 #define TMS570_CRC_INTR_CH1_TIMEOUTENR BSP_BIT32(4) 174 #define TMS570_CRC_INTR_CH1_UNDERENR BSP_BIT32(3) 177 #define TMS570_CRC_INTR_CH1_OVERENR BSP_BIT32(2) 180 #define TMS570_CRC_INTR_CH1_CRCFAILENR BSP_BIT32(1) 183 #define TMS570_CRC_INTR_CH1_CCITENR BSP_BIT32(0) 188 #define TMS570_CRC_STATUS_CH2_TIMEOUT BSP_BIT32(12) 191 #define TMS570_CRC_STATUS_CH2_UNDER BSP_BIT32(11) 194 #define TMS570_CRC_STATUS_CH2_OVER BSP_BIT32(10) 197 #define TMS570_CRC_STATUS_CH2_CRCFAIL BSP_BIT32(9) 200 #define TMS570_CRC_STATUS_CH2_CCIT BSP_BIT32(8) 203 #define TMS570_CRC_STATUS_CH1_TIMEOUT BSP_BIT32(4) 206 #define TMS570_CRC_STATUS_CH1_UNDER BSP_BIT32(3) 209 #define TMS570_CRC_STATUS_CH1_OVER BSP_BIT32(2) 212 #define TMS570_CRC_STATUS_CH1_CRCFAIL BSP_BIT32(1) 215 #define TMS570_CRC_STATUS_CH1_CCIT BSP_BIT32(0) 220 #define TMS570_CRC_INT_OFFS_REG_OFSTREG(val) BSP_FLD32(val,0, 7) 221 #define TMS570_CRC_INT_OFFS_REG_OFSTREG_GET(reg) BSP_FLD32GET(reg,0, 7) 222 #define TMS570_CRC_INT_OFFS_REG_OFSTREG_SET(reg,val) BSP_FLD32SET(reg, val,0, 7) 227 #define TMS570_CRC_BUSY_CH2_BUSY BSP_BIT32(8) 230 #define TMS570_CRC_BUSY_CH1_BUSY BSP_BIT32(0) 235 #define TMS570_CRC_PCOUNT_REG1_CRC_PAT_COUNT1(val) BSP_FLD32(val,0, 19) 236 #define TMS570_CRC_PCOUNT_REG1_CRC_PAT_COUNT1_GET(reg) BSP_FLD32GET(reg,0, 19) 237 #define TMS570_CRC_PCOUNT_REG1_CRC_PAT_COUNT1_SET(reg,val) BSP_FLD32SET(reg, val,0, 19) 242 #define TMS570_CRC_SCOUNT_REG1_CRC_SEC_COUNT1(val) BSP_FLD32(val,0, 15) 243 #define TMS570_CRC_SCOUNT_REG1_CRC_SEC_COUNT1_GET(reg) BSP_FLD32GET(reg,0, 15) 244 #define TMS570_CRC_SCOUNT_REG1_CRC_SEC_COUNT1_SET(reg,val) BSP_FLD32SET(reg, val,0, 15) 249 #define TMS570_CRC_CURSEC_REG1_CRC_CURSEC1(val) BSP_FLD32(val,0, 15) 250 #define TMS570_CRC_CURSEC_REG1_CRC_CURSEC1_GET(reg) BSP_FLD32GET(reg,0, 15) 251 #define TMS570_CRC_CURSEC_REG1_CRC_CURSEC1_SET(reg,val) BSP_FLD32SET(reg, val,0, 15) 256 #define TMS570_CRC_WDTOPLD1_CRC_WDTOPLD1(val) BSP_FLD32(val,0, 23) 257 #define TMS570_CRC_WDTOPLD1_CRC_WDTOPLD1_GET(reg) BSP_FLD32GET(reg,0, 23) 258 #define TMS570_CRC_WDTOPLD1_CRC_WDTOPLD1_SET(reg,val) BSP_FLD32SET(reg, val,0, 23) 263 #define TMS570_CRC_BCTOPLD1_CRC_BCTOPLD1(val) BSP_FLD32(val,0, 23) 264 #define TMS570_CRC_BCTOPLD1_CRC_BCTOPLD1_GET(reg) BSP_FLD32GET(reg,0, 23) 265 #define TMS570_CRC_BCTOPLD1_CRC_BCTOPLD1_SET(reg,val) BSP_FLD32SET(reg, val,0, 23) 302 #define TMS570_CRC_PCOUNT_REG2_CRC_PAT_COUNT2(val) BSP_FLD32(val,0, 19) 303 #define TMS570_CRC_PCOUNT_REG2_CRC_PAT_COUNT2_GET(reg) BSP_FLD32GET(reg,0, 19) 304 #define TMS570_CRC_PCOUNT_REG2_CRC_PAT_COUNT2_SET(reg,val) BSP_FLD32SET(reg, val,0, 19) 309 #define TMS570_CRC_SCOUNT_REG2_CRC_SEC_COUNT2(val) BSP_FLD32(val,0, 15) 310 #define TMS570_CRC_SCOUNT_REG2_CRC_SEC_COUNT2_GET(reg) BSP_FLD32GET(reg,0, 15) 311 #define TMS570_CRC_SCOUNT_REG2_CRC_SEC_COUNT2_SET(reg,val) BSP_FLD32SET(reg, val,0, 15) 316 #define TMS570_CRC_CURSEC_REG2_CRC_CURSEC2(val) BSP_FLD32(val,0, 15) 317 #define TMS570_CRC_CURSEC_REG2_CRC_CURSEC2_GET(reg) BSP_FLD32GET(reg,0, 15) 318 #define TMS570_CRC_CURSEC_REG2_CRC_CURSEC2_SET(reg,val) BSP_FLD32SET(reg, val,0, 15) 323 #define TMS570_CRC_WDTOPLD2_CRC_WDTOPLD2(val) BSP_FLD32(val,0, 23) 324 #define TMS570_CRC_WDTOPLD2_CRC_WDTOPLD2_GET(reg) BSP_FLD32GET(reg,0, 23) 325 #define TMS570_CRC_WDTOPLD2_CRC_WDTOPLD2_SET(reg,val) BSP_FLD32SET(reg, val,0, 23) 330 #define TMS570_CRC_BCTOPLD2_CRC_BCTOPLD2(val) BSP_FLD32(val,0, 23) 331 #define TMS570_CRC_BCTOPLD2_CRC_BCTOPLD2_GET(reg) BSP_FLD32GET(reg,0, 23) 332 #define TMS570_CRC_BCTOPLD2_CRC_BCTOPLD2_SET(reg,val) BSP_FLD32SET(reg, val,0, 23) 369 #define TMS570_CRC_BUS_SEL_MEn BSP_BIT32(2) 372 #define TMS570_CRC_BUS_SEL_DTCMEn BSP_BIT32(1) 375 #define TMS570_CRC_BUS_SEL_ITCMEn BSP_BIT32(0)