32 #ifndef CSL_IDEF_INLINE
33 #define CSL_IDEF_INLINE static inline
41 #define CSL_UPP_PER_CNT 1
44 #define CSL_HPI_PER_CNT 1
47 #define CSL_MCASP_PER_CNT 1
50 #define CSL_TMR_PER_CNT 4
53 #define CSL_PSC_PER_CNT 2
56 #define CSL_UART_PER_CNT 3
59 #define CSL_SPI_PER_CNT 2
62 #define CSL_I2C_PER_CNT 2
65 #define CSL_PLLC_PER_CNT 2
68 #define CSL_MMCSD_PER_CNT 2
71 #define CSL_LCDC_PER_CNT 1
74 #define CSL_MCBSP_PER_CNT 2
77 #define CSL_EDMA3CC_CNT 2
80 #define CSL_EDMA3TC_CNT 3
83 #define CSL_EMIFA_PER_CNT 1
86 #define CSL_EMIFB_PER_CNT 1
89 #define CSL_EMAC_PER_CNT 1
92 #define CSL_MDIO_PER_CNT 1
95 #define CSL_EHRPWM_PER_CNT 2
98 #define CSL_ECAP_PER_CNT 3
101 #define CSL_CPGMACSSR_PER_CNT 1
104 #define CSL_CPPI_PER_CNT 1
107 #define CSL_USB_PER_CNT 2
110 #define CSL_VPIF_PER_CNT 1
113 #define CSL_INTC_PER_CNT 1
116 #define CSL_AINTC_PER_CNT 1
119 #define CSL_SATA_PER_CNT 1
122 #define CSL_RTC_PER_CNT 1
125 #define CSL_GPIO_PER_CNT 1
128 #define CSL_SYSCFG_PER_CNT 2
137 #define CSL_MCASP_0 (0)
140 #define CSL_EDMA3CC_0 (0)
141 #define CSL_EDMA3CC_1 (1)
144 #define CSL_EDMA3TC_0 (0)
145 #define CSL_EDMA3TC_1 (1)
148 #define CSL_TMR_0 (0)
149 #define CSL_TMR_1 (1)
150 #define CSL_TMR_2 (2)
151 #define CSL_TMR_3 (3)
154 #define CSL_PSC_0 (0)
155 #define CSL_PSC_1 (1)
158 #define CSL_UART_0 (0)
159 #define CSL_UART_1 (1)
160 #define CSL_UART_2 (2)
163 #define CSL_SPI_0 (0)
164 #define CSL_SPI_1 (1)
167 #define CSL_I2C_0 (0)
168 #define CSL_I2C_1 (1)
171 #define CSL_MMCSD_0 (0)
172 #define CSL_MMCSD_1 (1)
178 #define CSL_PLLC_0 (0)
179 #define CSL_PLLC_1 (1)
182 #define CSL_EMIFA (0)
191 #define CSL_EHRPWM_0 (0)
192 #define CSL_EHRPWM_1 (1)
195 #define CSL_ECAP_0 (0)
196 #define CSL_ECAP_1 (1)
197 #define CSL_ECAP_2 (2)
200 #define CSL_USB_0 (0)
201 #define CSL_USB_1 (1)
204 #define CSL_PRUCORE_0 (0)
205 #define CSL_PRUCORE_1 (1)
208 #define CSL_PRUINTC (0)
214 #define CSL_AINTC (0)
226 #define CSL_SYSCFG (2)
233 #define CSL_INTC_0_REGS (0x01800000u)
236 #define CSL_PWRDWN_PDC_REGS (0x01810000u)
239 #define CSL_SYS_0_SECURITY_ID_REGS (0x01811000u)
242 #define CSL_SYS_0_REV_ID_REGS (0x01812000u)
245 #define CSL_IDMA_0_REGS (0x01820000u)
248 #define CSL_EMC_0_REGS (0x01820000u)
251 #define CSL_CACHE_0_REGS (0x01840000u)
254 #define CSL_EDMA30CC_0_REGS (0x01C00000u)
257 #define CSL_EDMA30TC_0_REGS (0x01C08000u)
258 #define CSL_EDMA30TC_1_REGS (0x01C08400u)
261 #define CSL_PSC_0_REGS (0x01C10000u)
264 #define CSL_PLLC_0_REGS (0x01C11000u)
267 #define CSL_SYSCFG_0_REGS (0x01C14000u)
270 #define CSL_TMR_0_REGS (0x01C20000u)
271 #define CSL_TMR_1_REGS (0x01C21000u)
274 #define CSL_I2C_0_REGS (0x01C22000u)
277 #define CSL_RTC_0_REGS (0x01C23000u)
280 #define CSL_MMCSD_0_REGS (0x01C40000u)
283 #define CSL_SPI_0_REGS (0x01C41000u)
286 #define CSL_UART_0_REGS (0x01C42000u)
289 #define CSL_MCASP_0_CTRL_REGS (0x01D00000u)
290 #define CSL_MCASP_0_FIFO_REGS (0x01D01000u)
291 #define CSL_MCASP_0_DATA_REGS (0x01D02000u)
294 #define CSL_UART_1_REGS (0x01D0C000u)
295 #define CSL_UART_2_REGS (0x01D0D000u)
298 #define CSL_MCBSP_0_CTRL_REGS (0x01D10000u)
299 #define CSL_MCBSP_0_FIFO_REGS (0x01D10800u)
300 #define CSL_MCBSP_0_DATA_REGS (0x01F10000u)
303 #define CSL_MCBSP_1_CTRL_REGS (0x01D11000u)
304 #define CSL_MCBSP_1_FIFO_REGS (0x01D11800u)
305 #define CSL_MCBSP_1_DATA_REGS (0x01F10000u)
308 #define CSL_USB_0_REGS (0x01E00000u)
309 #define CSL_USB_1_REGS (0x01E25000u)
312 #define CSL_HPI_0_REGS (0x01E10000u)
315 #define CSL_LCDC_0_REGS (0x01E13000u)
318 #define CSL_UPP_0_REGS (0x01E16000u)
321 #define CSL_VPIF_0_REGS (0x01E17000u)
324 #define CSL_SATA_0_REGS (0x01E18000u)
327 #define CSL_PLLC_1_REGS (0X01E1A000u)
330 #define CSL_MMCSD_1_REGS (0x01E1B000u)
333 #define CSL_EMAC_DSC_CTRL_MOD_RAM (0x01E20000u)
334 #define CSL_EMAC_DSC_CTRL_MOD_REG (0x01E22000u)
335 #define CSL_EMAC_DSC_CONTROL_REG (0x01E23000u)
336 #define CSL_MDIO_0_REGS (0x01E24000u)
339 #define CSL_PRUCORE_0_REGS (0x01C37000u)
340 #define CSL_PRUCORE_1_REGS (0x01C37800u)
343 #define CSL_PRUINTC_0_REGS (0x01C34000u)
346 #define CSL_GPIO_0_REGS (0x01E26000u)
349 #define CSL_PSC_1_REGS (0x01E27000u)
352 #define CSL_I2C_1_REGS (0x01E28000u)
355 #define CSL_SYSCFG_1_REGS (0x01E2C000u)
358 #define CSL_EDMA31CC_0_REGS (0x01E30000u)
361 #define CSL_EDMA31TC_0_REGS (0x01E38000u)
364 #define CSL_EHRPWM_0_REGS (0x01F00000u)
365 #define CSL_EHRPWM_1_REGS (0x01F02000u)
368 #define CSL_HRPWM_0_REGS (0x01F01000u)
369 #define CSL_HRPWM_1_REGS (0x01F03000u)
372 #define CSL_ECAP_0_REGS (0x01F06000u)
373 #define CSL_ECAP_1_REGS (0x01F07000u)
374 #define CSL_ECAP_2_REGS (0x01F08000u)
377 #define CSL_TMR_2_REGS (0x01F0C000u)
378 #define CSL_TMR_3_REGS (0x01F0D000u)
381 #define CSL_SPI_1_REGS (0x01F0E000u)
384 #define CSL_EMIFA_0_REGS (0x68000000u)
387 #define CSL_EMIFA_CS0_ADDR (0x40000000u)
390 #define CSL_EMIFA_CS2_ADDR (0x60000000u)
393 #define CSL_EMIFA_CS3_ADDR (0x62000000u)
396 #define CSL_EMIFA_CS4_ADDR (0x64000000u)
399 #define CSL_EMIFA_CS5_ADDR (0x66000000u)
402 #define CSL_DDR2_0_CTRL_REGS (0xB0000000u)
403 #define CSL_DDR2_0_DATA_REGS (0xC0000000u)
406 #define CSL_AINTC_0_REGS (0xFFFEE000u)
409 #define CSL_MEMPROT_L2_REGS (0x00800000u)
412 #define CSL_MEMPROT_L1P_REGS (0x00E00000u)
415 #define CSL_MEMPROT_L1D_REGS (0x00F00000u)
425 #define CSL_INTC_EVENTID_EVT0 (0)
427 #define CSL_INTC_EVENTID_EVT1 (1)
429 #define CSL_INTC_EVENTID_EVT2 (2)
431 #define CSL_INTC_EVENTID_EVT3 (3)
434 #define CSL_INTC_EVENTID_T64P0_TINT12 (4)
437 #define CSL_INTC_EVENTID_BOOTCFGINT0 (5)
439 #define CSL_INTC_EVENTID_EHRPWM0 (7)
442 #define CSL_INTC_EVENTID_EDMA3CC_INT1 (8)
444 #define CSL_INTC_EVENTID_EMU_DTDMA (9)
447 #define CSL_INTC_EVENTID_EHRPWM0TZ (10)
450 #define CSL_INTC_EVENTID_EMU_RTDXRX (11)
452 #define CSL_INTC_EVENTID_EMU_RTDXTX (12)
455 #define CSL_INTC_EVENTID_IDMA0 (13)
457 #define CSL_INTC_EVENTID_IDMA1 (14)
460 #define CSL_INTC_EVENTID_MMCSD0_INT0 (15)
462 #define CSL_INTC_EVENTID_MMCSD0_INT1 (16)
464 #define CSL_INTC_EVENTID_EHRPWM1 (18)
467 #define CSL_INTC_EVENTID_USBINT0 (19)
468 #define CSL_INTC_EVENTID_USB1_HCINT (20)
469 #define CSL_INTC_EVENTID_USB1_RWAKEUP (21)
471 #define CSL_INTC_EVENTID_EHRPWM1TZ (23)
474 #define CSL_INTC_EVENTID_SATAINT (24)
477 #define CSL_INTC_EVENTID_T64P2_TINTALL (25)
480 #define CSL_INTC_EVENTID_EMAC_RXTHRHC0 (26)
481 #define CSL_INTC_EVENTID_EMAC_RXC0 (27)
482 #define CSL_INTC_EVENTID_EMAC_TXC0 (28)
483 #define CSL_INTC_EVENTID_EMAC_MISCC0 (29)
484 #define CSL_INTC_EVENTID_EMAC_RXTHRHC1 (30)
485 #define CSL_INTC_EVENTID_EMAC_RXC1 (31)
486 #define CSL_INTC_EVENTID_EMAC_TXC1 (32)
487 #define CSL_INTC_EVENTID_EMAC_MISCC1 (33)
490 #define CSL_INTC_EVENTID_UHPI_DSPINT (34)
493 #define CSL_INTC_EVENTID_I2CINT0 (36)
496 #define CSL_INTC_EVENTID_SPIINT0 (37)
499 #define CSL_INTC_EVENTID_UARTINT0 (38)
502 #define CSL_INTC_EVENTID_T64P1_TINT12 (40)
505 #define CSL_INTC_EVENTID_GPIO_BNK1_INT (41)
507 #define CSL_INTC_EVENTID_I2CINT1 (42)
510 #define CSL_INTC_EVENTID_SPIINT1 (43)
513 #define CSL_INTC_EVENTID_ECAPINT0 (45)
516 #define CSL_INTC_EVENTID_UARTINT1 (46)
519 #define CSL_INTC_EVENTID_ECAPINT1 (47)
522 #define CSL_INTC_EVENTID_T64P1_TINT34 (48)
525 #define CSL_INTC_EVENTID_GPIO_BNK2_INT (49)
528 #define CSL_INTC_EVENTID_ECAPINT2 (51)
531 #define CSL_INTC_EVENTID_GPIO_BNK3_INT (52)
534 #define CSL_INTC_EVENTID_MMCSD1_INT1 (53)
537 #define CSL_INTC_EVENTID_GPIO_BNK4_INT (54)
540 #define CSL_INTC_EVENTID_EMIFAINT (55)
543 #define CSL_INTC_EVENTID_TPCC0_ERRINT (56)
545 #define CSL_INTC_EVENTID_TPTC_ERRINT0 (57)
546 #define CSL_INTC_EVENTID_TPTC_ERRINT1 (58)
549 #define CSL_INTC_EVENTID_GPIO_BNK5_INT (59)
552 #define CSL_INTC_EVENTID_DDR2_MEMERR (60)
555 #define CSL_INTC_EVENTID_MCASP0INT (61)
558 #define CSL_INTC_EVENTID_GPIO_BNK6_INT (62)
561 #define CSL_INTC_EVENTID_RTC_IRQS (63)
564 #define CSL_INTC_EVENTID_T64P0_TINT34 (64)
567 #define CSL_INTC_EVENTID_GPIO_BNK0_INT (65)
570 #define CSL_INTC_EVENTID_SYSCFG_CHIPINT3 (67)
573 #define CSL_INTC_EVENTID_MMCSD1_INT0 (68)
576 #define CSL_INTC_EVENTID_UARTINT2 (69)
578 #define CSL_INTC_EVENTID_PSC0_ALLINT (70)
579 #define CSL_INTC_EVENTID_PSC1_ALLINT (71)
582 #define CSL_INTC_EVENTID_GPIO_BNK7_INT (72)
585 #define CSL_INTC_EVENTID_LCDC_INT0 (73)
588 #define CSL_INTC_EVENTID_PROTERR (74)
591 #define CSL_INTC_EVENTID_GPIO_BNK8_INT (75)
594 #define CSL_INTC_EVENTID_T64P2_CMPINT0 (78)
595 #define CSL_INTC_EVENTID_T64P2_CMPINT1 (79)
596 #define CSL_INTC_EVENTID_T64P2_CMPINT2 (80)
597 #define CSL_INTC_EVENTID_T64P2_CMPINT3 (81)
598 #define CSL_INTC_EVENTID_T64P2_CMPINT4 (82)
599 #define CSL_INTC_EVENTID_T64P2_CMPINT5 (83)
600 #define CSL_INTC_EVENTID_T64P2_CMPINT6 (84)
601 #define CSL_INTC_EVENTID_T64P2_CMPINT7 (85)
603 #define CSL_INTC_EVENTID_T64P3_TINTALL (86)
606 #define CSL_INTC_EVENTID_MCBSP0_RXINT (87)
608 #define CSL_INTC_EVENTID_MCBSP0_TXINT (88)
610 #define CSL_INTC_EVENTID_MCBSP1_RXINT (89)
612 #define CSL_INTC_EVENTID_MCBSP1_TXINT (90)
615 #define CSL_INTC_EVENTID_EDMA3CC1_INT1 (91)
618 #define CSL_INTC_EVENTID_EDMA3CC1_ERRINT (92)
621 #define CSL_INTC_EVENTID_EDMA3TC2_ERRINT (93)
624 #define CSL_INTC_EVENTID_UPPINT (94)
626 #define CSL_INTC_EVENTID_VPIFINT (95)
628 #define CSL_INTC_EVENTID_INTERR (96)
630 #define CSL_INTC_EVENTID_EMC_IDMAERR (97)
633 #define CSL_INTC_EVENTID_PMC_ED (113)
636 #define CSL_INTC_EVENTID_UMC_ED1 (116)
638 #define CSL_INTC_EVENTID_UMC_ED2 (117)
640 #define CSL_INTC_EVENTID_PDC_INT (118)
643 #define CSL_INTC_EVENTID_SYS_CMPA (119)
646 #define CSL_INTC_EVENTID_PMC_CMPA (120)
648 #define CSL_INTC_EVENTID_PMC_DMPA (121)
650 #define CSL_INTC_EVENTID_DMC_CMPA (122)
652 #define CSL_INTC_EVENTID_DMC_DMPA (123)
654 #define CSL_INTC_EVENTID_UMC_CMPA (124)
656 #define CSL_INTC_EVENTID_UMC_DMPA (125)
658 #define CSL_INTC_EVENTID_EMC_CMPA (126)
660 #define CSL_INTC_EVENTID_EMC_BUSERR (127)
669 #define CSL_EDMA3_NUM_DMACH 32
670 #define CSL_EDMA3_NUM_QDMACH 8
671 #define CSL_EDMA3_NUM_PARAMSETS 128
672 #define CSL_EDMA3_NUM_EVQUE 2
673 #define CSL_EDMA3_CHMAPEXIST 0
674 #define CSL_EDMA3_NUM_REGIONS 4
675 #define CSL_EDMA3_MEMPROTECT 0
680 #define CSL_EDMA3_CHA_CNT (CSL_EDMA3_NUM_DMACH + \
681 CSL_EDMA3_NUM_QDMACH)
686 #define CSL_EDMA3_CHA_MCASP0_RX 0
688 #define CSL_EDMA3_CHA_MCASP0_TX 1
690 #define CSL_EDMA3_CHA_MCBSP0_RX 2
692 #define CSL_EDMA3_CHA_MCBSP0_TX 3
694 #define CSL_EDMA3_CHA_MCBSP1_RX 4
696 #define CSL_EDMA3_CHA_MCBSP1_TX 5
699 #define CSL_EDMA3_CHA_GPIO_BNKINT0 6
701 #define CSL_EDMA3_CHA_GPIO_BNKINT1 7
703 #define CSL_EDMA3_CHA_GPIO_BNKINT2 22
705 #define CSL_EDMA3_CHA_GPIO_BNKINT3 23
707 #define CSL_EDMA3_CHA_GPIO_BNKINT4 28
709 #define CSL_EDMA3_CHA_GPIO_BNKINT5 29
711 #define CSL_EDMA3_CHA_GPIO_BNKINT6 16
713 #define CSL_EDMA3_CHA_GPIO_BNKINT7 17
715 #define CSL_EDMA3_CHA_GPIO_BNKINT8 18
718 #define CSL_EDMA3_CHA_UART0_RX 8
720 #define CSL_EDMA3_CHA_UART0_TX 9
722 #define CSL_EDMA3_CHA_UART1_RX 12
724 #define CSL_EDMA3_CHA_UART1_TX 13
726 #define CSL_EDMA3_CHA_UART2_RX 30
728 #define CSL_EDMA3_CHA_UART2_TX 31
731 #define CSL_EDMA3_CHA_TIMER64P0_EVT12 10
733 #define CSL_EDMA3_CHA_TIMER64P0_EVT34 11
736 #define CSL_EDMA3_CHA_TIMER64P2_EVT12 24
738 #define CSL_EDMA3_CHA_TIMER64P2_EVT34 25
741 #define CSL_EDMA3_CHA_TIMER64P3_EVT12 26
743 #define CSL_EDMA3_CHA_TIMER64P3_EVT34 27
746 #define CSL_EDMA3_CHA_SPI0_RX 14
748 #define CSL_EDMA3_CHA_SPI0_TX 15
750 #define CSL_EDMA3_CHA_SPI1_RX 18
752 #define CSL_EDMA3_CHA_SPI1_TX 19
755 #define CSL_EDMA3_CHA_MMCSD0_RX 16
757 #define CSL_EDMA3_CHA_MMCSD0_TX 17
760 #define CSL_EDMA3_CHA_MMCSD1_RX 28
762 #define CSL_EDMA3_CHA_MMCSD1_TX 29
765 #define CSL_EDMA3_CHA_I2C0_RX 24
767 #define CSL_EDMA3_CHA_I2C0_TX 25
769 #define CSL_EDMA3_CHA_I2C1_RX 26
771 #define CSL_EDMA3_CHA_I2C1_TX 27
774 #define CSL_EDMA3_TIMER2_T12CMPEVT0 00
776 #define CSL_EDMA3_TIMER2_T12CMPEVT1 01
778 #define CSL_EDMA3_TIMER2_T12CMPEVT2 02
780 #define CSL_EDMA3_TIMER2_T12CMPEVT3 03
782 #define CSL_EDMA3_TIMER2_T12CMPEVT4 04
784 #define CSL_EDMA3_TIMER2_T12CMPEVT5 05
786 #define CSL_EDMA3_TIMER2_T12CMPEVT6 06
788 #define CSL_EDMA3_TIMER2_T12CMPEVT7 07
791 #define CSL_EDMA3_TIMER3_T12CMPEVT0 08
793 #define CSL_EDMA3_TIMER3_T12CMPEVT1 09
795 #define CSL_EDMA3_TIMER3_T12CMPEVT2 10
797 #define CSL_EDMA3_TIMER3_T12CMPEVT3 11
799 #define CSL_EDMA3_TIMER3_T12CMPEVT4 12
801 #define CSL_EDMA3_TIMER3_T12CMPEVT5 13
803 #define CSL_EDMA3_TIMER3_T12CMPEVT6 14
805 #define CSL_EDMA3_TIMER3_T12CMPEVT7 15
808 #define CSL_EDMA3_QCHA_BASE CSL_EDMA3_NUM_DMACH
809 #define CSL_EDMA3_QCHA_0 (CSL_EDMA3_QCHA_BASE + 0)
810 #define CSL_EDMA3_QCHA_1 (CSL_EDMA3_QCHA_BASE + 1)
811 #define CSL_EDMA3_QCHA_2 (CSL_EDMA3_QCHA_BASE + 2)
812 #define CSL_EDMA3_QCHA_3 (CSL_EDMA3_QCHA_BASE + 3)
813 #define CSL_EDMA3_QCHA_4 (CSL_EDMA3_QCHA_BASE + 4)
814 #define CSL_EDMA3_QCHA_5 (CSL_EDMA3_QCHA_BASE + 5)
815 #define CSL_EDMA3_QCHA_6 (CSL_EDMA3_QCHA_BASE + 6)
816 #define CSL_EDMA3_QCHA_7 (CSL_EDMA3_QCHA_BASE + 7)
842 #define CSL_EDMA3_REGION_GLOBAL -1
843 #define CSL_EDMA3_REGION_0 0
844 #define CSL_EDMA3_REGION_1 1
845 #define CSL_EDMA3_REGION_2 2
846 #define CSL_EDMA3_REGION_3 3
865 #define CSL_DAT_QCHA_0 0
866 #define CSL_DAT_QCHA_1 1
867 #define CSL_DAT_QCHA_2 2
868 #define CSL_DAT_QCHA_3 3
869 #define CSL_DAT_QCHA_4 4
870 #define CSL_DAT_QCHA_5 5
871 #define CSL_DAT_QCHA_6 6
872 #define CSL_DAT_QCHA_7 7
891 #define CSL_DAT_REGION_GLOBAL -1
892 #define CSL_DAT_REGION_0 0
893 #define CSL_DAT_REGION_1 1
894 #define CSL_DAT_REGION_2 2
895 #define CSL_DAT_REGION_3 3
CSL_DatPriority
Enumerations for EDMA Event Queues.