LMS 2012
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
soc_OMAPL138.h
Go to the documentation of this file.
1 /* ============================================================================
2  * Copyright (c) Texas Instruments Inc 2002, 2003, 2004, 2005, 2006, 2007
3  *
4  * Use of this software is controlled by the terms and conditions found in the
5  * license agreement under which this software has been supplied.
6  * ===========================================================================
7  */
8 
9 #ifndef _SOC_H_
10 #define _SOC_H_
11 
12 /* =============================================================================
13  * Revision History
14  * ===============
15  * 15-Feb-2007 NS File created.
16  * Apr 09 2009 IMTIAZ SMA Updated for OMAPL138 SoC
17  * =============================================================================
18  */
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 #include "csl/cslr.h"
24 
25 /**************************************************************************\
26 * SOC file
27 \**************************************************************************/
28 
29 /******************************************************************************\
30 * Static inline definition
31 \******************************************************************************/
32 #ifndef CSL_IDEF_INLINE
33 #define CSL_IDEF_INLINE static inline
34 #endif
35 
36 /******************************************************************************\
37 * Peripheral Instance count
38 \******************************************************************************/
39 
41 #define CSL_UPP_PER_CNT 1
42 
44 #define CSL_HPI_PER_CNT 1
45 
47 #define CSL_MCASP_PER_CNT 1
48 
50 #define CSL_TMR_PER_CNT 4
51 
53 #define CSL_PSC_PER_CNT 2
54 
56 #define CSL_UART_PER_CNT 3
57 
59 #define CSL_SPI_PER_CNT 2
60 
62 #define CSL_I2C_PER_CNT 2
63 
65 #define CSL_PLLC_PER_CNT 2
66 
68 #define CSL_MMCSD_PER_CNT 2
69 
71 #define CSL_LCDC_PER_CNT 1
72 
74 #define CSL_MCBSP_PER_CNT 2
75 
77 #define CSL_EDMA3CC_CNT 2
78 
80 #define CSL_EDMA3TC_CNT 3
81 
83 #define CSL_EMIFA_PER_CNT 1
84 
86 #define CSL_EMIFB_PER_CNT 1
87 
89 #define CSL_EMAC_PER_CNT 1
90 
92 #define CSL_MDIO_PER_CNT 1
93 
95 #define CSL_EHRPWM_PER_CNT 2
96 
98 #define CSL_ECAP_PER_CNT 3
99 
101 #define CSL_CPGMACSSR_PER_CNT 1
102 
104 #define CSL_CPPI_PER_CNT 1
105 
107 #define CSL_USB_PER_CNT 2
108 
110 #define CSL_VPIF_PER_CNT 1
111 
113 #define CSL_INTC_PER_CNT 1
114 
116 #define CSL_AINTC_PER_CNT 1
117 
119 #define CSL_SATA_PER_CNT 1
120 
122 #define CSL_RTC_PER_CNT 1
123 
125 #define CSL_GPIO_PER_CNT 1
126 
128 #define CSL_SYSCFG_PER_CNT 2
129 /******************************************************************************\
130 * Peripheral Instance definitions.
131 \******************************************************************************/
132 
134 #define CSL_HPI (0)
135 
137 #define CSL_MCASP_0 (0)
138 
140 #define CSL_EDMA3CC_0 (0)
141 #define CSL_EDMA3CC_1 (1)
142 
144 #define CSL_EDMA3TC_0 (0)
145 #define CSL_EDMA3TC_1 (1)
146 
148 #define CSL_TMR_0 (0)
149 #define CSL_TMR_1 (1)
150 #define CSL_TMR_2 (2)
151 #define CSL_TMR_3 (3)
152 
154 #define CSL_PSC_0 (0)
155 #define CSL_PSC_1 (1)
156 
158 #define CSL_UART_0 (0)
159 #define CSL_UART_1 (1)
160 #define CSL_UART_2 (2)
161 
163 #define CSL_SPI_0 (0)
164 #define CSL_SPI_1 (1)
165 
167 #define CSL_I2C_0 (0)
168 #define CSL_I2C_1 (1)
169 
171 #define CSL_MMCSD_0 (0)
172 #define CSL_MMCSD_1 (1)
173 
175 #define CSL_LCDC (0)
176 
178 #define CSL_PLLC_0 (0)
179 #define CSL_PLLC_1 (1)
180 
182 #define CSL_EMIFA (0)
183 
185 #define CSL_EMAC (0)
186 
188 #define CSL_MDIO (0)
189 
191 #define CSL_EHRPWM_0 (0)
192 #define CSL_EHRPWM_1 (1)
193 
195 #define CSL_ECAP_0 (0)
196 #define CSL_ECAP_1 (1)
197 #define CSL_ECAP_2 (2)
198 
200 #define CSL_USB_0 (0)
201 #define CSL_USB_1 (1)
202 
204 #define CSL_PRUCORE_0 (0)
205 #define CSL_PRUCORE_1 (1)
206 
208 #define CSL_PRUINTC (0)
209 
211 #define CSL_INTC (0)
212 
214 #define CSL_AINTC (0)
215 
217 #define CSL_RTC (0)
218 
220 #define CSL_GPIO (0)
221 
223 #define CSL_ECTL (0)
224 
226 #define CSL_SYSCFG (2)
227 
228 /*******************************************************************************
229 * Peripheral Base Address
230 *******************************************************************************/
231 
233 #define CSL_INTC_0_REGS (0x01800000u)
234 
236 #define CSL_PWRDWN_PDC_REGS (0x01810000u)
237 
239 #define CSL_SYS_0_SECURITY_ID_REGS (0x01811000u)
240 
242 #define CSL_SYS_0_REV_ID_REGS (0x01812000u)
243 
245 #define CSL_IDMA_0_REGS (0x01820000u)
246 
248 #define CSL_EMC_0_REGS (0x01820000u)
249 
251 #define CSL_CACHE_0_REGS (0x01840000u)
252 
254 #define CSL_EDMA30CC_0_REGS (0x01C00000u)
255 
257 #define CSL_EDMA30TC_0_REGS (0x01C08000u)
258 #define CSL_EDMA30TC_1_REGS (0x01C08400u)
259 
261 #define CSL_PSC_0_REGS (0x01C10000u)
262 
264 #define CSL_PLLC_0_REGS (0x01C11000u)
265 
267 #define CSL_SYSCFG_0_REGS (0x01C14000u)
268 
270 #define CSL_TMR_0_REGS (0x01C20000u)
271 #define CSL_TMR_1_REGS (0x01C21000u)
272 
274 #define CSL_I2C_0_REGS (0x01C22000u)
275 
277 #define CSL_RTC_0_REGS (0x01C23000u)
278 
280 #define CSL_MMCSD_0_REGS (0x01C40000u)
281 
283 #define CSL_SPI_0_REGS (0x01C41000u)
284 
286 #define CSL_UART_0_REGS (0x01C42000u)
287 
289 #define CSL_MCASP_0_CTRL_REGS (0x01D00000u)
290 #define CSL_MCASP_0_FIFO_REGS (0x01D01000u)
291 #define CSL_MCASP_0_DATA_REGS (0x01D02000u)
292 
294 #define CSL_UART_1_REGS (0x01D0C000u)
295 #define CSL_UART_2_REGS (0x01D0D000u)
296 
298 #define CSL_MCBSP_0_CTRL_REGS (0x01D10000u)
299 #define CSL_MCBSP_0_FIFO_REGS (0x01D10800u)
300 #define CSL_MCBSP_0_DATA_REGS (0x01F10000u)
301 
303 #define CSL_MCBSP_1_CTRL_REGS (0x01D11000u)
304 #define CSL_MCBSP_1_FIFO_REGS (0x01D11800u)
305 #define CSL_MCBSP_1_DATA_REGS (0x01F10000u)
306 
308 #define CSL_USB_0_REGS (0x01E00000u)
309 #define CSL_USB_1_REGS (0x01E25000u)
310 
312 #define CSL_HPI_0_REGS (0x01E10000u)
313 
315 #define CSL_LCDC_0_REGS (0x01E13000u)
316 
318 #define CSL_UPP_0_REGS (0x01E16000u)
319 
321 #define CSL_VPIF_0_REGS (0x01E17000u)
322 
324 #define CSL_SATA_0_REGS (0x01E18000u)
325 
327 #define CSL_PLLC_1_REGS (0X01E1A000u)
328 
330 #define CSL_MMCSD_1_REGS (0x01E1B000u)
331 
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)
337 
339 #define CSL_PRUCORE_0_REGS (0x01C37000u)
340 #define CSL_PRUCORE_1_REGS (0x01C37800u)
341 
343 #define CSL_PRUINTC_0_REGS (0x01C34000u)
344 
346 #define CSL_GPIO_0_REGS (0x01E26000u)
347 
349 #define CSL_PSC_1_REGS (0x01E27000u)
350 
352 #define CSL_I2C_1_REGS (0x01E28000u)
353 
355 #define CSL_SYSCFG_1_REGS (0x01E2C000u)
356 
358 #define CSL_EDMA31CC_0_REGS (0x01E30000u)
359 
361 #define CSL_EDMA31TC_0_REGS (0x01E38000u)
362 
364 #define CSL_EHRPWM_0_REGS (0x01F00000u)
365 #define CSL_EHRPWM_1_REGS (0x01F02000u)
366 
368 #define CSL_HRPWM_0_REGS (0x01F01000u)
369 #define CSL_HRPWM_1_REGS (0x01F03000u)
370 
372 #define CSL_ECAP_0_REGS (0x01F06000u)
373 #define CSL_ECAP_1_REGS (0x01F07000u)
374 #define CSL_ECAP_2_REGS (0x01F08000u)
375 
377 #define CSL_TMR_2_REGS (0x01F0C000u)
378 #define CSL_TMR_3_REGS (0x01F0D000u)
379 
381 #define CSL_SPI_1_REGS (0x01F0E000u)
382 
384 #define CSL_EMIFA_0_REGS (0x68000000u)
385 
387 #define CSL_EMIFA_CS0_ADDR (0x40000000u)
388 
390 #define CSL_EMIFA_CS2_ADDR (0x60000000u)
391 
393 #define CSL_EMIFA_CS3_ADDR (0x62000000u)
394 
396 #define CSL_EMIFA_CS4_ADDR (0x64000000u)
397 
399 #define CSL_EMIFA_CS5_ADDR (0x66000000u)
400 
402 #define CSL_DDR2_0_CTRL_REGS (0xB0000000u)
403 #define CSL_DDR2_0_DATA_REGS (0xC0000000u)
404 
406 #define CSL_AINTC_0_REGS (0xFFFEE000u)
407 
409 #define CSL_MEMPROT_L2_REGS (0x00800000u)
410 
412 #define CSL_MEMPROT_L1P_REGS (0x00E00000u)
413 
415 #define CSL_MEMPROT_L1D_REGS (0x00F00000u)
416 
417 /******************************************************************************\
418 * Interrupt Event IDs
419 \******************************************************************************/
420 
421 /*
422  * @brief Interrupt Event IDs
423  */
424 /* Output of event combiner 0, for events 1 to 31 */
425 #define CSL_INTC_EVENTID_EVT0 (0)
426 /* Output of event combiner 0, for events 32 to 63 */
427 #define CSL_INTC_EVENTID_EVT1 (1)
428 /* Output of event combiner 0, for events 64 to 95 */
429 #define CSL_INTC_EVENTID_EVT2 (2)
430 /* Output of event combiner 0, for events 96 to 127 */
431 #define CSL_INTC_EVENTID_EVT3 (3)
432 
433 /* Timer 64P0 lower counter interrupt */
434 #define CSL_INTC_EVENTID_T64P0_TINT12 (4)
435 
436 /* SYSCFG CHIPSIG Register Interrupt */
437 #define CSL_INTC_EVENTID_BOOTCFGINT0 (5)
438 
439 #define CSL_INTC_EVENTID_EHRPWM0 (7)
440 
441 /* CC Completion Interrupt for region 1 */
442 #define CSL_INTC_EVENTID_EDMA3CC_INT1 (8)
443 /* EMU interrupt */
444 #define CSL_INTC_EVENTID_EMU_DTDMA (9)
445 
446 /* HiResTimer Trip Zone Interrupt */
447 #define CSL_INTC_EVENTID_EHRPWM0TZ (10)
448 
449 /* EMU real time data exchange receive complete */
450 #define CSL_INTC_EVENTID_EMU_RTDXRX (11)
451 /* EMU RTDX transmit complete */
452 #define CSL_INTC_EVENTID_EMU_RTDXTX (12)
453 
454 /* IDMA Channel 0 Interrupt */
455 #define CSL_INTC_EVENTID_IDMA0 (13)
456 /* IDMA Channel 1 Interrupt */
457 #define CSL_INTC_EVENTID_IDMA1 (14)
458 
459 /* mmcsd0 mmcsd interrupt */
460 #define CSL_INTC_EVENTID_MMCSD0_INT0 (15)
461 /* mmcsd0 SDIO interrupt */
462 #define CSL_INTC_EVENTID_MMCSD0_INT1 (16)
463 
464 #define CSL_INTC_EVENTID_EHRPWM1 (18)
465 
466 /* USB Interrupt */
467 #define CSL_INTC_EVENTID_USBINT0 (19)
468 #define CSL_INTC_EVENTID_USB1_HCINT (20)
469 #define CSL_INTC_EVENTID_USB1_RWAKEUP (21)
470 
471 #define CSL_INTC_EVENTID_EHRPWM1TZ (23)
472 
473 /* SATA interrupt */
474 #define CSL_INTC_EVENTID_SATAINT (24)
475 
476 /* Timer 64P2 COMBINED counter interrupt */
477 #define CSL_INTC_EVENTID_T64P2_TINTALL (25)
478 
479 /* EMAC Interrupt */
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)
488 
489 /* UHPI DSPI Interrupt */
490 #define CSL_INTC_EVENTID_UHPI_DSPINT (34)
491 
492 /* I2C interrupt */
493 #define CSL_INTC_EVENTID_I2CINT0 (36)
494 
495 /* SPI interrupt */
496 #define CSL_INTC_EVENTID_SPIINT0 (37)
497 
498 /* UART interrupt */
499 #define CSL_INTC_EVENTID_UARTINT0 (38)
500 
501 /* Timer 64P1 lower counter interrupt */
502 #define CSL_INTC_EVENTID_T64P1_TINT12 (40)
503 
504 /* GPIO BANK 1 interrupt */
505 #define CSL_INTC_EVENTID_GPIO_BNK1_INT (41)
506 
507 #define CSL_INTC_EVENTID_I2CINT1 (42)
508 
509 /* SPI interrupt */
510 #define CSL_INTC_EVENTID_SPIINT1 (43)
511 
512 /* ECAP0 interrupt */
513 #define CSL_INTC_EVENTID_ECAPINT0 (45)
514 
515 /* UART INTERRUPT */
516 #define CSL_INTC_EVENTID_UARTINT1 (46)
517 
518 /* ECAP1 interrupt */
519 #define CSL_INTC_EVENTID_ECAPINT1 (47)
520 
521 /* Timer 64P1 higher counter interrupt */
522 #define CSL_INTC_EVENTID_T64P1_TINT34 (48)
523 
524 /* GPIO BANK 2 interrupt */
525 #define CSL_INTC_EVENTID_GPIO_BNK2_INT (49)
526 
527 /* ECAP2 interrupt */
528 #define CSL_INTC_EVENTID_ECAPINT2 (51)
529 
530 /* GPIO BANK 3 interrupt */
531 #define CSL_INTC_EVENTID_GPIO_BNK3_INT (52)
532 
533 /* mmcsd1 SDIO interrupt */
534 #define CSL_INTC_EVENTID_MMCSD1_INT1 (53)
535 
536 /* GPIO BANK 4 interrupt */
537 #define CSL_INTC_EVENTID_GPIO_BNK4_INT (54)
538 
539 /* EMIFA Error Interrupt */
540 #define CSL_INTC_EVENTID_EMIFAINT (55)
541 
542 /* EDMA3 CC Interrupt */
543 #define CSL_INTC_EVENTID_TPCC0_ERRINT (56)
544 /* EDMA3 TC Interrupt */
545 #define CSL_INTC_EVENTID_TPTC_ERRINT0 (57)
546 #define CSL_INTC_EVENTID_TPTC_ERRINT1 (58)
547 
548 /* GPIO BANK 5 interrupt */
549 #define CSL_INTC_EVENTID_GPIO_BNK5_INT (59)
550 
551 /* DDR2 memory err interrupt */
552 #define CSL_INTC_EVENTID_DDR2_MEMERR (60)
553 
554 /* McASP combined interrupt */
555 #define CSL_INTC_EVENTID_MCASP0INT (61)
556 
557 /* GPIO BANK 6 interrupt */
558 #define CSL_INTC_EVENTID_GPIO_BNK6_INT (62)
559 
560 /* RTC Combined Interrupt */
561 #define CSL_INTC_EVENTID_RTC_IRQS (63)
562 
563 /* Timer 64P0 higher counter interrupt */
564 #define CSL_INTC_EVENTID_T64P0_TINT34 (64)
565 
566 /* GPIO BANK 0 interrupt */
567 #define CSL_INTC_EVENTID_GPIO_BNK0_INT (65)
568 
569 /* SYSCFG_CHIPSIG Register */
570 #define CSL_INTC_EVENTID_SYSCFG_CHIPINT3 (67)
571 
572 /* MMCSD 1 interrupt */
573 #define CSL_INTC_EVENTID_MMCSD1_INT0 (68)
574 
575 /* uart2 interrupt */
576 #define CSL_INTC_EVENTID_UARTINT2 (69)
577 /* PSC interrupt */
578 #define CSL_INTC_EVENTID_PSC0_ALLINT (70)
579 #define CSL_INTC_EVENTID_PSC1_ALLINT (71)
580 
581 /* GPIO bank 7 interrupt */
582 #define CSL_INTC_EVENTID_GPIO_BNK7_INT (72)
583 
584 /* LCDC interrupt */
585 #define CSL_INTC_EVENTID_LCDC_INT0 (73)
586 
587 /* SYSCFG Protection Shared Interrupt */
588 #define CSL_INTC_EVENTID_PROTERR (74)
589 
590 /* GPIO bank 8 interrupt */
591 #define CSL_INTC_EVENTID_GPIO_BNK8_INT (75)
592 
593 /* Timer 64P2 Compare Interrupt */
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)
602 /* Timer 64P3 Compare Interrupt */
603 #define CSL_INTC_EVENTID_T64P3_TINTALL (86)
604 
605 /* McBSP0 RX interrupt */
606 #define CSL_INTC_EVENTID_MCBSP0_RXINT (87)
607 /* McBSP0 TX interrupt */
608 #define CSL_INTC_EVENTID_MCBSP0_TXINT (88)
609 /* McBSP1 RX interrupt */
610 #define CSL_INTC_EVENTID_MCBSP1_RXINT (89)
611 /* McBSP1 TX interrupt */
612 #define CSL_INTC_EVENTID_MCBSP1_TXINT (90)
613 
614 /* CC1 region 1 interrupt */
615 #define CSL_INTC_EVENTID_EDMA3CC1_INT1 (91)
616 
617 /* CC1 Error Interrupt */
618 #define CSL_INTC_EVENTID_EDMA3CC1_ERRINT (92)
619 
620 /* TC2 Error Interrupt */
621 #define CSL_INTC_EVENTID_EDMA3TC2_ERRINT (93)
622 
623 /* UPP interrupt event */
624 #define CSL_INTC_EVENTID_UPPINT (94)
625 /* VPIF INTERRUPT EVENT */
626 #define CSL_INTC_EVENTID_VPIFINT (95)
627 /* Dropped CPU interrupt event */
628 #define CSL_INTC_EVENTID_INTERR (96)
629 /* EMC Invalid IDMA parameters */
630 #define CSL_INTC_EVENTID_EMC_IDMAERR (97)
631 
632 /* PMC Single bit error detected during DMA read */
633 #define CSL_INTC_EVENTID_PMC_ED (113)
634 
635 /* UMC single bit error detected */
636 #define CSL_INTC_EVENTID_UMC_ED1 (116)
637 /* UMC two bit error detected */
638 #define CSL_INTC_EVENTID_UMC_ED2 (117)
639 /* Power Down sleep interrupt */
640 #define CSL_INTC_EVENTID_PDC_INT (118)
641 
642 /* SYS CMPA CPU memory protection fault */
643 #define CSL_INTC_EVENTID_SYS_CMPA (119)
644 
645 /* PMC CPU memory protection fault */
646 #define CSL_INTC_EVENTID_PMC_CMPA (120)
647 /* PMC DMA memory protection fault */
648 #define CSL_INTC_EVENTID_PMC_DMPA (121)
649 /* DMC CPU memory protection fault */
650 #define CSL_INTC_EVENTID_DMC_CMPA (122)
651 /* DMC DMA memory protection fault */
652 #define CSL_INTC_EVENTID_DMC_DMPA (123)
653 /* UMC CPU memory protection fault */
654 #define CSL_INTC_EVENTID_UMC_CMPA (124)
655 /* UMC DMA memory protection fault */
656 #define CSL_INTC_EVENTID_UMC_DMPA (125)
657 /* IDMA CPU memory protection fault */
658 #define CSL_INTC_EVENTID_EMC_CMPA (126)
659 /* IDMA Bus error interrupt */
660 #define CSL_INTC_EVENTID_EMC_BUSERR (127)
661 
662 /*************************** EDMA RELATED DEFINES ****************************/
663 
664 /******************************************************************************\
665 * Parameterizable Configuration:- These are fed directly from the RTL
666 * parameters for the given SOC
667 \******************************************************************************/
668 
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
676 
677 /******************************************************************************\
678 * Channel Instance count
679 \******************************************************************************/
680 #define CSL_EDMA3_CHA_CNT (CSL_EDMA3_NUM_DMACH + \
681  CSL_EDMA3_NUM_QDMACH)
682 
683 /* EDMA channel synchronization events */
684 
685 /* McASP0 Receive Event */
686 #define CSL_EDMA3_CHA_MCASP0_RX 0
687 /* McASP0 Transmit Event */
688 #define CSL_EDMA3_CHA_MCASP0_TX 1
689 /* McBSP0 Receive Event */
690 #define CSL_EDMA3_CHA_MCBSP0_RX 2
691 /* McBSP1 Transmit Event */
692 #define CSL_EDMA3_CHA_MCBSP0_TX 3
693 /* McBSP1 Receive Event */
694 #define CSL_EDMA3_CHA_MCBSP1_RX 4
695 /* McBSP1 Transmit Event */
696 #define CSL_EDMA3_CHA_MCBSP1_TX 5
697 
698 /* GPIO Bank0 event */
699 #define CSL_EDMA3_CHA_GPIO_BNKINT0 6
700 /* GPIO Bank1 event */
701 #define CSL_EDMA3_CHA_GPIO_BNKINT1 7
702 /* GPIO Bank2 event */
703 #define CSL_EDMA3_CHA_GPIO_BNKINT2 22
704 /* GPIO Bank3 event */
705 #define CSL_EDMA3_CHA_GPIO_BNKINT3 23
706 /* GPIO Bank4 event */
707 #define CSL_EDMA3_CHA_GPIO_BNKINT4 28
708 /* GPIO Bank5 event */
709 #define CSL_EDMA3_CHA_GPIO_BNKINT5 29
710 /* GPIO Bank6 event (TPCC1) */
711 #define CSL_EDMA3_CHA_GPIO_BNKINT6 16
712 /* GPIO Bank7 event (TPCC1) */
713 #define CSL_EDMA3_CHA_GPIO_BNKINT7 17
714 /* GPIO Bank8 event (TPCC1) */
715 #define CSL_EDMA3_CHA_GPIO_BNKINT8 18
716 
717 /* UART0 Receive Event */
718 #define CSL_EDMA3_CHA_UART0_RX 8
719 /* UART0 Transmit Event */
720 #define CSL_EDMA3_CHA_UART0_TX 9
721 /* UART1 Receive Event */
722 #define CSL_EDMA3_CHA_UART1_RX 12
723 /* UART1 Transmit Event */
724 #define CSL_EDMA3_CHA_UART1_TX 13
725 /* UART2 Receive Event */
726 #define CSL_EDMA3_CHA_UART2_RX 30
727 /* UART2 Transmit Event */
728 #define CSL_EDMA3_CHA_UART2_TX 31
729 
730 /* Timer 64P0 Event Out 12 */
731 #define CSL_EDMA3_CHA_TIMER64P0_EVT12 10
732 /* Timer 64P0 Event Out 34 */
733 #define CSL_EDMA3_CHA_TIMER64P0_EVT34 11
734 
735 /* Timer 64P2 Event Out 12 (TPCC1) */
736 #define CSL_EDMA3_CHA_TIMER64P2_EVT12 24
737 /* Timer 64P2 Event Out 34 (TPCC1) */
738 #define CSL_EDMA3_CHA_TIMER64P2_EVT34 25
739 
740 /* Timer 64P3 Event Out 12 (TPCC1) */
741 #define CSL_EDMA3_CHA_TIMER64P3_EVT12 26
742 /* Timer 64P3 Event Out 34 (TPCC1) */
743 #define CSL_EDMA3_CHA_TIMER64P3_EVT34 27
744 
745 /* SPI0 Receive Event */
746 #define CSL_EDMA3_CHA_SPI0_RX 14
747 /* SPI0 Transmit Event */
748 #define CSL_EDMA3_CHA_SPI0_TX 15
749 /* SPI1 Receive Event */
750 #define CSL_EDMA3_CHA_SPI1_RX 18
751 /* SPI1 Transmit Event */
752 #define CSL_EDMA3_CHA_SPI1_TX 19
753 
754 /* MMCSD0 Receive Event */
755 #define CSL_EDMA3_CHA_MMCSD0_RX 16
756 /* MMCSD0 Transmit Event */
757 #define CSL_EDMA3_CHA_MMCSD0_TX 17
758 
759 /* MMCSD1 Receive Event (TPCC1) */
760 #define CSL_EDMA3_CHA_MMCSD1_RX 28
761 /* MMCSD1 Transmit Event (TPCC1) */
762 #define CSL_EDMA3_CHA_MMCSD1_TX 29
763 
764 /* I2C0 Receive Event */
765 #define CSL_EDMA3_CHA_I2C0_RX 24
766 /* I2C0 Transmit Event */
767 #define CSL_EDMA3_CHA_I2C0_TX 25
768 /* I2C1 Receive Event */
769 #define CSL_EDMA3_CHA_I2C1_RX 26
770 /* I2C1 Transmit Event */
771 #define CSL_EDMA3_CHA_I2C1_TX 27
772 
773 /* Timer 2 compare event0 (TPCC1) */
774 #define CSL_EDMA3_TIMER2_T12CMPEVT0 00
775 /* Timer 2 compare event1 (TPCC1) */
776 #define CSL_EDMA3_TIMER2_T12CMPEVT1 01
777 /* Timer 2 compare event2 (TPCC1) */
778 #define CSL_EDMA3_TIMER2_T12CMPEVT2 02
779 /* Timer 2 compare event3 (TPCC1) */
780 #define CSL_EDMA3_TIMER2_T12CMPEVT3 03
781 /* Timer 2 compare event4 (TPCC1) */
782 #define CSL_EDMA3_TIMER2_T12CMPEVT4 04
783 /* Timer 2 compare event5 (TPCC1) */
784 #define CSL_EDMA3_TIMER2_T12CMPEVT5 05
785 /* Timer 2 compare event6 (TPCC1) */
786 #define CSL_EDMA3_TIMER2_T12CMPEVT6 06
787 /* Timer 2 compare event7 (TPCC1) */
788 #define CSL_EDMA3_TIMER2_T12CMPEVT7 07
789 
790 /* Timer 3 compare event0 (TPCC1) */
791 #define CSL_EDMA3_TIMER3_T12CMPEVT0 08
792 /* Timer 3 compare event1 (TPCC1) */
793 #define CSL_EDMA3_TIMER3_T12CMPEVT1 09
794 /* Timer 3 compare event2 (TPCC1) */
795 #define CSL_EDMA3_TIMER3_T12CMPEVT2 10
796 /* Timer 3 compare event3 (TPCC1) */
797 #define CSL_EDMA3_TIMER3_T12CMPEVT3 11
798 /* Timer 3 compare event4 (TPCC1) */
799 #define CSL_EDMA3_TIMER3_T12CMPEVT4 12
800 /* Timer 3 compare event5 (TPCC1) */
801 #define CSL_EDMA3_TIMER3_T12CMPEVT5 13
802 /* Timer 3 compare event6 (TPCC1) */
803 #define CSL_EDMA3_TIMER3_T12CMPEVT6 14
804 /* Timer 3 compare event7 (TPCC1) */
805 #define CSL_EDMA3_TIMER3_T12CMPEVT7 15
806 
807 /* QDMA channels */
808 #define CSL_EDMA3_QCHA_BASE CSL_EDMA3_NUM_DMACH /* QDMA Channel Base */
809 #define CSL_EDMA3_QCHA_0 (CSL_EDMA3_QCHA_BASE + 0) /* QDMA Channel 0 */
810 #define CSL_EDMA3_QCHA_1 (CSL_EDMA3_QCHA_BASE + 1) /* QDMA Channel 1 */
811 #define CSL_EDMA3_QCHA_2 (CSL_EDMA3_QCHA_BASE + 2) /* QDMA Channel 2 */
812 #define CSL_EDMA3_QCHA_3 (CSL_EDMA3_QCHA_BASE + 3) /* QDMA Channel 3 */
813 #define CSL_EDMA3_QCHA_4 (CSL_EDMA3_QCHA_BASE + 4) /* QDMA Channel 4 */
814 #define CSL_EDMA3_QCHA_5 (CSL_EDMA3_QCHA_BASE + 5) /* QDMA Channel 5 */
815 #define CSL_EDMA3_QCHA_6 (CSL_EDMA3_QCHA_BASE + 6) /* QDMA Channel 6 */
816 #define CSL_EDMA3_QCHA_7 (CSL_EDMA3_QCHA_BASE + 7) /* QDMA Channel 7 */
817 
818 /* Enumerations for EDMA Controlleres */
819  typedef enum {
820  CSL_EDMACC_ANY = -1, /* Any instance of EDMACC module */
821  CSL_EDMACC_0 = 0 /* EDMACC Instance 0 */
822  } CSL_EdmaccNum;
823 
824 /* Enumerations for EDMA Event Queues */
825  typedef enum {
826  CSL_EDMA3_QUE_0 = 0, /* Queue 0 */
827  CSL_EDMA3_QUE_1 = 1 /* Queue 1 */
828  } CSL_Edma3Que;
829 
830 /* Enumerations for EDMA Transfer Controllers
831  *
832  * There are 2 Transfer Controllers. Typically a one to one mapping exists
833  * between Event Queues and Transfer Controllers.
834  *
835  */
836  typedef enum {
837  CSL_EDMATC_ANY = -1, /* Any instance of EDMATC */
838  CSL_EDMATC_0 = 0, /* EDMATC Instance 0 */
839  CSL_EDMATC_1 = 1 /* EDMATC Instance 1 */
840  } CSL_EdmatcNum;
841 
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
847 
848 /******************************* DAT RELATED DEFINES **************************/
849 
850 /******************************************************************************\
851 * Parameterizable Configuration:- These are fed directly from the RTL
852 * parameters for the given SOC
853 \******************************************************************************/
854 /******************************************************************************\
855 * Channel Instance count
856 \******************************************************************************/
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
880  typedef enum {
881  CSL_DAT_PRI_DEFAULT = 0, /* Queue 0 is default */
882  CSL_DAT_PRI_0 = 0, /* Queue 0 */
883  CSL_DAT_PRI_1 = 1 /* Queue 1 */
884  } CSL_DatPriority;
885 
891 #define CSL_DAT_REGION_GLOBAL -1 /* Global Region */
892 #define CSL_DAT_REGION_0 0 /* EDMA Region 0 */
893 #define CSL_DAT_REGION_1 1 /* EDMA Region 1 */
894 #define CSL_DAT_REGION_2 2 /* EDMA Region 2 */
895 #define CSL_DAT_REGION_3 3 /* EDMA Region 3 */
896 
897 #ifdef __cplusplus
898 }
899 #endif
900 #endif /* _SOC_H_ */
CSL_EdmaccNum
Definition: soc_OMAPL138.h:819
CSL_DatPriority
Enumerations for EDMA Event Queues.
Definition: soc_OMAPL138.h:880
CSL_EdmatcNum
Definition: soc_OMAPL138.h:836
CSL_Edma3Que
Definition: soc_OMAPL138.h:825