49#ifndef LIBBSP_ARM_TMS570_SPI
50#define LIBBSP_ARM_TMS570_SPI
81 uint8_t reserved1 [4];
89 uint8_t reserved2 [8];
96 uint8_t reserved3 [4];
101 uint32_t RXOVRN_BUF_ADDR;
102 uint32_t IOLPBKTSTCR;
103 uint32_t EXT_PRESCALE1;
104 uint32_t EXT_PRESCALE2;
110#define TMS570_SPI_GCR0_nRESET BSP_BIT32(0)
115#define TMS570_SPI_GCR1_SPIEN BSP_BIT32(24)
118#define TMS570_SPI_GCR1_LOOPBACK BSP_BIT32(16)
121#define TMS570_SPI_GCR1_POWERDOWN BSP_BIT32(8)
124#define TMS570_SPI_GCR1_CLKMOD BSP_BIT32(1)
127#define TMS570_SPI_GCR1_MASTER BSP_BIT32(0)
132#define TMS570_SPI_INT0_ENABLEHIGHZ BSP_BIT32(24)
135#define TMS570_SPI_INT0_DMAREQEN BSP_BIT32(16)
140#define TMS570_SPI_LVL_TXINTLVL BSP_BIT32(9)
143#define TMS570_SPI_LVL_RXINTLVL BSP_BIT32(8)
146#define TMS570_SPI_LVL_RXOVRNINTLVL BSP_BIT32(6)
149#define TMS570_SPI_LVL_BITERRLVL BSP_BIT32(4)
152#define TMS570_SPI_LVL_DESYNCLVL BSP_BIT32(3)
155#define TMS570_SPI_LVL_PARERRLVL BSP_BIT32(2)
158#define TMS570_SPI_LVL_TIMEOUTLVL BSP_BIT32(1)
161#define TMS570_SPI_LVL_DLENERRLVL BSP_BIT32(0)
166#define TMS570_SPI_FLG_BUFINITACTIVE BSP_BIT32(24)
169#define TMS570_SPI_FLG_TXINTFLG BSP_BIT32(9)
172#define TMS570_SPI_FLG_RXINTFLG BSP_BIT32(8)
175#define TMS570_SPI_FLG_RXOVRNINTFLG BSP_BIT32(6)
178#define TMS570_SPI_FLG_BITERRFLG BSP_BIT32(4)
181#define TMS570_SPI_FLG_DESYNCFLG BSP_BIT32(3)
184#define TMS570_SPI_FLG_PARITYERRFLG BSP_BIT32(2)
187#define TMS570_SPI_FLG_TIMEOUTFLG BSP_BIT32(1)
190#define TMS570_SPI_FLG_DLENERRFLG BSP_BIT32(0)
195#define TMS570_SPI_PC0_SOMIFUN(val) BSP_FLD32(val,24, 31)
196#define TMS570_SPI_PC0_SOMIFUN_GET(reg) BSP_FLD32GET(reg,24, 31)
197#define TMS570_SPI_PC0_SOMIFUN_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
200#define TMS570_SPI_PC0_SIMOFUN(val) BSP_FLD32(val,16, 23)
201#define TMS570_SPI_PC0_SIMOFUN_GET(reg) BSP_FLD32GET(reg,16, 23)
202#define TMS570_SPI_PC0_SIMOFUN_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
205#define TMS570_SPI_PC0_SOMIFUN0 BSP_BIT32(11)
208#define TMS570_SPI_PC0_SIMOFUN0 BSP_BIT32(10)
211#define TMS570_SPI_PC0_CLKFUN BSP_BIT32(9)
214#define TMS570_SPI_PC0_ENAFUN BSP_BIT32(8)
217#define TMS570_SPI_PC0_SCSFUN(val) BSP_FLD32(val,0, 7)
218#define TMS570_SPI_PC0_SCSFUN_GET(reg) BSP_FLD32GET(reg,0, 7)
219#define TMS570_SPI_PC0_SCSFUN_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
224#define TMS570_SPI_PC1_SOMIDIR(val) BSP_FLD32(val,24, 31)
225#define TMS570_SPI_PC1_SOMIDIR_GET(reg) BSP_FLD32GET(reg,24, 31)
226#define TMS570_SPI_PC1_SOMIDIR_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
229#define TMS570_SPI_PC1_SIMODIR(val) BSP_FLD32(val,16, 23)
230#define TMS570_SPI_PC1_SIMODIR_GET(reg) BSP_FLD32GET(reg,16, 23)
231#define TMS570_SPI_PC1_SIMODIR_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
234#define TMS570_SPI_PC1_SOMIDIR0 BSP_BIT32(11)
237#define TMS570_SPI_PC1_SIMODIR0 BSP_BIT32(10)
240#define TMS570_SPI_PC1_CLKDIR BSP_BIT32(9)
243#define TMS570_SPI_PC1_ENADIR BSP_BIT32(8)
246#define TMS570_SPI_PC1_SCSDIR(val) BSP_FLD32(val,0, 7)
247#define TMS570_SPI_PC1_SCSDIR_GET(reg) BSP_FLD32GET(reg,0, 7)
248#define TMS570_SPI_PC1_SCSDIR_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
253#define TMS570_SPI_PC2_SOMIDIN(val) BSP_FLD32(val,24, 31)
254#define TMS570_SPI_PC2_SOMIDIN_GET(reg) BSP_FLD32GET(reg,24, 31)
255#define TMS570_SPI_PC2_SOMIDIN_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
258#define TMS570_SPI_PC2_SIMODIN(val) BSP_FLD32(val,16, 23)
259#define TMS570_SPI_PC2_SIMODIN_GET(reg) BSP_FLD32GET(reg,16, 23)
260#define TMS570_SPI_PC2_SIMODIN_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
263#define TMS570_SPI_PC2_SOMIDIN0 BSP_BIT32(11)
266#define TMS570_SPI_PC2_SIMODIN0 BSP_BIT32(10)
269#define TMS570_SPI_PC2_CLKDIN BSP_BIT32(9)
272#define TMS570_SPI_PC2_ENADIN BSP_BIT32(8)
275#define TMS570_SPI_PC2_SCSDIN(val) BSP_FLD32(val,0, 7)
276#define TMS570_SPI_PC2_SCSDIN_GET(reg) BSP_FLD32GET(reg,0, 7)
277#define TMS570_SPI_PC2_SCSDIN_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
282#define TMS570_SPI_PC3_SOMIDOUT(val) BSP_FLD32(val,24, 31)
283#define TMS570_SPI_PC3_SOMIDOUT_GET(reg) BSP_FLD32GET(reg,24, 31)
284#define TMS570_SPI_PC3_SOMIDOUT_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
287#define TMS570_SPI_PC3_SIMODOUT(val) BSP_FLD32(val,16, 23)
288#define TMS570_SPI_PC3_SIMODOUT_GET(reg) BSP_FLD32GET(reg,16, 23)
289#define TMS570_SPI_PC3_SIMODOUT_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
292#define TMS570_SPI_PC3_SOMIDOUT0 BSP_BIT32(11)
295#define TMS570_SPI_PC3_SIMODOUT0 BSP_BIT32(10)
298#define TMS570_SPI_PC3_CLKDOUT BSP_BIT32(9)
301#define TMS570_SPI_PC3_ENADOUT BSP_BIT32(8)
304#define TMS570_SPI_PC3_SCSDOUT(val) BSP_FLD32(val,0, 7)
305#define TMS570_SPI_PC3_SCSDOUT_GET(reg) BSP_FLD32GET(reg,0, 7)
306#define TMS570_SPI_PC3_SCSDOUT_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
311#define TMS570_SPI_PC4_SOMISET(val) BSP_FLD32(val,24, 31)
312#define TMS570_SPI_PC4_SOMISET_GET(reg) BSP_FLD32GET(reg,24, 31)
313#define TMS570_SPI_PC4_SOMISET_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
316#define TMS570_SPI_PC4_SIMOSET(val) BSP_FLD32(val,16, 23)
317#define TMS570_SPI_PC4_SIMOSET_GET(reg) BSP_FLD32GET(reg,16, 23)
318#define TMS570_SPI_PC4_SIMOSET_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
321#define TMS570_SPI_PC4_SOMISET0 BSP_BIT32(11)
324#define TMS570_SPI_PC4_SIMOSET0 BSP_BIT32(10)
327#define TMS570_SPI_PC4_CLKSET BSP_BIT32(9)
330#define TMS570_SPI_PC4_ENASET BSP_BIT32(8)
333#define TMS570_SPI_PC4_SCSSET(val) BSP_FLD32(val,0, 7)
334#define TMS570_SPI_PC4_SCSSET_GET(reg) BSP_FLD32GET(reg,0, 7)
335#define TMS570_SPI_PC4_SCSSET_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
340#define TMS570_SPI_PC5_SOMICLR(val) BSP_FLD32(val,24, 31)
341#define TMS570_SPI_PC5_SOMICLR_GET(reg) BSP_FLD32GET(reg,24, 31)
342#define TMS570_SPI_PC5_SOMICLR_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
345#define TMS570_SPI_PC5_SIMOCLR(val) BSP_FLD32(val,16, 23)
346#define TMS570_SPI_PC5_SIMOCLR_GET(reg) BSP_FLD32GET(reg,16, 23)
347#define TMS570_SPI_PC5_SIMOCLR_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
350#define TMS570_SPI_PC5_SOMICLR0 BSP_BIT32(11)
353#define TMS570_SPI_PC5_SIMOCLR0 BSP_BIT32(10)
356#define TMS570_SPI_PC5_CLKCLR BSP_BIT32(9)
359#define TMS570_SPI_PC5_ENACLR BSP_BIT32(8)
362#define TMS570_SPI_PC5_SCSCLR(val) BSP_FLD32(val,0, 7)
363#define TMS570_SPI_PC5_SCSCLR_GET(reg) BSP_FLD32GET(reg,0, 7)
364#define TMS570_SPI_PC5_SCSCLR_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
369#define TMS570_SPI_PC6_SOMIPDR(val) BSP_FLD32(val,24, 31)
370#define TMS570_SPI_PC6_SOMIPDR_GET(reg) BSP_FLD32GET(reg,24, 31)
371#define TMS570_SPI_PC6_SOMIPDR_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
374#define TMS570_SPI_PC6_SIMOPDR(val) BSP_FLD32(val,16, 23)
375#define TMS570_SPI_PC6_SIMOPDR_GET(reg) BSP_FLD32GET(reg,16, 23)
376#define TMS570_SPI_PC6_SIMOPDR_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
379#define TMS570_SPI_PC6_SOMIPDR0 BSP_BIT32(11)
382#define TMS570_SPI_PC6_SIMOPDR0 BSP_BIT32(10)
385#define TMS570_SPI_PC6_CLKPDR BSP_BIT32(9)
388#define TMS570_SPI_PC6_ENAPDR BSP_BIT32(8)
391#define TMS570_SPI_PC6_SCSPDR(val) BSP_FLD32(val,0, 7)
392#define TMS570_SPI_PC6_SCSPDR_GET(reg) BSP_FLD32GET(reg,0, 7)
393#define TMS570_SPI_PC6_SCSPDR_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
398#define TMS570_SPI_PC7_SOMIDIS(val) BSP_FLD32(val,24, 31)
399#define TMS570_SPI_PC7_SOMIDIS_GET(reg) BSP_FLD32GET(reg,24, 31)
400#define TMS570_SPI_PC7_SOMIDIS_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
403#define TMS570_SPI_PC7_SIMODIS(val) BSP_FLD32(val,16, 23)
404#define TMS570_SPI_PC7_SIMODIS_GET(reg) BSP_FLD32GET(reg,16, 23)
405#define TMS570_SPI_PC7_SIMODIS_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
408#define TMS570_SPI_PC7_SOMIPDIS0 BSP_BIT32(11)
411#define TMS570_SPI_PC7_SIMOPDIS0 BSP_BIT32(10)
414#define TMS570_SPI_PC7_CLKPDIS BSP_BIT32(9)
417#define TMS570_SPI_PC7_ENAPDIS BSP_BIT32(8)
420#define TMS570_SPI_PC7_SCSPDIS(val) BSP_FLD32(val,0, 7)
421#define TMS570_SPI_PC7_SCSPDIS_GET(reg) BSP_FLD32GET(reg,0, 7)
422#define TMS570_SPI_PC7_SCSPDIS_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
427#define TMS570_SPI_PC8_SOMIPSEL(val) BSP_FLD32(val,24, 31)
428#define TMS570_SPI_PC8_SOMIPSEL_GET(reg) BSP_FLD32GET(reg,24, 31)
429#define TMS570_SPI_PC8_SOMIPSEL_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
432#define TMS570_SPI_PC8_SIMOPSEL(val) BSP_FLD32(val,16, 23)
433#define TMS570_SPI_PC8_SIMOPSEL_GET(reg) BSP_FLD32GET(reg,16, 23)
434#define TMS570_SPI_PC8_SIMOPSEL_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
437#define TMS570_SPI_PC8_SOMIPSEL0 BSP_BIT32(11)
440#define TMS570_SPI_PC8_SIMOPSEL0 BSP_BIT32(10)
443#define TMS570_SPI_PC8_CLKPSEL BSP_BIT32(9)
446#define TMS570_SPI_PC8_ENAPSEL BSP_BIT32(8)
449#define TMS570_SPI_PC8_SCSPSEL(val) BSP_FLD32(val,0, 7)
450#define TMS570_SPI_PC8_SCSPSEL_GET(reg) BSP_FLD32GET(reg,0, 7)
451#define TMS570_SPI_PC8_SCSPSEL_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
456#define TMS570_SPI_DAT0_TXDATA(val) BSP_FLD32(val,0, 15)
457#define TMS570_SPI_DAT0_TXDATA_GET(reg) BSP_FLD32GET(reg,0, 15)
458#define TMS570_SPI_DAT0_TXDATA_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
463#define TMS570_SPI_DAT1_CSHOLD BSP_BIT32(28)
466#define TMS570_SPI_DAT1_WDEL BSP_BIT32(26)
469#define TMS570_SPI_DAT1_DFSEL(val) BSP_FLD32(val,24, 25)
470#define TMS570_SPI_DAT1_DFSEL_GET(reg) BSP_FLD32GET(reg,24, 25)
471#define TMS570_SPI_DAT1_DFSEL_SET(reg,val) BSP_FLD32SET(reg, val,24, 25)
474#define TMS570_SPI_DAT1_CSNR(val) BSP_FLD32(val,16, 23)
475#define TMS570_SPI_DAT1_CSNR_GET(reg) BSP_FLD32GET(reg,16, 23)
476#define TMS570_SPI_DAT1_CSNR_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
479#define TMS570_SPI_DAT1_TXDATA(val) BSP_FLD32(val,0, 15)
480#define TMS570_SPI_DAT1_TXDATA_GET(reg) BSP_FLD32GET(reg,0, 15)
481#define TMS570_SPI_DAT1_TXDATA_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
486#define TMS570_SPI_BUF_RXEMPTY BSP_BIT32(31)
489#define TMS570_SPI_BUF_RXOVR BSP_BIT32(30)
492#define TMS570_SPI_BUF_TXFULL BSP_BIT32(29)
495#define TMS570_SPI_BUF_BITERR BSP_BIT32(28)
498#define TMS570_SPI_BUF_DESYNC BSP_BIT32(27)
501#define TMS570_SPI_BUF_PARITYERR BSP_BIT32(26)
504#define TMS570_SPI_BUF_TIMEOUT BSP_BIT32(25)
507#define TMS570_SPI_BUF_DLENERR BSP_BIT32(24)
510#define TMS570_SPI_BUF_LCSNR(val) BSP_FLD32(val,16, 23)
511#define TMS570_SPI_BUF_LCSNR_GET(reg) BSP_FLD32GET(reg,16, 23)
512#define TMS570_SPI_BUF_LCSNR_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
515#define TMS570_SPI_BUF_RXDATA(val) BSP_FLD32(val,0, 15)
516#define TMS570_SPI_BUF_RXDATA_GET(reg) BSP_FLD32GET(reg,0, 15)
517#define TMS570_SPI_BUF_RXDATA_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
522#define TMS570_SPI_EMU_EMU_RXDATA(val) BSP_FLD32(val,0, 15)
523#define TMS570_SPI_EMU_EMU_RXDATA_GET(reg) BSP_FLD32GET(reg,0, 15)
524#define TMS570_SPI_EMU_EMU_RXDATA_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
529#define TMS570_SPI_DELAY_C2TDELAY(val) BSP_FLD32(val,24, 31)
530#define TMS570_SPI_DELAY_C2TDELAY_GET(reg) BSP_FLD32GET(reg,24, 31)
531#define TMS570_SPI_DELAY_C2TDELAY_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
534#define TMS570_SPI_DELAY_T2CDELAY(val) BSP_FLD32(val,16, 23)
535#define TMS570_SPI_DELAY_T2CDELAY_GET(reg) BSP_FLD32GET(reg,16, 23)
536#define TMS570_SPI_DELAY_T2CDELAY_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
539#define TMS570_SPI_DELAY_T2EDELAY(val) BSP_FLD32(val,8, 15)
540#define TMS570_SPI_DELAY_T2EDELAY_GET(reg) BSP_FLD32GET(reg,8, 15)
541#define TMS570_SPI_DELAY_T2EDELAY_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
544#define TMS570_SPI_DELAY_C2EDELAY(val) BSP_FLD32(val,0, 7)
545#define TMS570_SPI_DELAY_C2EDELAY_GET(reg) BSP_FLD32GET(reg,0, 7)
546#define TMS570_SPI_DELAY_C2EDELAY_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
551#define TMS570_SPI_DEF_CDEF(val) BSP_FLD32(val,0, 7)
552#define TMS570_SPI_DEF_CDEF_GET(reg) BSP_FLD32GET(reg,0, 7)
553#define TMS570_SPI_DEF_CDEF_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
558#define TMS570_SPI_FMTx_WDELAY(val) BSP_FLD32(val,24, 31)
559#define TMS570_SPI_FMTx_WDELAY_GET(reg) BSP_FLD32GET(reg,24, 31)
560#define TMS570_SPI_FMTx_WDELAY_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
563#define TMS570_SPI_FMTx_PARPOL BSP_BIT32(23)
566#define TMS570_SPI_FMTx_PARITYENA BSP_BIT32(22)
569#define TMS570_SPI_FMTx_WAITENA BSP_BIT32(21)
572#define TMS570_SPI_FMTx_SHIFTDIR BSP_BIT32(20)
575#define TMS570_SPI_FMTx_HDUPLEX_ENAx BSP_BIT32(19)
578#define TMS570_SPI_FMTx_DIS_CS_TIMERS BSP_BIT32(18)
581#define TMS570_SPI_FMTx_POLARITY BSP_BIT32(17)
584#define TMS570_SPI_FMTx_PHASE BSP_BIT32(16)
587#define TMS570_SPI_FMTx_PRESCALE(val) BSP_FLD32(val,8, 15)
588#define TMS570_SPI_FMTx_PRESCALE_GET(reg) BSP_FLD32GET(reg,8, 15)
589#define TMS570_SPI_FMTx_PRESCALE_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
592#define TMS570_SPI_FMTx_CHARLEN(val) BSP_FLD32(val,0, 4)
593#define TMS570_SPI_FMTx_CHARLEN_GET(reg) BSP_FLD32GET(reg,0, 4)
594#define TMS570_SPI_FMTx_CHARLEN_SET(reg,val) BSP_FLD32SET(reg, val,0, 4)
599#define TMS570_SPI_INTVECT0_INTVECT0(val) BSP_FLD32(val,1, 5)
600#define TMS570_SPI_INTVECT0_INTVECT0_GET(reg) BSP_FLD32GET(reg,1, 5)
601#define TMS570_SPI_INTVECT0_INTVECT0_SET(reg,val) BSP_FLD32SET(reg, val,1, 5)
604#define TMS570_SPI_INTVECT0_SUSPEND0 BSP_BIT32(0)
609#define TMS570_SPI_INTVECT1_INTVECT1(val) BSP_FLD32(val,1, 5)
610#define TMS570_SPI_INTVECT1_INTVECT1_GET(reg) BSP_FLD32GET(reg,1, 5)
611#define TMS570_SPI_INTVECT1_INTVECT1_SET(reg,val) BSP_FLD32SET(reg, val,1, 5)
614#define TMS570_SPI_INTVECT1_SUSPEND1 BSP_BIT32(0)
619#define TMS570_SPI_PMCTRL_MOD_CLK_POL_3 BSP_BIT32(29)
622#define TMS570_SPI_PMCTRL_MMODE_3(val) BSP_FLD32(val,26, 28)
623#define TMS570_SPI_PMCTRL_MMODE_3_GET(reg) BSP_FLD32GET(reg,26, 28)
624#define TMS570_SPI_PMCTRL_MMODE_3_SET(reg,val) BSP_FLD32SET(reg, val,26, 28)
627#define TMS570_SPI_PMCTRL_PMODE_3(val) BSP_FLD32(val,24, 25)
628#define TMS570_SPI_PMCTRL_PMODE_3_GET(reg) BSP_FLD32GET(reg,24, 25)
629#define TMS570_SPI_PMCTRL_PMODE_3_SET(reg,val) BSP_FLD32SET(reg, val,24, 25)
632#define TMS570_SPI_PMCTRL_MOD_CLK_POL_2 BSP_BIT32(21)
635#define TMS570_SPI_PMCTRL_MMODE_2(val) BSP_FLD32(val,18, 20)
636#define TMS570_SPI_PMCTRL_MMODE_2_GET(reg) BSP_FLD32GET(reg,18, 20)
637#define TMS570_SPI_PMCTRL_MMODE_2_SET(reg,val) BSP_FLD32SET(reg, val,18, 20)
640#define TMS570_SPI_PMCTRL_PMODE_2(val) BSP_FLD32(val,16, 17)
641#define TMS570_SPI_PMCTRL_PMODE_2_GET(reg) BSP_FLD32GET(reg,16, 17)
642#define TMS570_SPI_PMCTRL_PMODE_2_SET(reg,val) BSP_FLD32SET(reg, val,16, 17)
645#define TMS570_SPI_PMCTRL_MOD_CLK_POL_1 BSP_BIT32(13)
648#define TMS570_SPI_PMCTRL_MMODE_1(val) BSP_FLD32(val,10, 12)
649#define TMS570_SPI_PMCTRL_MMODE_1_GET(reg) BSP_FLD32GET(reg,10, 12)
650#define TMS570_SPI_PMCTRL_MMODE_1_SET(reg,val) BSP_FLD32SET(reg, val,10, 12)
653#define TMS570_SPI_PMCTRL_PMODE_1(val) BSP_FLD32(val,8, 9)
654#define TMS570_SPI_PMCTRL_PMODE_1_GET(reg) BSP_FLD32GET(reg,8, 9)
655#define TMS570_SPI_PMCTRL_PMODE_1_SET(reg,val) BSP_FLD32SET(reg, val,8, 9)
658#define TMS570_SPI_PMCTRL_MOD_CLK_POL_0 BSP_BIT32(5)
661#define TMS570_SPI_PMCTRL_MMODE_0(val) BSP_FLD32(val,2, 4)
662#define TMS570_SPI_PMCTRL_MMODE_0_GET(reg) BSP_FLD32GET(reg,2, 4)
663#define TMS570_SPI_PMCTRL_MMODE_0_SET(reg,val) BSP_FLD32SET(reg, val,2, 4)
666#define TMS570_SPI_PMCTRL_PMODE_0(val) BSP_FLD32(val,0, 1)
667#define TMS570_SPI_PMCTRL_PMODE_0_GET(reg) BSP_FLD32GET(reg,0, 1)
668#define TMS570_SPI_PMCTRL_PMODE_0_SET(reg,val) BSP_FLD32SET(reg, val,0, 1)
673#define TMS570_SPI_MIBSPIE_RXRAM_ACCESS BSP_BIT32(16)
676#define TMS570_SPI_MIBSPIE_MSPIENA BSP_BIT32(0)
681#define TMS570_SPI_TGITENST_SET_INTENRDY(val) BSP_FLD32(val,16, 31)
682#define TMS570_SPI_TGITENST_SET_INTENRDY_GET(reg) BSP_FLD32GET(reg,16, 31)
683#define TMS570_SPI_TGITENST_SET_INTENRDY_SET(reg,val) BSP_FLD32SET(reg, val,16, 31)
686#define TMS570_SPI_TGITENST_SET_INTENSUS(val) BSP_FLD32(val,0, 15)
687#define TMS570_SPI_TGITENST_SET_INTENSUS_GET(reg) BSP_FLD32GET(reg,0, 15)
688#define TMS570_SPI_TGITENST_SET_INTENSUS_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
693#define TMS570_SPI_TGITENCR_CLR_INTENRDY(val) BSP_FLD32(val,16, 31)
694#define TMS570_SPI_TGITENCR_CLR_INTENRDY_GET(reg) BSP_FLD32GET(reg,16, 31)
695#define TMS570_SPI_TGITENCR_CLR_INTENRDY_SET(reg,val) BSP_FLD32SET(reg, val,16, 31)
698#define TMS570_SPI_TGITENCR_CLR_INTENSUS(val) BSP_FLD32(val,0, 15)
699#define TMS570_SPI_TGITENCR_CLR_INTENSUS_GET(reg) BSP_FLD32GET(reg,0, 15)
700#define TMS570_SPI_TGITENCR_CLR_INTENSUS_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
705#define TMS570_SPI_TGITLVST_SET_INTLVLRDY(val) BSP_FLD32(val,16, 31)
706#define TMS570_SPI_TGITLVST_SET_INTLVLRDY_GET(reg) BSP_FLD32GET(reg,16, 31)
707#define TMS570_SPI_TGITLVST_SET_INTLVLRDY_SET(reg,val) BSP_FLD32SET(reg, val,16, 31)
710#define TMS570_SPI_TGITLVST_SET_INTLVLSUS(val) BSP_FLD32(val,0, 15)
711#define TMS570_SPI_TGITLVST_SET_INTLVLSUS_GET(reg) BSP_FLD32GET(reg,0, 15)
712#define TMS570_SPI_TGITLVST_SET_INTLVLSUS_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
717#define TMS570_SPI_TGITLVCR_CLR_INTLVLRDY(val) BSP_FLD32(val,16, 31)
718#define TMS570_SPI_TGITLVCR_CLR_INTLVLRDY_GET(reg) BSP_FLD32GET(reg,16, 31)
719#define TMS570_SPI_TGITLVCR_CLR_INTLVLRDY_SET(reg,val) BSP_FLD32SET(reg, val,16, 31)
722#define TMS570_SPI_TGITLVCR_CLR_INTLVLSUS(val) BSP_FLD32(val,0, 15)
723#define TMS570_SPI_TGITLVCR_CLR_INTLVLSUS_GET(reg) BSP_FLD32GET(reg,0, 15)
724#define TMS570_SPI_TGITLVCR_CLR_INTLVLSUS_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
729#define TMS570_SPI_TGINTFLG_INTFLGRDY(val) BSP_FLD32(val,16, 31)
730#define TMS570_SPI_TGINTFLG_INTFLGRDY_GET(reg) BSP_FLD32GET(reg,16, 31)
731#define TMS570_SPI_TGINTFLG_INTFLGRDY_SET(reg,val) BSP_FLD32SET(reg, val,16, 31)
734#define TMS570_SPI_TGINTFLG_INTFLGSUS(val) BSP_FLD32(val,0, 15)
735#define TMS570_SPI_TGINTFLG_INTFLGSUS_GET(reg) BSP_FLD32GET(reg,0, 15)
736#define TMS570_SPI_TGINTFLG_INTFLGSUS_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
741#define TMS570_SPI_TICKCNT_TICKENA BSP_BIT32(31)
744#define TMS570_SPI_TICKCNT_RELOAD BSP_BIT32(30)
747#define TMS570_SPI_TICKCNT_CLKCTRL(val) BSP_FLD32(val,28, 29)
748#define TMS570_SPI_TICKCNT_CLKCTRL_GET(reg) BSP_FLD32GET(reg,28, 29)
749#define TMS570_SPI_TICKCNT_CLKCTRL_SET(reg,val) BSP_FLD32SET(reg, val,28, 29)
752#define TMS570_SPI_TICKCNT_TICKVALUE(val) BSP_FLD32(val,0, 15)
753#define TMS570_SPI_TICKCNT_TICKVALUE_GET(reg) BSP_FLD32GET(reg,0, 15)
754#define TMS570_SPI_TICKCNT_TICKVALUE_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
759#define TMS570_SPI_LTGPEND_TG_IN_SERVICE(val) BSP_FLD32(val,24, 28)
760#define TMS570_SPI_LTGPEND_TG_IN_SERVICE_GET(reg) BSP_FLD32GET(reg,24, 28)
761#define TMS570_SPI_LTGPEND_TG_IN_SERVICE_SET(reg,val) BSP_FLD32SET(reg, val,24, 28)
764#define TMS570_SPI_LTGPEND_LPEND(val) BSP_FLD32(val,8, 14)
765#define TMS570_SPI_LTGPEND_LPEND_GET(reg) BSP_FLD32GET(reg,8, 14)
766#define TMS570_SPI_LTGPEND_LPEND_SET(reg,val) BSP_FLD32SET(reg, val,8, 14)
771#define TMS570_SPI_TGCTRL_TGENA BSP_BIT32(31)
774#define TMS570_SPI_TGCTRL_ONESHOTx BSP_BIT32(30)
777#define TMS570_SPI_TGCTRL_PRSTx BSP_BIT32(29)
780#define TMS570_SPI_TGCTRL_TGTDx BSP_BIT32(28)
785#define TMS570_SPI_DMACTRL_ONESHOT BSP_BIT32(31)
788#define TMS570_SPI_DMACTRL_BUFIDx(val) BSP_FLD32(val,24, 30)
789#define TMS570_SPI_DMACTRL_BUFIDx_GET(reg) BSP_FLD32GET(reg,24, 30)
790#define TMS570_SPI_DMACTRL_BUFIDx_SET(reg,val) BSP_FLD32SET(reg, val,24, 30)
793#define TMS570_SPI_DMACTRL_RXDMA_MAPx(val) BSP_FLD32(val,20, 23)
794#define TMS570_SPI_DMACTRL_RXDMA_MAPx_GET(reg) BSP_FLD32GET(reg,20, 23)
795#define TMS570_SPI_DMACTRL_RXDMA_MAPx_SET(reg,val) BSP_FLD32SET(reg, val,20, 23)
798#define TMS570_SPI_DMACTRL_TXDMA_MAPx(val) BSP_FLD32(val,16, 19)
799#define TMS570_SPI_DMACTRL_TXDMA_MAPx_GET(reg) BSP_FLD32GET(reg,16, 19)
800#define TMS570_SPI_DMACTRL_TXDMA_MAPx_SET(reg,val) BSP_FLD32SET(reg, val,16, 19)
803#define TMS570_SPI_DMACTRL_RXDMAENAx BSP_BIT32(15)
806#define TMS570_SPI_DMACTRL_TXDAMENAx BSP_BIT32(14)
809#define TMS570_SPI_DMACTRL_NOBRKx BSP_BIT32(13)
812#define TMS570_SPI_DMACTRL_ICOUNTx(val) BSP_FLD32(val,8, 12)
813#define TMS570_SPI_DMACTRL_ICOUNTx_GET(reg) BSP_FLD32GET(reg,8, 12)
814#define TMS570_SPI_DMACTRL_ICOUNTx_SET(reg,val) BSP_FLD32SET(reg, val,8, 12)
817#define TMS570_SPI_DMACTRL_COUNT_BIT17x BSP_BIT32(6)
820#define TMS570_SPI_DMACTRL_COUNTx(val) BSP_FLD32(val,0, 5)
821#define TMS570_SPI_DMACTRL_COUNTx_GET(reg) BSP_FLD32GET(reg,0, 5)
822#define TMS570_SPI_DMACTRL_COUNTx_SET(reg,val) BSP_FLD32SET(reg, val,0, 5)
827#define TMS570_SPI_DMACOUNT_ICOUNTx(val) BSP_FLD32(val,16, 31)
828#define TMS570_SPI_DMACOUNT_ICOUNTx_GET(reg) BSP_FLD32GET(reg,16, 31)
829#define TMS570_SPI_DMACOUNT_ICOUNTx_SET(reg,val) BSP_FLD32SET(reg, val,16, 31)
832#define TMS570_SPI_DMACOUNT_COUNTx(val) BSP_FLD32(val,0, 15)
833#define TMS570_SPI_DMACOUNT_COUNTx_GET(reg) BSP_FLD32GET(reg,0, 15)
834#define TMS570_SPI_DMACOUNT_COUNTx_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
839#define TMS570_SPI_DMACNTLEN_LARGE_COUNT BSP_BIT32(0)
844#define TMS570_SPI_UERRCTRL_PTESTEN BSP_BIT32(8)
847#define TMS570_SPI_UERRCTRL_EDEN(val) BSP_FLD32(val,0, 3)
848#define TMS570_SPI_UERRCTRL_EDEN_GET(reg) BSP_FLD32GET(reg,0, 3)
849#define TMS570_SPI_UERRCTRL_EDEN_SET(reg,val) BSP_FLD32SET(reg, val,0, 3)
854#define TMS570_SPI_UERRSTAT_EDFLG1 BSP_BIT32(1)
857#define TMS570_SPI_UERRSTAT_EDFLG0 BSP_BIT32(0)
862#define TMS570_SPI_UERRADDRRX_OVERADDR1(val) BSP_FLD32(val,0, 9)
863#define TMS570_SPI_UERRADDRRX_OVERADDR1_GET(reg) BSP_FLD32GET(reg,0, 9)
864#define TMS570_SPI_UERRADDRRX_OVERADDR1_SET(reg,val) BSP_FLD32SET(reg, val,0, 9)
869#define TMS570_SPI_UERRADDRTX_UERRADDR0(val) BSP_FLD32(val,0, 8)
870#define TMS570_SPI_UERRADDRTX_UERRADDR0_GET(reg) BSP_FLD32GET(reg,0, 8)
871#define TMS570_SPI_UERRADDRTX_UERRADDR0_SET(reg,val) BSP_FLD32SET(reg, val,0, 8)
876#define TMS570_SPI_RXOVRN_BUF_ADDR_RXOVRN_BUF_ADDR(val) BSP_FLD32(val,0, 9)
877#define TMS570_SPI_RXOVRN_BUF_ADDR_RXOVRN_BUF_ADDR_GET(reg) BSP_FLD32GET(reg,0, 9)
878#define TMS570_SPI_RXOVRN_BUF_ADDR_RXOVRN_BUF_ADDR_SET(reg,val) BSP_FLD32SET(reg, val,0, 9)
883#define TMS570_SPI_IOLPBKTSTCR_SCS_FAIL_FLG BSP_BIT32(24)
886#define TMS570_SPI_IOLPBKTSTCR_CTRL_BITERR BSP_BIT32(20)
889#define TMS570_SPI_IOLPBKTSTCR_CTRL_DESYNC BSP_BIT32(19)
892#define TMS570_SPI_IOLPBKTSTCR_CTRL_PARERR BSP_BIT32(18)
895#define TMS570_SPI_IOLPBKTSTCR_CTRL_TIMEOUT BSP_BIT32(17)
898#define TMS570_SPI_IOLPBKTSTCR_CTRL_DLENERR BSP_BIT32(16)
901#define TMS570_SPI_IOLPBKTSTCR_IOLPBKSTENA(val) BSP_FLD32(val,8, 11)
902#define TMS570_SPI_IOLPBKTSTCR_IOLPBKSTENA_GET(reg) BSP_FLD32GET(reg,8, 11)
903#define TMS570_SPI_IOLPBKTSTCR_IOLPBKSTENA_SET(reg,val) BSP_FLD32SET(reg, val,8, 11)
906#define TMS570_SPI_IOLPBKTSTCR_ERR_SCS_PIN(val) BSP_FLD32(val,3, 5)
907#define TMS570_SPI_IOLPBKTSTCR_ERR_SCS_PIN_GET(reg) BSP_FLD32GET(reg,3, 5)
908#define TMS570_SPI_IOLPBKTSTCR_ERR_SCS_PIN_SET(reg,val) BSP_FLD32SET(reg, val,3, 5)
911#define TMS570_SPI_IOLPBKTSTCR_CTRL_SCS_PIN BSP_BIT32(2)
914#define TMS570_SPI_IOLPBKTSTCR_LPBK_TYPE BSP_BIT32(1)
917#define TMS570_SPI_IOLPBKTSTCR_RXP_ENA BSP_BIT32(0)
922#define TMS570_SPI_EXT_PRESCALEx_EPRESCALE_FMTx(val) BSP_FLD32(val,16, 26)
923#define TMS570_SPI_EXT_PRESCALEx_EPRESCALE_FMTx_GET(reg) BSP_FLD32GET(reg,16, 26)
924#define TMS570_SPI_EXT_PRESCALEx_EPRESCALE_FMTx_SET(reg,val) BSP_FLD32SET(reg, val,16, 26)
This header file provides utility macros for BSPs.