]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/toradex/colibri_t20_iris/colibri_t20_iris.c
Merge branch 'master' of git://git.denx.de/u-boot-usb
[karo-tx-uboot.git] / board / toradex / colibri_t20_iris / colibri_t20_iris.c
1 /*
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/gpio.h>
18 #include <asm/arch/clock.h>
19 #include <asm/arch/funcmux.h>
20 #include <asm/arch/pinmux.h>
21 #include <asm/arch-tegra/board.h>
22
23 #include "../colibri_t20-common/colibri_t20-common.h"
24
25 #ifdef CONFIG_USB_EHCI_TEGRA
26 void pin_mux_usb(void)
27 {
28         colibri_t20_common_pin_mux_usb();
29
30         /* USB 1 aka Tegra USB port 3 VBus*/
31         pinmux_tristate_disable(PINGRP_SPIG);
32 }
33 #endif
34
35 #ifdef CONFIG_TEGRA_MMC
36 /*
37  * Routine: pin_mux_mmc
38  * Description: setup the pin muxes/tristate values for the SDMMC(s)
39  */
40 void pin_mux_mmc(void)
41 {
42         funcmux_select(PERIPH_ID_SDMMC4, FUNCMUX_SDMMC4_ATB_GMA_4_BIT);
43         pinmux_tristate_disable(PINGRP_GMB);
44 }
45 #endif