]>
Commit | Line | Data |
---|---|---|
6bbda883 LS |
1 | /* |
2 | * Copyright (C) 2012 Lucas Stach | |
3 | * | |
1a459660 | 4 | * SPDX-License-Identifier: GPL-2.0+ |
6bbda883 LS |
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 */ | |
21 | pinmux_set_func(PINGRP_CDEV2, PMUX_FUNC_PLLP_OUT4); | |
22 | pinmux_tristate_disable(PINGRP_CDEV2); | |
23 | /* PHY reset GPIO */ | |
24 | pinmux_tristate_disable(PINGRP_UAC); | |
25 | /* VBus GPIO */ | |
26 | pinmux_tristate_disable(PINGRP_DTE); | |
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 |