1 /*
2  * Copyright  2017 NXP
3  * All rights reserved.
4  *
5  *
6  * SPDX-License-Identifier: BSD-3-Clause
7  */
8 
9 #ifndef _FSL_INPUTMUX_CONNECTIONS_
10 #define _FSL_INPUTMUX_CONNECTIONS_
11 
12 /*******************************************************************************
13  * Definitions
14  ******************************************************************************/
15 /* Component ID definition, used by tools. */
16 #ifndef FSL_COMPONENT_ID
17 #define FSL_COMPONENT_ID "platform.drivers.inputmux_connections"
18 #endif
19 
20 /*!
21  * @addtogroup inputmux_driver
22  * @{
23  */
24 
25 /*!
26  * @name Input multiplexing connections
27  * @{
28  */
29 
30 /*! @brief Periphinmux IDs */
31 #define DMA_OTRIG_PMUX_ID 0x00U
32 #define SCT0_PMUX_ID 0x20U
33 #define DMA_TRIG0_PMUX_ID 0x40U
34 #define PMUX_SHIFT 20U
35 
36 /*! @brief INPUTMUX connections type */
37 typedef enum _inputmux_connection_t
38 {
39     /*!< DMA OTRIG. */
40     kINPUTMUX_DmaChannel0TrigoutToTriginChannels = 0U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
41     kINPUTMUX_DmaChannel1TrigoutToTriginChannels = 1U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
42     kINPUTMUX_DmaChannel2TrigoutToTriginChannels = 2U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
43     kINPUTMUX_DmaChannel3TrigoutToTriginChannels = 3U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
44     kINPUTMUX_DmaChannel4TrigoutToTriginChannels = 4U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
45     kINPUTMUX_DmaChannel5TrigoutToTriginChannels = 5U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
46     kINPUTMUX_DmaChannel6TrigoutToTriginChannels = 6U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
47     kINPUTMUX_DmaChannel7TrigoutToTriginChannels = 7U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
48     kINPUTMUX_DmaChannel80TrigoutToTriginChannels = 8U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
49     kINPUTMUX_DmaChannel9TrigoutToTriginChannels = 9U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
50     kINPUTMUX_DmaChannel10TrigoutToTriginChannels = 10U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
51     kINPUTMUX_DmaChannel11TrigoutToTriginChannels = 11U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
52     kINPUTMUX_DmaChannel12TrigoutToTriginChannels = 12U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
53     kINPUTMUX_DmaChannel13TrigoutToTriginChannels = 13U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
54     kINPUTMUX_DmaChannel14TrigoutToTriginChannels = 14U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
55     kINPUTMUX_DmaChannel15TrigoutToTriginChannels = 15U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
56     kINPUTMUX_DmaChannel16TrigoutToTriginChannels = 16U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
57     kINPUTMUX_DmaChannel17TrigoutToTriginChannels = 17U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
58     kINPUTMUX_DmaChannel18TrigoutToTriginChannels = 18U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
59     kINPUTMUX_DmaChannel19TrigoutToTriginChannels = 19U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
60     kINPUTMUX_DmaChannel20TrigoutToTriginChannels = 20U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
61     kINPUTMUX_DmaChannel21TrigoutToTriginChannels = 21U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
62     kINPUTMUX_DmaChannel22TrigoutToTriginChannels = 22U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
63     kINPUTMUX_DmaChannel23TrigoutToTriginChannels = 23U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
64     kINPUTMUX_DmaChannel24TrigoutToTriginChannels = 24U + (DMA_OTRIG_PMUX_ID << PMUX_SHIFT),
65 
66     /*!< SCT INMUX. */
67     kINPUTMUX_SctPin0ToSct0 = 0U + (SCT0_PMUX_ID << PMUX_SHIFT),
68     kINPUTMUX_SctPin1ToSct0 = 1U + (SCT0_PMUX_ID << PMUX_SHIFT),
69     kINPUTMUX_SctPin2ToSct0 = 2U + (SCT0_PMUX_ID << PMUX_SHIFT),
70     kINPUTMUX_SctPin3ToSct0 = 3U + (SCT0_PMUX_ID << PMUX_SHIFT),
71     kINPUTMUX_AdcThcmpIrqToSct0 = 4U + (SCT0_PMUX_ID << PMUX_SHIFT),
72     kINPUTMUX_AcmpOToSct0 = 5U + (SCT0_PMUX_ID << PMUX_SHIFT),
73     kINPUTMUX_T0Mat2ToSct0 = 6U + (SCT0_PMUX_ID << PMUX_SHIFT),
74     kINPUTMUX_GpiointBmatchToSct0 = 7U + (SCT0_PMUX_ID << PMUX_SHIFT),
75     kINPUTMUX_ArmTxevToSct0 = 8U + (SCT0_PMUX_ID << PMUX_SHIFT),
76     kINPUTMUX_DebugHaltedToSct0 = 9U + (SCT0_PMUX_ID << PMUX_SHIFT),
77 
78     /*!< DMA ITRIG. */
79     kINPUTMUX_AdcASeqaIrqToDma = 0U + (DMA_TRIG0_PMUX_ID << PMUX_SHIFT),
80     kINPUTMUX_AdcBSeqbIrqToDma = 1U + (DMA_TRIG0_PMUX_ID << PMUX_SHIFT),
81     kINPUTMUX_SctDma0ToDma = 2U + (DMA_TRIG0_PMUX_ID << PMUX_SHIFT),
82     kINPUTMUX_SctDma1ToDma = 3U + (DMA_TRIG0_PMUX_ID << PMUX_SHIFT),
83     kINPUTMUX_AcmpOToDma = 4U + (DMA_TRIG0_PMUX_ID << PMUX_SHIFT),
84     kINPUTMUX_PinInt4ToDma = 5U + (DMA_TRIG0_PMUX_ID << PMUX_SHIFT),
85     kINPUTMUX_PinInt5ToDma = 6U + (DMA_TRIG0_PMUX_ID << PMUX_SHIFT),
86     kINPUTMUX_PinInt6ToDma = 7U + (DMA_TRIG0_PMUX_ID << PMUX_SHIFT),
87     kINPUTMUX_PinInt7ToDma = 8U + (DMA_TRIG0_PMUX_ID << PMUX_SHIFT),
88     kINPUTMUX_T0DmareqM0ToDma = 9U + (DMA_TRIG0_PMUX_ID << PMUX_SHIFT),
89     kINPUTMUX_T0DmareqM1ToDma = 10U + (DMA_TRIG0_PMUX_ID << PMUX_SHIFT),
90     kINPUTMUX_DmaTriggerMux0ToDma = 11U + (DMA_TRIG0_PMUX_ID << PMUX_SHIFT),
91     kINPUTMUX_DmaTriggerMux1ToDma = 12U + (DMA_TRIG0_PMUX_ID << PMUX_SHIFT),
92 } inputmux_connection_t;
93 
94 /*@}*/
95 
96 /*@}*/
97 
98 #endif /* _FSL_INPUTMUX_CONNECTIONS_ */
99