2 * arch/arm/mach-tegra/board-p1852-sdhci.c
4 * Copyright (C) 2010 Google, Inc.
6 * Copyright (c) 2012, NVIDIA Corporation. All rights reserved.
8 * This software is licensed under the terms of the GNU General Public
9 * License version 2, as published by the Free Software Foundation, and
10 * may be copied, distributed, and modified under those terms.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
19 #include <linux/resource.h>
20 #include <linux/platform_device.h>
21 #include <linux/wlan_plat.h>
22 #include <linux/delay.h>
23 #include <linux/gpio.h>
24 #include <linux/clk.h>
25 #include <linux/err.h>
26 #include <linux/mmc/host.h>
28 #include <asm/mach-types.h>
29 #include <mach/irqs.h>
30 #include <mach/iomap.h>
31 #include <mach/sdhci.h>
33 #include "gpio-names.h"
35 #include "board-p1852.h"
38 #define P1852_SD1_CD TEGRA_GPIO_PV2
40 static struct tegra_sdhci_platform_data tegra_sdhci_platform_data1 = {
41 .cd_gpio = P1852_SD1_CD,
47 static struct tegra_sdhci_platform_data tegra_sdhci_platform_data2 = {
54 static struct tegra_sdhci_platform_data tegra_sdhci_platform_data4 = {
61 int __init p1852_sdhci_init(void)
63 tegra_sdhci_device1.dev.platform_data = &tegra_sdhci_platform_data1;
64 tegra_sdhci_device2.dev.platform_data = &tegra_sdhci_platform_data2;
65 tegra_sdhci_device4.dev.platform_data = &tegra_sdhci_platform_data4;
67 platform_device_register(&tegra_sdhci_device1);
68 platform_device_register(&tegra_sdhci_device2);
69 platform_device_register(&tegra_sdhci_device4);