aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/include/mach/sdhci.h
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2011-01-01 23:52:56 -0500
committerChris Ball <cjb@laptop.org>2011-01-08 23:52:23 -0500
commit03d2bfc878e4dff9e596accc7b7eccf947804a3c (patch)
tree018fd0760ff2ce8f66f645c226ce9098004cc4d5 /arch/arm/mach-tegra/include/mach/sdhci.h
parent30652aa36b58d57fcc1a0acce51e391bbb6edf5e (diff)
downloadkernel_samsung_smdk4412-03d2bfc878e4dff9e596accc7b7eccf947804a3c.zip
kernel_samsung_smdk4412-03d2bfc878e4dff9e596accc7b7eccf947804a3c.tar.gz
kernel_samsung_smdk4412-03d2bfc878e4dff9e596accc7b7eccf947804a3c.tar.bz2
mmc: add sdhci-tegra driver for Tegra SoCs
SDHCI driver for Tegra. This driver plugs in as a new variant of sdhci-pltfm, using the platform data structure passed in to specify the GPIOs to use for card detect, write protect and card power enablement. Original driver (of which only the header file is left): Signed-off-by: Yvonne Yip <y@palm.com> The rest, which has been rewritten by now: Signed-off-by: Olof Johansson <olof@lixom.net> Reviewed-by: Wolfram Sang <w.sang@pengutronix.de> Acked-by: Mike Rapoport <mike@compulab.co.il> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/sdhci.h')
-rw-r--r--arch/arm/mach-tegra/include/mach/sdhci.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/sdhci.h b/arch/arm/mach-tegra/include/mach/sdhci.h
new file mode 100644
index 0000000..3ad086e
--- /dev/null
+++ b/arch/arm/mach-tegra/include/mach/sdhci.h
@@ -0,0 +1,29 @@
+/*
+ * include/asm-arm/arch-tegra/include/mach/sdhci.h
+ *
+ * Copyright (C) 2009 Palm, Inc.
+ * Author: Yvonne Yip <y@palm.com>
+ *
+ * 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.
+ *
+ */
+#ifndef __ASM_ARM_ARCH_TEGRA_SDHCI_H
+#define __ASM_ARM_ARCH_TEGRA_SDHCI_H
+
+#include <linux/mmc/host.h>
+
+struct tegra_sdhci_platform_data {
+ int cd_gpio;
+ int wp_gpio;
+ int power_gpio;
+ int is_8bit;
+};
+
+#endif