Lucas Stach | 85990a9 | 2012-10-07 11:36:06 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 Lucas Stach |
| 3 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Lucas Stach | 85990a9 | 2012-10-07 11:36:06 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <common.h> |
| 8 | #include <asm/arch/clock.h> |
| 9 | #include <asm/arch/funcmux.h> |
| 10 | #include <asm/arch/pinmux.h> |
| 11 | #include <asm/arch-tegra/board.h> |
| 12 | |
| 13 | #include "colibri_t20-common.h" |
| 14 | |
| 15 | #ifdef CONFIG_USB_EHCI_TEGRA |
| 16 | void colibri_t20_common_pin_mux_usb(void) |
| 17 | { |
| 18 | /* module internal USB bus to connect ethernet chipset */ |
| 19 | funcmux_select(PERIPH_ID_USB2, FUNCMUX_USB2_ULPI); |
| 20 | /* ULPI reference clock output */ |
Stephen Warren | f27f4e8 | 2014-03-21 12:28:58 -0600 | [diff] [blame] | 21 | pinmux_set_func(PMUX_PINGRP_CDEV2, PMUX_FUNC_PLLP_OUT4); |
| 22 | pinmux_tristate_disable(PMUX_PINGRP_CDEV2); |
Lucas Stach | 85990a9 | 2012-10-07 11:36:06 +0000 | [diff] [blame] | 23 | /* PHY reset GPIO */ |
Stephen Warren | f27f4e8 | 2014-03-21 12:28:58 -0600 | [diff] [blame] | 24 | pinmux_tristate_disable(PMUX_PINGRP_UAC); |
Lucas Stach | 85990a9 | 2012-10-07 11:36:06 +0000 | [diff] [blame] | 25 | /* VBus GPIO */ |
Stephen Warren | f27f4e8 | 2014-03-21 12:28:58 -0600 | [diff] [blame] | 26 | pinmux_tristate_disable(PMUX_PINGRP_DTE); |
Lucas Stach | 85990a9 | 2012-10-07 11:36:06 +0000 | [diff] [blame] | 27 | } |
| 28 | #endif |
| 29 | |
| 30 | #ifdef CONFIG_TEGRA_NAND |
| 31 | void pin_mux_nand(void) |
| 32 | { |
| 33 | funcmux_select(PERIPH_ID_NDFLASH, FUNCMUX_NDFLASH_KBC_8_BIT); |
| 34 | } |
| 35 | #endif |