2 * Copyright (C) 2012 Lucas Stach
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of
7 * the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
17 #include <asm/arch/clock.h>
18 #include <asm/arch/funcmux.h>
19 #include <asm/arch/pinmux.h>
20 #include <asm/arch-tegra/board.h>
22 #include "colibri_t20-common.h"
24 #ifdef CONFIG_USB_EHCI_TEGRA
25 void colibri_t20_common_pin_mux_usb(void)
27 /* module internal USB bus to connect ethernet chipset */
28 funcmux_select(PERIPH_ID_USB2, FUNCMUX_USB2_ULPI);
29 /* ULPI reference clock output */
30 pinmux_set_func(PINGRP_CDEV2, PMUX_FUNC_PLLP_OUT4);
31 pinmux_tristate_disable(PINGRP_CDEV2);
33 pinmux_tristate_disable(PINGRP_UAC);
35 pinmux_tristate_disable(PINGRP_DTE);
39 #ifdef CONFIG_TEGRA_NAND
40 void pin_mux_nand(void)
42 funcmux_select(PERIPH_ID_NDFLASH, FUNCMUX_NDFLASH_KBC_8_BIT);