]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/board/src/am65xx_idk/AM65xx_pinmux.h
board-rtos: add to PDK
[processor-sdk/pdk.git] / packages / ti / board / src / am65xx_idk / AM65xx_pinmux.h
1 /**
2  * Note: This file was auto-generated by TI PinMux on 7/30/2019 at 2:27:25 AM.
3  *
4  * \file   AM65xx_pinmux.h
5  *
6  * \brief  This file contains pad configure register offsets and bit-field 
7  *         value macros for different configurations,
8  *
9  *           BIT[20:19]         BUFFERCLASS             set the pin's output driver characteristics
10  *           BIT[18]            RXACTIVE                enable the pin's input buffer (typically kept enabled)
11  *           BIT[17]            PULLTYPESEL             set the iternal resistor pull direction high or low (if enabled)
12  *           BIT[16]            PULLUDEN                internal resistor disable (0 = enabled / 1 = disabled)
13  *           BIT[3:0]           MUXMODE                 select the desired function on the given pin
14  *
15  *  \copyright Copyright (CU) 2019 Texas Instruments Incorporated - 
16  *             http://www.ti.com/
17  */
19 #ifndef _AM65XX_PIN_MUX_H_
20 #define _AM65XX_PIN_MUX_H_
22 /* ========================================================================== */
23 /*                             Include Files                                  */
24 /* ========================================================================== */
26 #include "pinmux.h"
27 #include "csl_types.h"
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
33 /* ========================================================================== */
34 /*                           Macros & Typedefs                                */
35 /* ========================================================================== */
36 #define PIN_MODE(mode)                  (mode)
37 #define PINMUX_END                      (-1)
39 /** \brief Active mode configurations */
40 /** \brief Resistor disable */
41 #define PIN_PULL_DISABLE                (0x1U << 16U)  
42 /** \brief Pull direction */
43 #define PIN_PULL_DIRECTION              (0x1U << 17U)
44 /** \brief Receiver enable */
45 #define PIN_INPUT_ENABLE                (0x1U << 18U)
46 /** \brief Driver disable */
47 #define PIN_OUTPUT_DISABLE              (0x1U << 21U)
48 /** \brief Wakeup enable */
49 #define PIN_WAKEUP_ENABLE               (0x1U << 29U)
53 /** \brief Pad config register offset in control module */
54 enum pinMainOffsets
55 {
56     PIN_GPMC0_AD0              = 0x0000U,
57     PIN_GPMC0_AD1              = 0x0004U,
58     PIN_GPMC0_AD2              = 0x0008U,
59     PIN_GPMC0_AD3              = 0x000CU,
60     PIN_GPMC0_AD4              = 0x0010U,
61     PIN_GPMC0_AD5              = 0x0014U,
62     PIN_GPMC0_AD6              = 0x0018U,
63     PIN_GPMC0_AD7              = 0x001CU,
64     PIN_GPMC0_AD8              = 0x0020U,
65     PIN_GPMC0_AD9              = 0x0024U,
66     PIN_GPMC0_AD10             = 0x0028U,
67     PIN_GPMC0_AD11             = 0x002CU,
68     PIN_GPMC0_AD12             = 0x0030U,
69     PIN_GPMC0_AD13             = 0x0034U,
70     PIN_GPMC0_AD14             = 0x0038U,
71     PIN_GPMC0_AD15             = 0x003CU,
72     PIN_GPMC0_CLK              = 0x0040U,
73     PIN_GPMC0_ADVN_ALE         = 0x0044U,
74     PIN_GPMC0_OEN_REN          = 0x0048U,
75     PIN_GPMC0_WEN              = 0x004CU,
76     PIN_GPMC0_BE0N_CLE         = 0x0050U,
77     PIN_GPMC0_BE1N             = 0x0054U,
78     PIN_GPMC0_WAIT0            = 0x0058U,
79     PIN_GPMC0_WAIT1            = 0x005CU,
80     PIN_GPMC0_WPN              = 0x0060U,
81     PIN_GPMC0_DIR              = 0x0064U,
82     PIN_GPMC0_CSN0             = 0x0068U,
83     PIN_GPMC0_CSN1             = 0x006CU,
84     PIN_GPMC0_CSN2             = 0x0070U,
85     PIN_GPMC0_CSN3             = 0x0074U,
86     PIN_PRG2_PRU0_GPO0         = 0x0078U,
87     PIN_PRG2_PRU0_GPO1         = 0x007CU,
88     PIN_PRG2_PRU0_GPO2         = 0x0080U,
89     PIN_PRG2_PRU0_GPO3         = 0x0084U,
90     PIN_PRG2_PRU0_GPO4         = 0x0088U,
91     PIN_PRG2_PRU0_GPO5         = 0x008CU,
92     PIN_PRG2_PRU0_GPO6         = 0x0090U,
93     PIN_PRG2_PRU0_GPO7         = 0x0094U,
94     PIN_PRG2_PRU0_GPO8         = 0x0098U,
95     PIN_PRG2_PRU0_GPO9         = 0x009CU,
96     PIN_PRG2_PRU0_GPO10        = 0x00A0U,
97     PIN_PRG2_PRU0_GPO11        = 0x00A4U,
98     PIN_PRG2_PRU0_GPO16        = 0x00A8U,
99     PIN_PRG2_PRU1_GPO0         = 0x00ACU,
100     PIN_PRG2_PRU1_GPO1         = 0x00B0U,
101     PIN_PRG2_PRU1_GPO2         = 0x00B4U,
102     PIN_PRG2_PRU1_GPO3         = 0x00B8U,
103     PIN_PRG2_PRU1_GPO4         = 0x00BCU,
104     PIN_PRG2_PRU1_GPO5         = 0x00C0U,
105     PIN_PRG2_PRU1_GPO6         = 0x00C4U,
106     PIN_PRG2_PRU1_GPO7         = 0x00C8U,
107     PIN_PRG2_PRU1_GPO8         = 0x00CCU,
108     PIN_PRG2_PRU1_GPO9         = 0x00D0U,
109     PIN_PRG2_PRU1_GPO10        = 0x00D4U,
110     PIN_PRG2_PRU1_GPO11        = 0x00D8U,
111     PIN_PRG2_PRU1_GPO16        = 0x00DCU,
112     PIN_PRG1_PRU0_GPO0         = 0x00E0U,
113     PIN_PRG1_PRU0_GPO1         = 0x00E4U,
114     PIN_PRG1_PRU0_GPO2         = 0x00E8U,
115     PIN_PRG1_PRU0_GPO3         = 0x00ECU,
116     PIN_PRG1_PRU0_GPO4         = 0x00F0U,
117     PIN_PRG1_PRU0_GPO5         = 0x00F4U,
118     PIN_PRG1_PRU0_GPO6         = 0x00F8U,
119     PIN_PRG1_PRU0_GPO7         = 0x00FCU,
120     PIN_PRG1_PRU0_GPO8         = 0x0100U,
121     PIN_PRG1_PRU0_GPO9         = 0x0104U,
122     PIN_PRG1_PRU0_GPO10        = 0x0108U,
123     PIN_PRG1_PRU0_GPO11        = 0x010CU,
124     PIN_PRG1_PRU0_GPO12        = 0x0110U,
125     PIN_PRG1_PRU0_GPO13        = 0x0114U,
126     PIN_PRG1_PRU0_GPO14        = 0x0118U,
127     PIN_PRG1_PRU0_GPO15        = 0x011CU,
128     PIN_PRG1_PRU0_GPO16        = 0x0120U,
129     PIN_PRG1_PRU0_GPO17        = 0x0124U,
130     PIN_PRG1_PRU0_GPO18        = 0x0128U,
131     PIN_PRG1_PRU0_GPO19        = 0x012CU,
132     PIN_PRG1_PRU1_GPO0         = 0x0130U,
133     PIN_PRG1_PRU1_GPO1         = 0x0134U,
134     PIN_PRG1_PRU1_GPO2         = 0x0138U,
135     PIN_PRG1_PRU1_GPO3         = 0x013CU,
136     PIN_PRG1_PRU1_GPO4         = 0x0140U,
137     PIN_PRG1_PRU1_GPO5         = 0x0144U,
138     PIN_PRG1_PRU1_GPO6         = 0x0148U,
139     PIN_PRG1_PRU1_GPO7         = 0x014CU,
140     PIN_PRG1_PRU1_GPO8         = 0x0150U,
141     PIN_PRG1_PRU1_GPO9         = 0x0154U,
142     PIN_PRG1_PRU1_GPO10        = 0x0158U,
143     PIN_PRG1_PRU1_GPO11        = 0x015CU,
144     PIN_PRG1_PRU1_GPO12        = 0x0160U,
145     PIN_PRG1_PRU1_GPO13        = 0x0164U,
146     PIN_PRG1_PRU1_GPO14        = 0x0168U,
147     PIN_PRG1_PRU1_GPO15        = 0x016CU,
148     PIN_PRG1_PRU1_GPO16        = 0x0170U,
149     PIN_PRG1_PRU1_GPO17        = 0x0174U,
150     PIN_PRG1_PRU1_GPO18        = 0x0178U,
151     PIN_PRG1_PRU1_GPO19        = 0x017CU,
152     PIN_PRG1_MDIO0_MDIO        = 0x0180U,
153     PIN_PRG1_MDIO0_MDC         = 0x0184U,
154     PIN_MMC0_DAT7              = 0x0188U,
155     PIN_MMC0_DAT6              = 0x018CU,
156     PIN_MMC0_DAT5              = 0x0190U,
157     PIN_MMC0_DAT4              = 0x0194U,
158     PIN_MMC0_DAT3              = 0x0198U,
159     PIN_MMC0_DAT2              = 0x019CU,
160     PIN_MMC0_DAT1              = 0x01A0U,
161     PIN_MMC0_DAT0              = 0x01A4U,
162     PIN_MMC0_CLK               = 0x01A8U,
163     PIN_MMC0_CMD               = 0x01ACU,
164     PIN_MMC0_DS                = 0x01B0U,
165     PIN_MMC0_SDCD              = 0x01B4U,
166     PIN_MMC0_SDWP              = 0x01B8U,
167     PIN_SPI0_CS0               = 0x01BCU,
168     PIN_SPI0_CS1               = 0x01C0U,
169     PIN_SPI0_CLK               = 0x01C4U,
170     PIN_SPI0_D0                = 0x01C8U,
171     PIN_SPI0_D1                = 0x01CCU,
172     PIN_SPI1_CS0               = 0x01D0U,
173     PIN_SPI1_CS1               = 0x01D4U,
174     PIN_SPI1_CLK               = 0x01D8U,
175     PIN_SPI1_D0                = 0x01DCU,
176     PIN_SPI1_D1                = 0x01E0U,
177     PIN_UART0_RXD              = 0x01E4U,
178     PIN_UART0_TXD              = 0x01E8U,
179     PIN_UART0_CTSN             = 0x01ECU,
180     PIN_UART0_RTSN             = 0x01F0U,
181     PIN_PRG0_PRU0_GPO0         = 0x01F4U,
182     PIN_PRG0_PRU0_GPO1         = 0x01F8U,
183     PIN_PRG0_PRU0_GPO2         = 0x01FCU,
184     PIN_PRG0_PRU0_GPO3         = 0x0200U,
185     PIN_PRG0_PRU0_GPO4         = 0x0204U,
186     PIN_PRG0_PRU0_GPO5         = 0x0208U,
187     PIN_PRG0_PRU0_GPO6         = 0x020CU,
188     PIN_PRG0_PRU0_GPO7         = 0x0210U,
189     PIN_PRG0_PRU0_GPO8         = 0x0214U,
190     PIN_PRG0_PRU0_GPO9         = 0x0218U,
191     PIN_PRG0_PRU0_GPO10        = 0x021CU,
192     PIN_PRG0_PRU0_GPO11        = 0x0220U,
193     PIN_PRG0_PRU0_GPO12        = 0x0224U,
194     PIN_PRG0_PRU0_GPO13        = 0x0228U,
195     PIN_PRG0_PRU0_GPO14        = 0x022CU,
196     PIN_PRG0_PRU0_GPO15        = 0x0230U,
197     PIN_PRG0_PRU0_GPO16        = 0x0234U,
198     PIN_PRG0_PRU0_GPO17        = 0x0238U,
199     PIN_PRG0_PRU0_GPO18        = 0x023CU,
200     PIN_PRG0_PRU0_GPO19        = 0x0240U,
201     PIN_PRG0_PRU1_GPO0         = 0x0244U,
202     PIN_PRG0_PRU1_GPO1         = 0x0248U,
203     PIN_PRG0_PRU1_GPO2         = 0x024CU,
204     PIN_PRG0_PRU1_GPO3         = 0x0250U,
205     PIN_PRG0_PRU1_GPO4         = 0x0254U,
206     PIN_PRG0_PRU1_GPO5         = 0x0258U,
207     PIN_PRG0_PRU1_GPO6         = 0x025CU,
208     PIN_PRG0_PRU1_GPO7         = 0x0260U,
209     PIN_PRG0_PRU1_GPO8         = 0x0264U,
210     PIN_PRG0_PRU1_GPO9         = 0x0268U,
211     PIN_PRG0_PRU1_GPO10        = 0x026CU,
212     PIN_PRG0_PRU1_GPO11        = 0x0270U,
213     PIN_PRG0_PRU1_GPO12        = 0x0274U,
214     PIN_PRG0_PRU1_GPO13        = 0x0278U,
215     PIN_PRG0_PRU1_GPO14        = 0x027CU,
216     PIN_PRG0_PRU1_GPO15        = 0x0280U,
217     PIN_PRG0_PRU1_GPO16        = 0x0284U,
218     PIN_PRG0_PRU1_GPO17        = 0x0288U,
219     PIN_PRG0_PRU1_GPO18        = 0x028CU,
220     PIN_PRG0_PRU1_GPO19        = 0x0290U,
221     PIN_PRG0_MDIO0_MDIO        = 0x0294U,
222     PIN_PRG0_MDIO0_MDC         = 0x0298U,
223     PIN_NMIN                   = 0x029CU,
224     PIN_RESETZ                 = 0x02A0U,
225     PIN_RESETSTATZ             = 0x02A4U,
226     PIN_PORZ_OUT               = 0x02A8U,
227     PIN_SOC_SAFETY_ERRORN      = 0x02ACU,
228     PIN_TDI                    = 0x02B0U,
229     PIN_TDO                    = 0x02B4U,
230     PIN_TMS                    = 0x02B8U,
231     PIN_USB0_DRVVBUS           = 0x02BCU,
232     PIN_USB1_DRVVBUS           = 0x02C0U,
233     PIN_MMC1_DAT3              = 0x02C4U,
234     PIN_MMC1_DAT2              = 0x02C8U,
235     PIN_MMC1_DAT1              = 0x02CCU,
236     PIN_MMC1_DAT0              = 0x02D0U,
237     PIN_MMC1_CLK               = 0x02D4U,
238     PIN_MMC1_CMD               = 0x02D8U,
239     PIN_MMC1_SDCD              = 0x02DCU,
240     PIN_MMC1_SDWP              = 0x02E0U,
241     PIN_I2C0_SCL               = 0x02E8U,
242     PIN_I2C0_SDA               = 0x02ECU,
243     PIN_I2C1_SCL               = 0x02F0U,
244     PIN_I2C1_SDA               = 0x02F4U,
245     PIN_ECAP0_IN_APWM_OUT      = 0x02F8U,
246     PIN_EXT_REFCLK1            = 0x02FCU,
247     PIN_TIMER_IO0              = 0x0300U,
248     PIN_TIMER_IO1              = 0x0304U,
249     PIN_PORZ                   = 0x0308U,
250 };
252 enum pinWkupOffsets
254     PIN_MCU_OSPI0_CLK          = 0x0000U,
255     PIN_MCU_OSPI0_LBCLKO       = 0x0004U,
256     PIN_MCU_OSPI0_DQS          = 0x0008U,
257     PIN_MCU_OSPI0_D0           = 0x000CU,
258     PIN_MCU_OSPI0_D1           = 0x0010U,
259     PIN_MCU_OSPI0_D2           = 0x0014U,
260     PIN_MCU_OSPI0_D3           = 0x0018U,
261     PIN_MCU_OSPI0_D4           = 0x001CU,
262     PIN_MCU_OSPI0_D5           = 0x0020U,
263     PIN_MCU_OSPI0_D6           = 0x0024U,
264     PIN_MCU_OSPI0_D7           = 0x0028U,
265     PIN_MCU_OSPI0_CSN0         = 0x002CU,
266     PIN_MCU_OSPI0_CSN1         = 0x0030U,
267     PIN_MCU_OSPI1_CLK          = 0x0034U,
268     PIN_MCU_OSPI1_LBCLKO       = 0x0038U,
269     PIN_MCU_OSPI1_DQS          = 0x003CU,
270     PIN_MCU_OSPI1_D0           = 0x0040U,
271     PIN_MCU_OSPI1_D1           = 0x0044U,
272     PIN_MCU_OSPI1_D2           = 0x0048U,
273     PIN_MCU_OSPI1_D3           = 0x004CU,
274     PIN_MCU_OSPI1_CSN0         = 0x0050U,
275     PIN_MCU_OSPI1_CSN1         = 0x0054U,
276     PIN_MCU_RGMII1_TX_CTL      = 0x0058U,
277     PIN_MCU_RGMII1_RX_CTL      = 0x005CU,
278     PIN_MCU_RGMII1_TD3         = 0x0060U,
279     PIN_MCU_RGMII1_TD2         = 0x0064U,
280     PIN_MCU_RGMII1_TD1         = 0x0068U,
281     PIN_MCU_RGMII1_TD0         = 0x006CU,
282     PIN_MCU_RGMII1_TXC         = 0x0070U,
283     PIN_MCU_RGMII1_RXC         = 0x0074U,
284     PIN_MCU_RGMII1_RD3         = 0x0078U,
285     PIN_MCU_RGMII1_RD2         = 0x007CU,
286     PIN_MCU_RGMII1_RD1         = 0x0080U,
287     PIN_MCU_RGMII1_RD0         = 0x0084U,
288     PIN_MCU_MDIO0_MDIO         = 0x0088U,
289     PIN_MCU_MDIO0_MDC          = 0x008CU,
290     PIN_MCU_SPI0_CLK           = 0x0090U,
291     PIN_MCU_SPI0_D0            = 0x0094U,
292     PIN_MCU_SPI0_D1            = 0x0098U,
293     PIN_MCU_SPI0_CS0           = 0x009CU,
294     PIN_WKUP_UART0_RXD         = 0x00A0U,
295     PIN_WKUP_UART0_TXD         = 0x00A4U,
296     PIN_MCU_MCAN0_TX           = 0x00A8U,
297     PIN_MCU_MCAN0_RX           = 0x00ACU,
298     PIN_WKUP_GPIO0_0           = 0x00B0U,
299     PIN_WKUP_GPIO0_1           = 0x00B4U,
300     PIN_WKUP_GPIO0_2           = 0x00B8U,
301     PIN_WKUP_GPIO0_3           = 0x00BCU,
302     PIN_WKUP_GPIO0_4           = 0x00C0U,
303     PIN_WKUP_GPIO0_5           = 0x00C4U,
304     PIN_WKUP_GPIO0_6           = 0x00C8U,
305     PIN_WKUP_GPIO0_7           = 0x00CCU,
306     PIN_WKUP_GPIO0_8           = 0x00D0U,
307     PIN_WKUP_GPIO0_9           = 0x00D4U,
308     PIN_WKUP_GPIO0_10          = 0x00D8U,
309     PIN_WKUP_GPIO0_11          = 0x00DCU,
310     PIN_WKUP_I2C0_SCL          = 0x00E0U,
311     PIN_WKUP_I2C0_SDA          = 0x00E4U,
312     PIN_MCU_I2C0_SCL           = 0x00E8U,
313     PIN_MCU_I2C0_SDA           = 0x00ECU,
314     PIN_PMIC_POWER_EN1         = 0x00F0U,
315     PIN_MCU_SAFETY_ERRORN      = 0x00F4U,
316     PIN_MCU_RESETZ             = 0x00F8U,
317     PIN_MCU_RESETSTATZ         = 0x00FCU,
318     PIN_MCU_PORZ_OUT           = 0x0100U,
319     PIN_TCK                    = 0x0104U,
320     PIN_TRSTN                  = 0x0108U,
321     PIN_EMU0                   = 0x010CU,
322     PIN_EMU1                   = 0x0110U,
323     PIN_PMIC_POWER_EN0         = 0x0114U,
324 };
327 /* ========================================================================== */
328 /*                            Global Variables                                */
329 /* ========================================================================== */
331 /** \brief Pinmux configuration data for the board. Auto-generated from 
332            Pinmux tool. */
333 extern pinmuxBoardCfg_t gAM65xxMainPinmuxData[];
334 extern pinmuxBoardCfg_t gAM65xxWkupPinmuxData[];
336 extern pinmuxPerCfg_t gSystem0PinCfgPG1[];
337 extern pinmuxModuleCfg_t gSystemPinCfg[];
338 extern pinmuxPerCfg_t gWkup_system0PinCfgPG1[];
339 extern pinmuxModuleCfg_t gWkup_systemPinCfg[];
341 extern uint32_t Board_isSocPG1(void);
343 #ifdef __cplusplus
345 #endif /* __cplusplus */
346 #endif /* _AM65XX_PIN_MUX_H_ */