blob: cbb30d63014ee98b26937d9849c47d88268b98c6 [file] [log] [blame]
Tom Warrenf4ef6662011-04-14 12:09:41 +00001/*
2 * (C) Copyright 2010,2011
3 * NVIDIA Corporation <www.nvidia.com>
4 *
5 * See file CREDITS for list of people who contributed to this
6 * project.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 * MA 02111-1307 USA
22 */
23
24#include <common.h>
25#include <asm/io.h>
26#include <asm/arch/tegra2.h>
Tom Warrenccf79882011-09-21 12:40:07 +000027#ifdef CONFIG_TEGRA2_MMC
28#include <mmc.h>
29#endif
Tom Warrenf4ef6662011-04-14 12:09:41 +000030
31/*
32 * Routine: gpio_config_uart
33 * Description: Does nothing on Harmony - no conflict w/SPI.
34 */
35void gpio_config_uart(void)
36{
37}
Tom Warrenccf79882011-09-21 12:40:07 +000038
39#ifdef CONFIG_TEGRA2_MMC
40/*
41 * Routine: gpio_config_mmc
42 * Description: Set GPIOs for SD card
43 */
44void gpio_config_mmc(void)
45{
46 /* Not implemented for now */
47}
48
49/* this is a weak define that we are overriding */
50int board_mmc_getcd(u8 *cd, struct mmc *mmc)
51{
52 debug("board_mmc_getcd called\n");
53 /*
54 * Hard-code CD presence for now. Need to add GPIO inputs
55 * for Harmony
56 */
57 *cd = 1;
58 return 0;
59}
60#endif