1999c6bafSTom Warren /*
2999c6bafSTom Warren  * (C) Copyright 2013
3999c6bafSTom Warren  * NVIDIA Corporation <www.nvidia.com>
4999c6bafSTom Warren  *
5999c6bafSTom Warren  * SPDX-License-Identifier:     GPL-2.0+
6999c6bafSTom Warren  */
7999c6bafSTom Warren 
8999c6bafSTom Warren #ifndef _TEGRA124_PINMUX_H_
9999c6bafSTom Warren #define _TEGRA124_PINMUX_H_
10999c6bafSTom Warren 
11999c6bafSTom Warren /*
12999c6bafSTom Warren  * Pin groups which we adjust. There are three basic attributes of each pin
13999c6bafSTom Warren  * group which use this enum:
14999c6bafSTom Warren  *
15999c6bafSTom Warren  *	- function
16999c6bafSTom Warren  *	- pullup / pulldown
17999c6bafSTom Warren  *	- tristate or normal
18999c6bafSTom Warren  */
19999c6bafSTom Warren enum pmux_pingrp {
20999c6bafSTom Warren 	PINGRP_ULPI_DATA0 = 0,  /* offset 0x3000 */
21999c6bafSTom Warren 	PINGRP_ULPI_DATA1,
22999c6bafSTom Warren 	PINGRP_ULPI_DATA2,
23999c6bafSTom Warren 	PINGRP_ULPI_DATA3,
24999c6bafSTom Warren 	PINGRP_ULPI_DATA4,
25999c6bafSTom Warren 	PINGRP_ULPI_DATA5,
26999c6bafSTom Warren 	PINGRP_ULPI_DATA6,
27999c6bafSTom Warren 	PINGRP_ULPI_DATA7,
28999c6bafSTom Warren 	PINGRP_ULPI_CLK,
29999c6bafSTom Warren 	PINGRP_ULPI_DIR,
30999c6bafSTom Warren 	PINGRP_ULPI_NXT,
31999c6bafSTom Warren 	PINGRP_ULPI_STP,
32999c6bafSTom Warren 	PINGRP_DAP3_FS,
33999c6bafSTom Warren 	PINGRP_DAP3_DIN,
34999c6bafSTom Warren 	PINGRP_DAP3_DOUT,
35999c6bafSTom Warren 	PINGRP_DAP3_SCLK,
36999c6bafSTom Warren 	PINGRP_GPIO_PV0,
37999c6bafSTom Warren 	PINGRP_GPIO_PV1,
38999c6bafSTom Warren 	PINGRP_SDMMC1_CLK,
39999c6bafSTom Warren 	PINGRP_SDMMC1_CMD,
40999c6bafSTom Warren 	PINGRP_SDMMC1_DAT3,
41999c6bafSTom Warren 	PINGRP_SDMMC1_DAT2,
42999c6bafSTom Warren 	PINGRP_SDMMC1_DAT1,
43999c6bafSTom Warren 	PINGRP_SDMMC1_DAT0,
44999c6bafSTom Warren 	PINGRP_CLK2_OUT = PINGRP_SDMMC1_DAT0 + 3,
45999c6bafSTom Warren 	PINGRP_CLK2_REQ,
46999c6bafSTom Warren 	PINGRP_HDMI_INT = PINGRP_CLK2_REQ + 41,
47999c6bafSTom Warren 	PINGRP_DDC_SCL,
48999c6bafSTom Warren 	PINGRP_DDC_SDA,
49999c6bafSTom Warren 	PINGRP_UART2_RXD = PINGRP_DDC_SDA + 19,
50999c6bafSTom Warren 	PINGRP_UART2_TXD,
51999c6bafSTom Warren 	PINGRP_UART2_RTS_N,
52999c6bafSTom Warren 	PINGRP_UART2_CTS_N,
53999c6bafSTom Warren 	PINGRP_UART3_TXD,
54999c6bafSTom Warren 	PINGRP_UART3_RXD,
55999c6bafSTom Warren 	PINGRP_UART3_CTS_N,
56999c6bafSTom Warren 	PINGRP_UART3_RTS_N,
57999c6bafSTom Warren 	PINGRP_GPIO_PU0,
58999c6bafSTom Warren 	PINGRP_GPIO_PU1,
59999c6bafSTom Warren 	PINGRP_GPIO_PU2,
60999c6bafSTom Warren 	PINGRP_GPIO_PU3,
61999c6bafSTom Warren 	PINGRP_GPIO_PU4,
62999c6bafSTom Warren 	PINGRP_GPIO_PU5,
63999c6bafSTom Warren 	PINGRP_GPIO_PU6,
64999c6bafSTom Warren 	PINGRP_GEN1_I2C_SDA,
65999c6bafSTom Warren 	PINGRP_GEN1_I2C_SCL,
66999c6bafSTom Warren 	PINGRP_DAP4_FS,
67999c6bafSTom Warren 	PINGRP_DAP4_DIN,
68999c6bafSTom Warren 	PINGRP_DAP4_DOUT,
69999c6bafSTom Warren 	PINGRP_DAP4_SCLK,
70999c6bafSTom Warren 	PINGRP_CLK3_OUT,
71999c6bafSTom Warren 	PINGRP_CLK3_REQ,
72999c6bafSTom Warren 	/* Renamed on Tegra124, from GMI_xx to GPIO_Pxx */
73999c6bafSTom Warren 	PINGRP_GPIO_PC7,			/* offset 0x31c0 */
74999c6bafSTom Warren 	PINGRP_GPIO_PI5,
75999c6bafSTom Warren 	PINGRP_GPIO_PI7,
76999c6bafSTom Warren 	PINGRP_GPIO_PK0,
77999c6bafSTom Warren 	PINGRP_GPIO_PK1,
78999c6bafSTom Warren 	PINGRP_GPIO_PJ0,
79999c6bafSTom Warren 	PINGRP_GPIO_PJ2,
80999c6bafSTom Warren 	PINGRP_GPIO_PK3,
81999c6bafSTom Warren 	PINGRP_GPIO_PK4,
82999c6bafSTom Warren 	PINGRP_GPIO_PK2,
83999c6bafSTom Warren 	PINGRP_GPIO_PI3,
84999c6bafSTom Warren 	PINGRP_GPIO_PI6,
85999c6bafSTom Warren 	PINGRP_GPIO_PG0,
86999c6bafSTom Warren 	PINGRP_GPIO_PG1,
87999c6bafSTom Warren 	PINGRP_GPIO_PG2,
88999c6bafSTom Warren 	PINGRP_GPIO_PG3,
89999c6bafSTom Warren 	PINGRP_GPIO_PG4,
90999c6bafSTom Warren 	PINGRP_GPIO_PG5,
91999c6bafSTom Warren 	PINGRP_GPIO_PG6,
92999c6bafSTom Warren 	PINGRP_GPIO_PG7,
93999c6bafSTom Warren 	PINGRP_GPIO_PH0,
94999c6bafSTom Warren 	PINGRP_GPIO_PH1,
95999c6bafSTom Warren 	PINGRP_GPIO_PH2,
96999c6bafSTom Warren 	PINGRP_GPIO_PH3,
97999c6bafSTom Warren 	PINGRP_GPIO_PH4,
98999c6bafSTom Warren 	PINGRP_GPIO_PH5,
99999c6bafSTom Warren 	PINGRP_GPIO_PH6,
100999c6bafSTom Warren 	PINGRP_GPIO_PH7,
101999c6bafSTom Warren 	PINGRP_GPIO_PJ7,
102999c6bafSTom Warren 	PINGRP_GPIO_PB0,
103999c6bafSTom Warren 	PINGRP_GPIO_PB1,
104999c6bafSTom Warren 	PINGRP_GPIO_PK7,
105999c6bafSTom Warren 	PINGRP_GPIO_PI0,
106999c6bafSTom Warren 	PINGRP_GPIO_PI1,
107999c6bafSTom Warren 	PINGRP_GPIO_PI2,
108999c6bafSTom Warren 	PINGRP_GPIO_PI4,			/* offset 0x324c */
109999c6bafSTom Warren 	PINGRP_GEN2_I2C_SCL,
110999c6bafSTom Warren 	PINGRP_GEN2_I2C_SDA,
111999c6bafSTom Warren 	PINGRP_SDMMC4_CLK,
112999c6bafSTom Warren 	PINGRP_SDMMC4_CMD,
113999c6bafSTom Warren 	PINGRP_SDMMC4_DAT0,
114999c6bafSTom Warren 	PINGRP_SDMMC4_DAT1,
115999c6bafSTom Warren 	PINGRP_SDMMC4_DAT2,
116999c6bafSTom Warren 	PINGRP_SDMMC4_DAT3,
117999c6bafSTom Warren 	PINGRP_SDMMC4_DAT4,
118999c6bafSTom Warren 	PINGRP_SDMMC4_DAT5,
119999c6bafSTom Warren 	PINGRP_SDMMC4_DAT6,
120999c6bafSTom Warren 	PINGRP_SDMMC4_DAT7,
121999c6bafSTom Warren 	PINGRP_CAM_MCLK = PINGRP_SDMMC4_DAT7 + 2,
122999c6bafSTom Warren 	PINGRP_GPIO_PCC1,
123999c6bafSTom Warren 	PINGRP_GPIO_PBB0,
124999c6bafSTom Warren 	PINGRP_CAM_I2C_SCL,
125999c6bafSTom Warren 	PINGRP_CAM_I2C_SDA,
126999c6bafSTom Warren 	PINGRP_GPIO_PBB3,
127999c6bafSTom Warren 	PINGRP_GPIO_PBB4,
128999c6bafSTom Warren 	PINGRP_GPIO_PBB5,
129999c6bafSTom Warren 	PINGRP_GPIO_PBB6,
130999c6bafSTom Warren 	PINGRP_GPIO_PBB7,
131999c6bafSTom Warren 	PINGRP_GPIO_PCC2,
132999c6bafSTom Warren 	PINGRP_JTAG_RTCK,
133999c6bafSTom Warren 	PINGRP_PWR_I2C_SCL,
134999c6bafSTom Warren 	PINGRP_PWR_I2C_SDA,
135999c6bafSTom Warren 	PINGRP_KB_ROW0,
136999c6bafSTom Warren 	PINGRP_KB_ROW1,
137999c6bafSTom Warren 	PINGRP_KB_ROW2,
138999c6bafSTom Warren 	PINGRP_KB_ROW3,
139999c6bafSTom Warren 	PINGRP_KB_ROW4,
140999c6bafSTom Warren 	PINGRP_KB_ROW5,
141999c6bafSTom Warren 	PINGRP_KB_ROW6,
142999c6bafSTom Warren 	PINGRP_KB_ROW7,
143999c6bafSTom Warren 	PINGRP_KB_ROW8,
144999c6bafSTom Warren 	PINGRP_KB_ROW9,
145999c6bafSTom Warren 	PINGRP_KB_ROW10,
146999c6bafSTom Warren 	PINGRP_KB_ROW11,
147999c6bafSTom Warren 	PINGRP_KB_ROW12,
148999c6bafSTom Warren 	PINGRP_KB_ROW13,
149999c6bafSTom Warren 	PINGRP_KB_ROW14,
150999c6bafSTom Warren 	PINGRP_KB_ROW15,
151999c6bafSTom Warren 	PINGRP_KB_COL0,				/* offset 0x32fc */
152999c6bafSTom Warren 	PINGRP_KB_COL1,
153999c6bafSTom Warren 	PINGRP_KB_COL2,
154999c6bafSTom Warren 	PINGRP_KB_COL3,
155999c6bafSTom Warren 	PINGRP_KB_COL4,
156999c6bafSTom Warren 	PINGRP_KB_COL5,
157999c6bafSTom Warren 	PINGRP_KB_COL6,
158999c6bafSTom Warren 	PINGRP_KB_COL7,
159999c6bafSTom Warren 	PINGRP_CLK_32K_OUT,
160999c6bafSTom Warren 	PINGRP_CORE_PWR_REQ = PINGRP_CLK_32K_OUT + 2,	/* offset 0x3324 */
161999c6bafSTom Warren 	PINGRP_CPU_PWR_REQ,
162999c6bafSTom Warren 	PINGRP_PWR_INT_N,
163999c6bafSTom Warren 	PINGRP_CLK_32K_IN,
164999c6bafSTom Warren 	PINGRP_OWR,
165999c6bafSTom Warren 	PINGRP_DAP1_FS,
166999c6bafSTom Warren 	PINGRP_DAP1_DIN,
167999c6bafSTom Warren 	PINGRP_DAP1_DOUT,
168999c6bafSTom Warren 	PINGRP_DAP1_SCLK,
169999c6bafSTom Warren 	PINGRP_CLK1_REQ,
170999c6bafSTom Warren 	PINGRP_CLK1_OUT,
171999c6bafSTom Warren 	PINGRP_SPDIF_IN,
172999c6bafSTom Warren 	PINGRP_SPDIF_OUT,
173999c6bafSTom Warren 	PINGRP_DAP2_FS,
174999c6bafSTom Warren 	PINGRP_DAP2_DIN,
175999c6bafSTom Warren 	PINGRP_DAP2_DOUT,
176999c6bafSTom Warren 	PINGRP_DAP2_SCLK,
177999c6bafSTom Warren 	PINGRP_DVFS_PWM,
178999c6bafSTom Warren 	PINGRP_GPIO_X1_AUD,
179999c6bafSTom Warren 	PINGRP_GPIO_X3_AUD,
180999c6bafSTom Warren 	PINGRP_DVFS_CLK,
181999c6bafSTom Warren 	PINGRP_GPIO_X4_AUD,
182999c6bafSTom Warren 	PINGRP_GPIO_X5_AUD,
183999c6bafSTom Warren 	PINGRP_GPIO_X6_AUD,
184999c6bafSTom Warren 	PINGRP_GPIO_X7_AUD,
185999c6bafSTom Warren 	PINGRP_SDMMC3_CLK = PINGRP_GPIO_X7_AUD + 3,
186999c6bafSTom Warren 	PINGRP_SDMMC3_CMD,
187999c6bafSTom Warren 	PINGRP_SDMMC3_DAT0,
188999c6bafSTom Warren 	PINGRP_SDMMC3_DAT1,
189999c6bafSTom Warren 	PINGRP_SDMMC3_DAT2,
190999c6bafSTom Warren 	PINGRP_SDMMC3_DAT3,
191999c6bafSTom Warren 	PINGRP_PEX_L0_RST = PINGRP_SDMMC3_DAT3 + 6, /* offset 0x33bc */
192999c6bafSTom Warren 	PINGRP_PEX_L0_CLKREQ,
193999c6bafSTom Warren 	PINGRP_PEX_WAKE,
194999c6bafSTom Warren 	PINGRP_PEX_L1_RST = PINGRP_PEX_WAKE + 2,
195999c6bafSTom Warren 	PINGRP_PEX_L1_CLKREQ,
196999c6bafSTom Warren 	PINGRP_HDMI_CEC = PINGRP_PEX_L1_CLKREQ + 4, /* offset 0x33e0 */
197999c6bafSTom Warren 	PINGRP_SDMMC1_WP_N,
198999c6bafSTom Warren 	PINGRP_SDMMC3_CD_N,
199999c6bafSTom Warren 	PINGRP_GPIO_W2_AUD,
200999c6bafSTom Warren 	PINGRP_GPIO_W3_AUD,
201999c6bafSTom Warren 	PINGRP_USB_VBUS_EN0,
202999c6bafSTom Warren 	PINGRP_USB_VBUS_EN1,
203999c6bafSTom Warren 	PINGRP_SDMMC3_CLK_LB_IN,
204999c6bafSTom Warren 	PINGRP_SDMMC3_CLK_LB_OUT,
205999c6bafSTom Warren 	PINGRP_GMI_CLK_LB,
206999c6bafSTom Warren 	PINGRP_RESET_OUT_N,
207999c6bafSTom Warren 	PINGRP_KB_ROW16,			/* offset 0x340c */
208999c6bafSTom Warren 	PINGRP_KB_ROW17,
209999c6bafSTom Warren 	PINGRP_USB_VBUS_EN2,
210999c6bafSTom Warren 	PINGRP_GPIO_PFF2,
211999c6bafSTom Warren 	PINGRP_DP_HPD,				/* last reg offset = 0x3430 */
212999c6bafSTom Warren 	PINGRP_COUNT,
213999c6bafSTom Warren };
214999c6bafSTom Warren 
215999c6bafSTom Warren enum pdrive_pingrp {
216999c6bafSTom Warren 	PDRIVE_PINGROUP_AO1 = 0, /* offset 0x868 */
217999c6bafSTom Warren 	PDRIVE_PINGROUP_AO2,
218999c6bafSTom Warren 	PDRIVE_PINGROUP_AT1,
219999c6bafSTom Warren 	PDRIVE_PINGROUP_AT2,
220999c6bafSTom Warren 	PDRIVE_PINGROUP_AT3,
221999c6bafSTom Warren 	PDRIVE_PINGROUP_AT4,
222999c6bafSTom Warren 	PDRIVE_PINGROUP_AT5,
223999c6bafSTom Warren 	PDRIVE_PINGROUP_CDEV1,
224999c6bafSTom Warren 	PDRIVE_PINGROUP_CDEV2,
225999c6bafSTom Warren 	PDRIVE_PINGROUP_DAP1 = 10,	/* offset 0x890 */
226999c6bafSTom Warren 	PDRIVE_PINGROUP_DAP2,
227999c6bafSTom Warren 	PDRIVE_PINGROUP_DAP3,
228999c6bafSTom Warren 	PDRIVE_PINGROUP_DAP4,
229999c6bafSTom Warren 	PDRIVE_PINGROUP_DBG,
230999c6bafSTom Warren 	PDRIVE_PINGROUP_SDIO3 = 18,	/* offset 0x8B0 */
231999c6bafSTom Warren 	PDRIVE_PINGROUP_SPI,
232999c6bafSTom Warren 	PDRIVE_PINGROUP_UAA,
233999c6bafSTom Warren 	PDRIVE_PINGROUP_UAB,
234999c6bafSTom Warren 	PDRIVE_PINGROUP_UART2,
235999c6bafSTom Warren 	PDRIVE_PINGROUP_UART3,
236999c6bafSTom Warren 	PDRIVE_PINGROUP_SDIO1 = 33,     /* offset 0x8EC */
237999c6bafSTom Warren 	PDRIVE_PINGROUP_DDC = 37,       /* offset 0x8FC */
238999c6bafSTom Warren 	PDRIVE_PINGROUP_GMA,
239999c6bafSTom Warren 	PDRIVE_PINGROUP_GME = 42,	/* offset 0x910 */
240999c6bafSTom Warren 	PDRIVE_PINGROUP_GMF,
241999c6bafSTom Warren 	PDRIVE_PINGROUP_GMG,
242999c6bafSTom Warren 	PDRIVE_PINGROUP_GMH,
243999c6bafSTom Warren 	PDRIVE_PINGROUP_OWR,
244999c6bafSTom Warren 	PDRIVE_PINGROUP_UAD,
245999c6bafSTom Warren 	PDRIVE_PINGROUP_DEV3 = 49,      /* offset 0x92c */
246999c6bafSTom Warren 	PDRIVE_PINGROUP_CEC = 52,       /* offset 0x938 */
247999c6bafSTom Warren 	PDRIVE_PINGROUP_AT6 = 75,	/* offset 0x994 */
248999c6bafSTom Warren 	PDRIVE_PINGROUP_DAP5,
249999c6bafSTom Warren 	PDRIVE_PINGROUP_VBUS,
250999c6bafSTom Warren 	PDRIVE_PINGROUP_AO3,
251999c6bafSTom Warren 	PDRIVE_PINGROUP_HVC,
252999c6bafSTom Warren 	PDRIVE_PINGROUP_SDIO4,
253999c6bafSTom Warren 	PDRIVE_PINGROUP_AO0,
254999c6bafSTom Warren 	PDRIVE_PINGROUP_COUNT,
255999c6bafSTom Warren };
256999c6bafSTom Warren 
257999c6bafSTom Warren /*
258999c6bafSTom Warren  * Functions which can be assigned to each of the pin groups. The values here
259999c6bafSTom Warren  * bear no relation to the values programmed into pinmux registers and are
260999c6bafSTom Warren  * purely a convenience. The translation is done through a table search.
261999c6bafSTom Warren  */
262999c6bafSTom Warren enum pmux_func {
263999c6bafSTom Warren 	PMUX_FUNC_AHB_CLK,
264999c6bafSTom Warren 	PMUX_FUNC_APB_CLK,
265999c6bafSTom Warren 	PMUX_FUNC_AUDIO_SYNC,
266999c6bafSTom Warren 	PMUX_FUNC_CRT,
267999c6bafSTom Warren 	PMUX_FUNC_DAP1,
268999c6bafSTom Warren 	PMUX_FUNC_DAP2,
269999c6bafSTom Warren 	PMUX_FUNC_DAP3,
270999c6bafSTom Warren 	PMUX_FUNC_DAP4,
271999c6bafSTom Warren 	PMUX_FUNC_DAP5,
272999c6bafSTom Warren 	PMUX_FUNC_DISPA,
273999c6bafSTom Warren 	PMUX_FUNC_DISPB,
274999c6bafSTom Warren 	PMUX_FUNC_EMC_TEST0_DLL,
275999c6bafSTom Warren 	PMUX_FUNC_EMC_TEST1_DLL,
276999c6bafSTom Warren 	PMUX_FUNC_GMI,
277999c6bafSTom Warren 	PMUX_FUNC_GMI_INT,
278999c6bafSTom Warren 	PMUX_FUNC_HDMI,
279999c6bafSTom Warren 	PMUX_FUNC_I2C1,
280999c6bafSTom Warren 	PMUX_FUNC_I2C2,
281999c6bafSTom Warren 	PMUX_FUNC_I2C3,
282999c6bafSTom Warren 	PMUX_FUNC_IDE,
283999c6bafSTom Warren 	PMUX_FUNC_KBC,
284999c6bafSTom Warren 	PMUX_FUNC_MIO,
285999c6bafSTom Warren 	PMUX_FUNC_MIPI_HS,
286999c6bafSTom Warren 	PMUX_FUNC_NAND,
287999c6bafSTom Warren 	PMUX_FUNC_OSC,
288999c6bafSTom Warren 	PMUX_FUNC_OWR,
289999c6bafSTom Warren 	PMUX_FUNC_PCIE,
290999c6bafSTom Warren 	PMUX_FUNC_PLLA_OUT,
291999c6bafSTom Warren 	PMUX_FUNC_PLLC_OUT1,
292999c6bafSTom Warren 	PMUX_FUNC_PLLM_OUT1,
293999c6bafSTom Warren 	PMUX_FUNC_PLLP_OUT2,
294999c6bafSTom Warren 	PMUX_FUNC_PLLP_OUT3,
295999c6bafSTom Warren 	PMUX_FUNC_PLLP_OUT4,
296999c6bafSTom Warren 	PMUX_FUNC_PWM,
297999c6bafSTom Warren 	PMUX_FUNC_PWR_INTR,
298999c6bafSTom Warren 	PMUX_FUNC_PWR_ON,
299999c6bafSTom Warren 	PMUX_FUNC_RTCK,
300999c6bafSTom Warren 	PMUX_FUNC_SDMMC1,
301999c6bafSTom Warren 	PMUX_FUNC_SDMMC2,
302999c6bafSTom Warren 	PMUX_FUNC_SDMMC3,
303999c6bafSTom Warren 	PMUX_FUNC_SDMMC4,
304999c6bafSTom Warren 	PMUX_FUNC_SFLASH,
305999c6bafSTom Warren 	PMUX_FUNC_SPDIF,
306999c6bafSTom Warren 	PMUX_FUNC_SPI1,
307999c6bafSTom Warren 	PMUX_FUNC_SPI2,
308999c6bafSTom Warren 	PMUX_FUNC_SPI2_ALT,
309999c6bafSTom Warren 	PMUX_FUNC_SPI3,
310999c6bafSTom Warren 	PMUX_FUNC_SPI4,
311999c6bafSTom Warren 	PMUX_FUNC_TRACE,
312999c6bafSTom Warren 	PMUX_FUNC_TWC,
313999c6bafSTom Warren 	PMUX_FUNC_UARTA,
314999c6bafSTom Warren 	PMUX_FUNC_UARTB,
315999c6bafSTom Warren 	PMUX_FUNC_UARTC,
316999c6bafSTom Warren 	PMUX_FUNC_UARTD,
317999c6bafSTom Warren 	PMUX_FUNC_UARTE,
318999c6bafSTom Warren 	PMUX_FUNC_ULPI,
319999c6bafSTom Warren 	PMUX_FUNC_VI,
320999c6bafSTom Warren 	PMUX_FUNC_VI_SENSOR_CLK,
321999c6bafSTom Warren 	PMUX_FUNC_XIO,
322999c6bafSTom Warren 	/* End of Tegra2 MUX selectors */
323999c6bafSTom Warren 	PMUX_FUNC_BLINK,
324999c6bafSTom Warren 	PMUX_FUNC_CEC,
325999c6bafSTom Warren 	PMUX_FUNC_CLK12,
326999c6bafSTom Warren 	PMUX_FUNC_DAP,
327999c6bafSTom Warren 	PMUX_FUNC_DAPSDMMC2,
328999c6bafSTom Warren 	PMUX_FUNC_DDR,
329999c6bafSTom Warren 	PMUX_FUNC_DEV3,
330999c6bafSTom Warren 	PMUX_FUNC_DTV,
331999c6bafSTom Warren 	PMUX_FUNC_VI_ALT1,
332999c6bafSTom Warren 	PMUX_FUNC_VI_ALT2,
333999c6bafSTom Warren 	PMUX_FUNC_VI_ALT3,
334999c6bafSTom Warren 	PMUX_FUNC_EMC_DLL,
335999c6bafSTom Warren 	PMUX_FUNC_EXTPERIPH1,
336999c6bafSTom Warren 	PMUX_FUNC_EXTPERIPH2,
337999c6bafSTom Warren 	PMUX_FUNC_EXTPERIPH3,
338999c6bafSTom Warren 	PMUX_FUNC_GMI_ALT,
339999c6bafSTom Warren 	PMUX_FUNC_HDA,
340999c6bafSTom Warren 	PMUX_FUNC_HSI,
341999c6bafSTom Warren 	PMUX_FUNC_I2C4,
342999c6bafSTom Warren 	PMUX_FUNC_I2C5,
343999c6bafSTom Warren 	PMUX_FUNC_I2CPWR,
344999c6bafSTom Warren 	PMUX_FUNC_I2S0,
345999c6bafSTom Warren 	PMUX_FUNC_I2S1,
346999c6bafSTom Warren 	PMUX_FUNC_I2S2,
347999c6bafSTom Warren 	PMUX_FUNC_I2S3,
348999c6bafSTom Warren 	PMUX_FUNC_I2S4,
349999c6bafSTom Warren 	PMUX_FUNC_NAND_ALT,
350999c6bafSTom Warren 	PMUX_FUNC_POPSDIO4,
351999c6bafSTom Warren 	PMUX_FUNC_POPSDMMC4,
352999c6bafSTom Warren 	PMUX_FUNC_PWM0,
353999c6bafSTom Warren 	PMUX_FUNC_PWM1,
354999c6bafSTom Warren 	PMUX_FUNC_PWM2,
355999c6bafSTom Warren 	PMUX_FUNC_PWM3,
356999c6bafSTom Warren 	PMUX_FUNC_SATA,
357999c6bafSTom Warren 	PMUX_FUNC_SPI5,
358999c6bafSTom Warren 	PMUX_FUNC_SPI6,
359999c6bafSTom Warren 	PMUX_FUNC_SYSCLK,
360999c6bafSTom Warren 	PMUX_FUNC_VGP1,
361999c6bafSTom Warren 	PMUX_FUNC_VGP2,
362999c6bafSTom Warren 	PMUX_FUNC_VGP3,
363999c6bafSTom Warren 	PMUX_FUNC_VGP4,
364999c6bafSTom Warren 	PMUX_FUNC_VGP5,
365999c6bafSTom Warren 	PMUX_FUNC_VGP6,
366999c6bafSTom Warren 	/* End of Tegra3 MUX selectors */
367999c6bafSTom Warren 	PMUX_FUNC_USB,
368999c6bafSTom Warren 	PMUX_FUNC_SOC,
369999c6bafSTom Warren 	PMUX_FUNC_CPU,
370999c6bafSTom Warren 	PMUX_FUNC_CLK,
371999c6bafSTom Warren 	PMUX_FUNC_PWRON,
372999c6bafSTom Warren 	PMUX_FUNC_PMI,
373999c6bafSTom Warren 	PMUX_FUNC_CLDVFS,
374999c6bafSTom Warren 	PMUX_FUNC_RESET_OUT_N,
375999c6bafSTom Warren 	/* End of Tegra114 MUX selectors */
376999c6bafSTom Warren 
377*e2969957SStephen Warren 	PMUX_FUNC_COUNT,
378999c6bafSTom Warren 
379999c6bafSTom Warren 	PMUX_FUNC_INVALID = 0x4000,
380999c6bafSTom Warren 	PMUX_FUNC_RSVD1 = 0x8000,
381999c6bafSTom Warren 	PMUX_FUNC_RSVD2 = 0x8001,
382999c6bafSTom Warren 	PMUX_FUNC_RSVD3 = 0x8002,
383999c6bafSTom Warren 	PMUX_FUNC_RSVD4 = 0x8003,
384999c6bafSTom Warren };
385999c6bafSTom Warren 
386*e2969957SStephen Warren #define TEGRA_PMX_HAS_PIN_IO_BIT_ETC
387*e2969957SStephen Warren #define TEGRA_PMX_HAS_RCV_SEL
388*e2969957SStephen Warren #define TEGRA_PMX_HAS_PADGRPS
389*e2969957SStephen Warren #include <asm/arch-tegra/pinmux.h>
390999c6bafSTom Warren 
391999c6bafSTom Warren #endif /* _TEGRA124_PINMUX_H_ */
392