blob: 58a9916f0adeb9728d3a9dba01f6cd82e4b1c683 [file] [log] [blame]
Lucas Stach85990a92012-10-07 11:36:06 +00001/*
2 * Copyright (C) 2012 Lucas Stach
3 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Lucas Stach85990a92012-10-07 11:36:06 +00005 */
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
16void 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 Warrenf27f4e82014-03-21 12:28:58 -060021 pinmux_set_func(PMUX_PINGRP_CDEV2, PMUX_FUNC_PLLP_OUT4);
22 pinmux_tristate_disable(PMUX_PINGRP_CDEV2);
Lucas Stach85990a92012-10-07 11:36:06 +000023 /* PHY reset GPIO */
Stephen Warrenf27f4e82014-03-21 12:28:58 -060024 pinmux_tristate_disable(PMUX_PINGRP_UAC);
Lucas Stach85990a92012-10-07 11:36:06 +000025 /* VBus GPIO */
Stephen Warrenf27f4e82014-03-21 12:28:58 -060026 pinmux_tristate_disable(PMUX_PINGRP_DTE);
Lucas Stach85990a92012-10-07 11:36:06 +000027}
28#endif
29
30#ifdef CONFIG_TEGRA_NAND
31void pin_mux_nand(void)
32{
33 funcmux_select(PERIPH_ID_NDFLASH, FUNCMUX_NDFLASH_KBC_8_BIT);
34}
35#endif