xref: /openbmc/u-boot/board/nvidia/harmony/harmony.c (revision c9e798d3)
1 /*
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>
27 #ifdef CONFIG_TEGRA2_MMC
28 #include <mmc.h>
29 #endif
30 
31 /*
32  * Routine: gpio_config_uart
33  * Description: Does nothing on Harmony - no conflict w/SPI.
34  */
35 void gpio_config_uart(void)
36 {
37 }
38 
39 #ifdef CONFIG_TEGRA2_MMC
40 /*
41  * Routine: gpio_config_mmc
42  * Description: Set GPIOs for SD card
43  */
44 void gpio_config_mmc(void)
45 {
46 	/* Not implemented for now */
47 }
48 
49 /* this is a weak define that we are overriding */
50 int 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
61