blob: 6d5e47d38e0dbf41ead5f36abc78f46bd7e8a3bb [file] [log] [blame]
Lucas Stach85990a92012-10-07 11:36:06 +00001/*
2 * Copyright (C) 2012 Lucas Stach
3 *
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.
8 *
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.
13 *
14 */
15
16#include <common.h>
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>
21
22#include "colibri_t20-common.h"
23
24#ifdef CONFIG_USB_EHCI_TEGRA
25void colibri_t20_common_pin_mux_usb(void)
26{
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);
32 /* PHY reset GPIO */
33 pinmux_tristate_disable(PINGRP_UAC);
34 /* VBus GPIO */
35 pinmux_tristate_disable(PINGRP_DTE);
36}
37#endif
38
39#ifdef CONFIG_TEGRA_NAND
40void pin_mux_nand(void)
41{
42 funcmux_select(PERIPH_ID_NDFLASH, FUNCMUX_NDFLASH_KBC_8_BIT);
43}
44#endif