~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/u-boot/board/toradex/colibri_t20_iris/colibri_t20_iris.c

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  Copyright (C) 2012 Lucas Stach
 
3
 *
 
4
 * SPDX-License-Identifier:     GPL-2.0+
 
5
 */
 
6
 
 
7
#include <common.h>
 
8
#include <asm/gpio.h>
 
9
#include <asm/arch/clock.h>
 
10
#include <asm/arch/funcmux.h>
 
11
#include <asm/arch/pinmux.h>
 
12
#include <asm/arch-tegra/board.h>
 
13
 
 
14
#include "../colibri_t20-common/colibri_t20-common.h"
 
15
 
 
16
#ifdef CONFIG_USB_EHCI_TEGRA
 
17
void pin_mux_usb(void)
 
18
{
 
19
        colibri_t20_common_pin_mux_usb();
 
20
 
 
21
        /* USB 1 aka Tegra USB port 3 VBus*/
 
22
        pinmux_tristate_disable(PMUX_PINGRP_SPIG);
 
23
}
 
24
#endif
 
25
 
 
26
#ifdef CONFIG_TEGRA_MMC
 
27
/*
 
28
 * Routine: pin_mux_mmc
 
29
 * Description: setup the pin muxes/tristate values for the SDMMC(s)
 
30
 */
 
31
void pin_mux_mmc(void)
 
32
{
 
33
        funcmux_select(PERIPH_ID_SDMMC4, FUNCMUX_SDMMC4_ATB_GMA_4_BIT);
 
34
        pinmux_tristate_disable(PMUX_PINGRP_GMB);
 
35
}
 
36
#endif