/* * arch/arm/mach-tegra/board-p1852-sdhci.c * * Copyright (C) 2010 Google, Inc. * * Copyright (c) 2012, NVIDIA Corporation. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #include #include #include #include #include #include #include #include #include #include #include #include #include "gpio-names.h" #include "board.h" #include "board-p1852.h" #include "devices.h" #define P1852_SD1_CD TEGRA_GPIO_PV2 static struct tegra_sdhci_platform_data tegra_sdhci_platform_data1 = { .cd_gpio = P1852_SD1_CD, .wp_gpio = -1, .power_gpio = -1, .is_8bit = false, }; static struct tegra_sdhci_platform_data tegra_sdhci_platform_data2 = { .cd_gpio = -1, .wp_gpio = -1, .power_gpio = -1, .is_8bit = true, }; static struct tegra_sdhci_platform_data tegra_sdhci_platform_data4 = { .cd_gpio = -1, .wp_gpio = -1, .power_gpio = -1, .is_8bit = true, }; int __init p1852_sdhci_init(void) { tegra_sdhci_device1.dev.platform_data = &tegra_sdhci_platform_data1; tegra_sdhci_device2.dev.platform_data = &tegra_sdhci_platform_data2; tegra_sdhci_device4.dev.platform_data = &tegra_sdhci_platform_data4; platform_device_register(&tegra_sdhci_device1); platform_device_register(&tegra_sdhci_device2); platform_device_register(&tegra_sdhci_device4); return 0; }