32111af46c13a0e571c1f532e23217e1350bece1
[processor-sdk/pdk.git] / packages / ti / board / src / j721e_evm / J721E_pinmux.h
1 /**\r
2  * Note: This file was auto-generated by TI PinMux on 5/10/2019.\r
3  *\r
4  * \file   J721E_pinmux.h\r
5  *\r
6  * \brief  This file contains pad configure register offsets and bit-field\r
7  *         value macros for different configurations,\r
8  *\r
9  *           BIT[21]        TXDISABLE       disable the pin's output driver\r
10  *           BIT[18]        RXACTIVE        enable the pin's input buffer (typically kept enabled)\r
11  *           BIT[17]        PULLTYPESEL     set the iternal resistor pull direction high or low (if enabled)\r
12  *           BIT[16]        PULLUDEN        internal resistor disable (0 = enabled / 1 = disabled)\r
13  *           BIT[3:0]       MUXMODE         select the desired function on the given pin\r
14  *\r
15  *  \copyright Copyright (CU) 2019 Texas Instruments Incorporated -\r
16  *             http://www.ti.com/\r
17  */\r
18 \r
19 #ifndef _J721E_PIN_MUX_H_\r
20 #define _J721E_PIN_MUX_H_\r
21 \r
22 /* ========================================================================== */\r
23 /*                             Include Files                                  */\r
24 /* ========================================================================== */\r
25 \r
26 #include <ti/board/src/j721e_evm/include/pinmux.h>\r
27 #include <ti/csl/csl_types.h>\r
28 \r
29 #ifdef __cplusplus\r
30 extern "C" {\r
31 #endif\r
32 \r
33 /* ========================================================================== */\r
34 /*                           Macros & Typedefs                                */\r
35 /* ========================================================================== */\r
36 #define PIN_MODE(mode)                  (mode)\r
37 #define PINMUX_END                      (-1)\r
38 \r
39 /** \brief Active mode configurations */\r
40 /** \brief Resistor enable */\r
41 #define PIN_PULL_DISABLE                (0x1U << 16U)\r
42 /** \brief Pull direction */\r
43 #define PIN_PULL_DIRECTION              (0x1U << 17U)\r
44 /** \brief Receiver enable */\r
45 #define PIN_INPUT_ENABLE                (0x1U << 18U)\r
46 /** \brief Driver disable */\r
47 #define PIN_OUTPUT_DISABLE              (0x1U << 21U)\r
48 /** \brief Wakeup enable */\r
49 #define PIN_WAKEUP_ENABLE               (0x1U << 29U)\r
50 \r
51 /** \brief Pad config register offset in control module */\r
52 enum pinMainOffsets\r
53 {\r
54     PIN_EXTINTN                = 0x0U,\r
55     PIN_PRG1_PRU0_GPO0         = 0x4U,\r
56     PIN_PRG1_PRU0_GPO1         = 0x8U,\r
57     PIN_PRG1_PRU0_GPO2         = 0xCU,\r
58     PIN_PRG1_PRU0_GPO3         = 0x10U,\r
59     PIN_PRG1_PRU0_GPO4         = 0x14U,\r
60     PIN_PRG1_PRU0_GPO5         = 0x18U,\r
61     PIN_PRG1_PRU0_GPO6         = 0x1CU,\r
62     PIN_PRG1_PRU0_GPO7         = 0x20U,\r
63     PIN_PRG1_PRU0_GPO8         = 0x24U,\r
64     PIN_PRG1_PRU0_GPO9         = 0x28U,\r
65     PIN_PRG1_PRU0_GPO10        = 0x2CU,\r
66     PIN_PRG1_PRU0_GPO11        = 0x30U,\r
67     PIN_PRG1_PRU0_GPO12        = 0x34U,\r
68     PIN_PRG1_PRU0_GPO13        = 0x38U,\r
69     PIN_PRG1_PRU0_GPO14        = 0x3CU,\r
70     PIN_PRG1_PRU0_GPO15        = 0x40U,\r
71     PIN_PRG1_PRU0_GPO16        = 0x44U,\r
72     PIN_PRG1_PRU0_GPO17        = 0x4CU,\r
73     PIN_PRG1_PRU0_GPO18        = 0x50U,\r
74     PIN_PRG1_PRU0_GPO19        = 0x54U,\r
75     PIN_PRG1_PRU1_GPO0         = 0x58U,\r
76     PIN_PRG1_PRU1_GPO1         = 0x5CU,\r
77     PIN_PRG1_PRU1_GPO2         = 0x60U,\r
78     PIN_PRG1_PRU1_GPO3         = 0x64U,\r
79     PIN_PRG1_PRU1_GPO4         = 0x68U,\r
80     PIN_PRG1_PRU1_GPO5         = 0x6CU,\r
81     PIN_PRG1_PRU1_GPO6         = 0x70U,\r
82     PIN_PRG1_PRU1_GPO7         = 0x74U,\r
83     PIN_PRG1_PRU1_GPO8         = 0x78U,\r
84     PIN_PRG1_PRU1_GPO9         = 0x7CU,\r
85     PIN_PRG1_PRU1_GPO10        = 0x80U,\r
86     PIN_PRG1_PRU1_GPO11        = 0x84U,\r
87     PIN_PRG1_PRU1_GPO12        = 0x88U,\r
88     PIN_PRG1_PRU1_GPO13        = 0x8CU,\r
89     PIN_PRG1_PRU1_GPO14        = 0x90U,\r
90     PIN_PRG1_PRU1_GPO15        = 0x94U,\r
91     PIN_PRG1_PRU1_GPO16        = 0x98U,\r
92     PIN_PRG1_PRU1_GPO17        = 0x9CU,\r
93     PIN_PRG1_PRU1_GPO18        = 0xA0U,\r
94     PIN_PRG1_PRU1_GPO19        = 0xA4U,\r
95     PIN_PRG1_MDIO0_MDIO        = 0xA8U,\r
96     PIN_PRG1_MDIO0_MDC         = 0xACU,\r
97     PIN_PRG0_PRU0_GPO0         = 0xB0U,\r
98     PIN_PRG0_PRU0_GPO1         = 0xB4U,\r
99     PIN_PRG0_PRU0_GPO2         = 0xB8U,\r
100     PIN_PRG0_PRU0_GPO3         = 0xBCU,\r
101     PIN_PRG0_PRU0_GPO4         = 0xC0U,\r
102     PIN_PRG0_PRU0_GPO5         = 0xC4U,\r
103     PIN_PRG0_PRU0_GPO6         = 0xC8U,\r
104     PIN_PRG0_PRU0_GPO7         = 0xCCU,\r
105     PIN_PRG0_PRU0_GPO8         = 0xD0U,\r
106     PIN_PRG0_PRU0_GPO9         = 0xD4U,\r
107     PIN_PRG0_PRU0_GPO10        = 0xD8U,\r
108     PIN_PRG0_PRU0_GPO11        = 0xDCU,\r
109     PIN_PRG0_PRU0_GPO12        = 0xE0U,\r
110     PIN_PRG0_PRU0_GPO13        = 0xE4U,\r
111     PIN_PRG0_PRU0_GPO14        = 0xE8U,\r
112     PIN_PRG0_PRU0_GPO15        = 0xECU,\r
113     PIN_PRG0_PRU0_GPO16        = 0xF0U,\r
114     PIN_PRG0_PRU0_GPO17        = 0xF4U,\r
115     PIN_PRG0_PRU0_GPO18        = 0xF8U,\r
116     PIN_PRG0_PRU0_GPO19        = 0xFCU,\r
117     PIN_PRG0_PRU1_GPO0         = 0x100U,\r
118     PIN_PRG0_PRU1_GPO1         = 0x104U,\r
119     PIN_PRG0_PRU1_GPO2         = 0x108U,\r
120     PIN_PRG0_PRU1_GPO3         = 0x10CU,\r
121     PIN_PRG0_PRU1_GPO4         = 0x110U,\r
122     PIN_PRG0_PRU1_GPO5         = 0x114U,\r
123     PIN_PRG0_PRU1_GPO6         = 0x118U,\r
124     PIN_PRG0_PRU1_GPO7         = 0x11CU,\r
125     PIN_PRG0_PRU1_GPO8         = 0x120U,\r
126     PIN_PRG0_PRU1_GPO9         = 0x124U,\r
127     PIN_PRG0_PRU1_GPO10        = 0x128U,\r
128     PIN_PRG0_PRU1_GPO11        = 0x12CU,\r
129     PIN_PRG0_PRU1_GPO12        = 0x130U,\r
130     PIN_PRG0_PRU1_GPO13        = 0x134U,\r
131     PIN_PRG0_PRU1_GPO14        = 0x138U,\r
132     PIN_PRG0_PRU1_GPO15        = 0x13CU,\r
133     PIN_PRG0_PRU1_GPO16        = 0x140U,\r
134     PIN_PRG0_PRU1_GPO17        = 0x144U,\r
135     PIN_PRG0_PRU1_GPO18        = 0x148U,\r
136     PIN_PRG0_PRU1_GPO19        = 0x14CU,\r
137     PIN_PRG0_MDIO0_MDIO        = 0x150U,\r
138     PIN_PRG0_MDIO0_MDC         = 0x154U,\r
139     PIN_RGMII5_TX_CTL          = 0x158U,\r
140     PIN_RGMII5_RX_CTL          = 0x15CU,\r
141     PIN_RGMII5_TD3             = 0x160U,\r
142     PIN_RGMII5_TD2             = 0x164U,\r
143     PIN_RGMII5_TD1             = 0x168U,\r
144     PIN_RGMII5_TD0             = 0x16CU,\r
145     PIN_RGMII5_TXC             = 0x170U,\r
146     PIN_RGMII5_RXC             = 0x174U,\r
147     PIN_RGMII5_RD3             = 0x178U,\r
148     PIN_RGMII5_RD2             = 0x17CU,\r
149     PIN_RGMII5_RD1             = 0x180U,\r
150     PIN_RGMII5_RD0             = 0x184U,\r
151     PIN_RGMII6_TX_CTL          = 0x188U,\r
152     PIN_RGMII6_RX_CTL          = 0x18CU,\r
153     PIN_RGMII6_TD3             = 0x190U,\r
154     PIN_RGMII6_TD2             = 0x194U,\r
155     PIN_RGMII6_TD1             = 0x198U,\r
156     PIN_RGMII6_TD0             = 0x19CU,\r
157     PIN_RGMII6_TXC             = 0x1A0U,\r
158     PIN_RGMII6_RXC             = 0x1A4U,\r
159     PIN_RGMII6_RD3             = 0x1A8U,\r
160     PIN_RGMII6_RD2             = 0x1ACU,\r
161     PIN_RGMII6_RD1             = 0x1B0U,\r
162     PIN_RGMII6_RD0             = 0x1B4U,\r
163     PIN_MDIO0_MDIO             = 0x1B8U,\r
164     PIN_MDIO0_MDC              = 0x1BCU,\r
165     PIN_SPI0_CS0               = 0x1C0U,\r
166     PIN_SPI0_CS1               = 0x1C4U,\r
167     PIN_SPI0_CLK               = 0x1C8U,\r
168     PIN_SPI0_D0                = 0x1CCU,\r
169     PIN_SPI0_D1                = 0x1D0U,\r
170     PIN_SPI1_CS0               = 0x1D4U,\r
171     PIN_SPI1_CS1               = 0x1D8U,\r
172     PIN_SPI1_CLK               = 0x1DCU,\r
173     PIN_SPI1_D0                = 0x1E0U,\r
174     PIN_SPI1_D1                = 0x1E4U,\r
175     PIN_UART0_RXD              = 0x1E8U,\r
176     PIN_UART0_TXD              = 0x1ECU,\r
177     PIN_UART0_CTSN             = 0x1F0U,\r
178     PIN_UART0_RTSN             = 0x1F4U,\r
179     PIN_UART1_RXD              = 0x1F8U,\r
180     PIN_UART1_TXD              = 0x1FCU,\r
181     PIN_UART1_CTSN             = 0x200U,\r
182     PIN_UART1_RTSN             = 0x204U,\r
183     PIN_MCAN0_RX               = 0x208U,\r
184     PIN_MCAN0_TX               = 0x20CU,\r
185     PIN_MCAN1_RX               = 0x210U,\r
186     PIN_MCAN1_TX               = 0x214U,\r
187     PIN_I3C0_SCL               = 0x218U,\r
188     PIN_I3C0_SDA               = 0x21CU,\r
189     PIN_I2C0_SCL               = 0x220U,\r
190     PIN_I2C0_SDA               = 0x224U,\r
191     PIN_I2C1_SCL               = 0x228U,\r
192     PIN_I2C1_SDA               = 0x22CU,\r
193     PIN_ECAP0_IN_APWM_OUT      = 0x230U,\r
194     PIN_EXT_REFCLK1            = 0x234U,\r
195     PIN_TIMER_IO0              = 0x238U,\r
196     PIN_TIMER_IO1              = 0x23CU,\r
197     PIN_MMC1_DAT3              = 0x240U,\r
198     PIN_MMC1_DAT2              = 0x244U,\r
199     PIN_MMC1_DAT1              = 0x248U,\r
200     PIN_MMC1_DAT0              = 0x24CU,\r
201     PIN_MMC1_CLK               = 0x250U,\r
202     PIN_MMC1_CMD               = 0x254U,\r
203     PIN_MMC1_SDCD              = 0x258U,\r
204     PIN_MMC1_SDWP              = 0x25CU,\r
205     PIN_MMC2_DAT3              = 0x260U,\r
206     PIN_MMC2_DAT2              = 0x264U,\r
207     PIN_MMC2_DAT1              = 0x268U,\r
208     PIN_MMC2_DAT0              = 0x26CU,\r
209     PIN_MMC2_CLK               = 0x270U,\r
210     PIN_MMC2_CMD               = 0x274U,\r
211     PIN_RESETSTATZ             = 0x278U,\r
212     PIN_PORZ_OUT               = 0x27CU,\r
213     PIN_SOC_SAFETY_ERRORN      = 0x280U,\r
214     PIN_TDI                    = 0x284U,\r
215     PIN_TDO                    = 0x288U,\r
216     PIN_TMS                    = 0x28CU,\r
217     PIN_USB0_DRVVBUS           = 0x290U,\r
218     PIN_MLB0_MLBSP             = 0x294U,\r
219     PIN_MLB0_MLBSN             = 0x298U,\r
220     PIN_MLB0_MLBDP             = 0x29CU,\r
221     PIN_MLB0_MLBDN             = 0x2A0U,\r
222     PIN_MLB0_MLBCP             = 0x2A4U,\r
223     PIN_MLB0_MLBCN             = 0x2A8U,\r
224     PIN_MMC1_CLKLB             = 0x2ACU,\r
225 };\r
226 \r
227 enum pinWkupOffsets\r
228 {\r
229     PIN_MCU_OSPI0_CLK          = 0x0U,\r
230     PIN_MCU_OSPI0_LBCLKO       = 0x4U,\r
231     PIN_MCU_OSPI0_DQS          = 0x8U,\r
232     PIN_MCU_OSPI0_D0           = 0xCU,\r
233     PIN_MCU_OSPI0_D1           = 0x10U,\r
234     PIN_MCU_OSPI0_D2           = 0x14U,\r
235     PIN_MCU_OSPI0_D3           = 0x18U,\r
236     PIN_MCU_OSPI0_D4           = 0x1CU,\r
237     PIN_MCU_OSPI0_D5           = 0x20U,\r
238     PIN_MCU_OSPI0_D6           = 0x24U,\r
239     PIN_MCU_OSPI0_D7           = 0x28U,\r
240     PIN_MCU_OSPI0_CSN0         = 0x2CU,\r
241     PIN_MCU_OSPI0_CSN1         = 0x30U,\r
242     PIN_MCU_OSPI1_CLK          = 0x34U,\r
243     PIN_MCU_OSPI1_LBCLKO       = 0x38U,\r
244     PIN_MCU_OSPI1_DQS          = 0x3CU,\r
245     PIN_MCU_OSPI1_D0           = 0x40U,\r
246     PIN_MCU_OSPI1_D1           = 0x44U,\r
247     PIN_MCU_OSPI1_D2           = 0x48U,\r
248     PIN_MCU_OSPI1_D3           = 0x4CU,\r
249     PIN_MCU_OSPI1_CSN0         = 0x50U,\r
250     PIN_MCU_OSPI1_CSN1         = 0x54U,\r
251     PIN_MCU_RGMII1_TX_CTL      = 0x58U,\r
252     PIN_MCU_RGMII1_RX_CTL      = 0x5CU,\r
253     PIN_MCU_RGMII1_TD3         = 0x60U,\r
254     PIN_MCU_RGMII1_TD2         = 0x64U,\r
255     PIN_MCU_RGMII1_TD1         = 0x68U,\r
256     PIN_MCU_RGMII1_TD0         = 0x6CU,\r
257     PIN_MCU_RGMII1_TXC         = 0x70U,\r
258     PIN_MCU_RGMII1_RXC         = 0x74U,\r
259     PIN_MCU_RGMII1_RD3         = 0x78U,\r
260     PIN_MCU_RGMII1_RD2         = 0x7CU,\r
261     PIN_MCU_RGMII1_RD1         = 0x80U,\r
262     PIN_MCU_RGMII1_RD0         = 0x84U,\r
263     PIN_MCU_MDIO0_MDIO         = 0x88U,\r
264     PIN_MCU_MDIO0_MDC          = 0x8CU,\r
265     PIN_MCU_SPI0_CLK           = 0x90U,\r
266     PIN_MCU_SPI0_D0            = 0x94U,\r
267     PIN_MCU_SPI0_D1            = 0x98U,\r
268     PIN_MCU_SPI0_CS0           = 0x9CU,\r
269     PIN_WKUP_UART0_RXD         = 0xA0U,\r
270     PIN_WKUP_UART0_TXD         = 0xA4U,\r
271     PIN_MCU_MCAN0_TX           = 0xA8U,\r
272     PIN_MCU_MCAN0_RX           = 0xACU,\r
273     PIN_WKUP_GPIO0_0           = 0xB0U,\r
274     PIN_WKUP_GPIO0_1           = 0xB4U,\r
275     PIN_WKUP_GPIO0_2           = 0xB8U,\r
276     PIN_WKUP_GPIO0_3           = 0xBCU,\r
277     PIN_WKUP_GPIO0_4           = 0xC0U,\r
278     PIN_WKUP_GPIO0_5           = 0xC4U,\r
279     PIN_WKUP_GPIO0_6           = 0xC8U,\r
280     PIN_WKUP_GPIO0_7           = 0xCCU,\r
281     PIN_WKUP_GPIO0_8           = 0xD0U,\r
282     PIN_WKUP_GPIO0_9           = 0xD4U,\r
283     PIN_WKUP_GPIO0_10          = 0xD8U,\r
284     PIN_WKUP_GPIO0_11          = 0xDCU,\r
285     PIN_WKUP_GPIO0_12          = 0xE0U,\r
286     PIN_WKUP_GPIO0_13          = 0xE4U,\r
287     PIN_WKUP_GPIO0_14          = 0xE8U,\r
288     PIN_WKUP_GPIO0_15          = 0xECU,\r
289     PIN_MCU_I3C0_SCL           = 0xF0U,\r
290     PIN_MCU_I3C0_SDA           = 0xF4U,\r
291     PIN_WKUP_I2C0_SCL          = 0xF8U,\r
292     PIN_WKUP_I2C0_SDA          = 0xFCU,\r
293     PIN_MCU_I2C0_SCL           = 0x100U,\r
294     PIN_MCU_I2C0_SDA           = 0x104U,\r
295     PIN_PMIC_POWER_EN0         = 0x108U,\r
296     PIN_PMIC_POWER_EN1         = 0x10CU,\r
297     PIN_MCU_SAFETY_ERRORN      = 0x110U,\r
298     PIN_MCU_RESETZ             = 0x114U,\r
299     PIN_MCU_RESETSTATZ         = 0x118U,\r
300     PIN_MCU_PORZ_OUT           = 0x11CU,\r
301     PIN_TCK                    = 0x120U,\r
302     PIN_TRSTN                  = 0x124U,\r
303     PIN_EMU0                   = 0x128U,\r
304     PIN_EMU1                   = 0x12CU,\r
305     PIN_MCU_ADC0_AIN0          = 0x130U,\r
306     PIN_MCU_ADC0_AIN1          = 0x134U,\r
307     PIN_MCU_ADC0_AIN2          = 0x138U,\r
308     PIN_MCU_ADC0_AIN3          = 0x13CU,\r
309     PIN_MCU_ADC0_AIN4          = 0x140U,\r
310     PIN_MCU_ADC0_AIN5          = 0x144U,\r
311     PIN_MCU_ADC0_AIN6          = 0x148U,\r
312     PIN_MCU_ADC0_AIN7          = 0x14CU,\r
313     PIN_MCU_ADC1_AIN0          = 0x150U,\r
314     PIN_MCU_ADC1_AIN1          = 0x154U,\r
315     PIN_MCU_ADC1_AIN2          = 0x158U,\r
316     PIN_MCU_ADC1_AIN3          = 0x15CU,\r
317     PIN_MCU_ADC1_AIN4          = 0x160U,\r
318     PIN_MCU_ADC1_AIN5          = 0x164U,\r
319     PIN_MCU_ADC1_AIN6          = 0x168U,\r
320     PIN_MCU_ADC1_AIN7          = 0x16CU,\r
321     PIN_RESET_REQZ             = 0x170U,\r
322     PIN_PORZ                   = 0x174U,\r
323 };\r
324 \r
325 /* ========================================================================== */\r
326 /*                            Global Variables                                */\r
327 /* ========================================================================== */\r
328 \r
329 /** \brief Pinmux configuration data for the board. Auto-generated from\r
330            Pinmux tool. */\r
331 extern pinmuxBoardCfg_t gJ721E_MainPinmuxData[];\r
332 extern pinmuxBoardCfg_t gJ721E_WkupPinmuxData[];\r
333 extern pinmuxBoardCfg_t gJ721E_MainPinmuxDataGesiIcssg[];\r
334 extern pinmuxBoardCfg_t gJ721E_WkupPinmuxDataGesiIcssg[];\r
335 extern pinmuxBoardCfg_t gJ721E_MainPinmuxDataInfo[];\r
336 extern pinmuxBoardCfg_t gJ721E_WkupPinmuxDataInfo[];\r
337 extern pinmuxBoardCfg_t gJ721E_MainPinmuxDataGesiCpsw9g[];\r
338 extern pinmuxBoardCfg_t gJ721E_WkupPinmuxDataGesiCpsw9g[];\r
339 extern pinmuxBoardCfg_t gJ721E_MainPinmuxDataGesiCpsw9gSgmii[];\r
340 extern pinmuxBoardCfg_t gJ721E_MainPinmuxDataGesiCpsw9gQsgmii[];\r
341 extern pinmuxBoardCfg_t gJ721E_WkupPinmuxDataHpb[];\r
342 \r
343 \r
344 #ifdef __cplusplus\r
345 }\r
346 #endif /* __cplusplus */\r
347 #endif /* _J721E_PIN_MUX_H_ */\r