2 * Copyright (c) 2010-2013, NVIDIA CORPORATION. All rights reserved.
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #ifndef _TEGRA114_PINMUX_H_
18 #define _TEGRA114_PINMUX_H_
21 * Pin groups which we adjust. There are three basic attributes of each pin
22 * group which use this enum:
26 * - tristate or normal
29 PINGRP_ULPI_DATA0 = 0, /* offset 0x3000 */
53 PINGRP_CLK2_OUT = PINGRP_SDMMC1_DAT0 + 3,
55 PINGRP_HDMI_INT = PINGRP_CLK2_REQ + 41,
58 PINGRP_UART2_RXD = PINGRP_DDC_SDA + 19,
129 PINGRP_CAM_MCLK = PINGRP_SDMMC4_DAT7 + 2,
154 PINGRP_KB_COL0 = PINGRP_KB_ROW10 + 6,
189 PINGRP_SDMMC3_CLK = PINGRP_GPIO_X7_AUD + 3,
195 PINGRP_HDMI_CEC = PINGRP_SDMMC3_DAT3 + 15, /* offset 0x33e0 */
200 PINGRP_USB_VBUS_EN0, /* offset 0x33f4 */
202 PINGRP_SDMMC3_CLK_LB_IN,
203 PINGRP_SDMMC3_CLK_LB_OUT,
204 PINGRP_RESET_OUT_N = PINGRP_SDMMC3_CLK_LB_OUT + 2,
209 PDRIVE_PINGROUP_AO1 = 0, /* offset 0x868 */
216 PDRIVE_PINGROUP_CDEV1,
217 PDRIVE_PINGROUP_CDEV2,
218 PDRIVE_PINGROUP_DAP1 = 10, /* offset 0x890 */
219 PDRIVE_PINGROUP_DAP2,
220 PDRIVE_PINGROUP_DAP3,
221 PDRIVE_PINGROUP_DAP4,
223 PDRIVE_PINGROUP_SDIO3 = 18, /* offset 0x8B0 */
227 PDRIVE_PINGROUP_UART2,
228 PDRIVE_PINGROUP_UART3,
229 PDRIVE_PINGROUP_SDIO1 = 33, /* offset 0x8EC */
230 PDRIVE_PINGROUP_DDC = 37, /* offset 0x8FC */
232 PDRIVE_PINGROUP_GME = 42, /* offset 0x910 */
238 PDRIVE_PINGROUP_DEV3 = 49, /* offset 0x92c */
239 PDRIVE_PINGROUP_CEC = 52, /* offset 0x938 */
240 PDRIVE_PINGROUP_AT6 = 75, /* offset 0x994 */
241 PDRIVE_PINGROUP_DAP5,
242 PDRIVE_PINGROUP_VBUS,
245 PDRIVE_PINGROUP_SDIO4,
251 * Functions which can be assigned to each of the pin groups. The values here
252 * bear no relation to the values programmed into pinmux registers and are
253 * purely a convenience. The translation is done through a table search.
258 PMUX_FUNC_AUDIO_SYNC,
267 PMUX_FUNC_EMC_TEST0_DLL,
268 PMUX_FUNC_EMC_TEST1_DLL,
313 PMUX_FUNC_VI_SENSOR_CLK,
315 /* End of Tegra2 MUX selectors */
328 PMUX_FUNC_EXTPERIPH1,
329 PMUX_FUNC_EXTPERIPH2,
330 PMUX_FUNC_EXTPERIPH3,
359 /* End of Tegra3 MUX selectors */
367 PMUX_FUNC_RESET_OUT_N,
368 /* End of Tegra114 MUX selectors */
372 PMUX_FUNC_INVALID = 0x4000,
373 PMUX_FUNC_RSVD1 = 0x8000,
374 PMUX_FUNC_RSVD2 = 0x8001,
375 PMUX_FUNC_RSVD3 = 0x8002,
376 PMUX_FUNC_RSVD4 = 0x8003,
379 #define TEGRA_PMX_HAS_PIN_IO_BIT_ETC
380 #define TEGRA_PMX_HAS_RCV_SEL
381 #define TEGRA_PMX_HAS_DRVGRPS
382 #include <asm/arch-tegra/pinmux.h>
384 #endif /* _TEGRA114_PINMUX_H_ */