blob: 8cc095a76cf8e8d7e5ddb75dc5d08f12c5159583 [file] [log] [blame]
Viresh KUMARc63b3cb2010-05-26 14:42:10 -07001/*
2 * include/linux/mmc/sdhci-spear.h
3 *
4 * SDHCI declarations specific to ST SPEAr platform
5 *
6 * Copyright (C) 2010 ST Microelectronics
Viresh Kumar10d89352012-06-20 12:53:02 -07007 * Viresh Kumar <viresh.linux@gmail.com>
Viresh KUMARc63b3cb2010-05-26 14:42:10 -07008 *
9 * This file is licensed under the terms of the GNU General Public
10 * License version 2. This program is licensed "as is" without any
11 * warranty of any kind, whether express or implied.
12 */
13
Robert P. J. Day100e9182011-05-27 16:04:03 -040014#ifndef LINUX_MMC_SDHCI_SPEAR_H
15#define LINUX_MMC_SDHCI_SPEAR_H
Viresh KUMARc63b3cb2010-05-26 14:42:10 -070016
17#include <linux/platform_device.h>
18/*
19 * struct sdhci_plat_data: spear sdhci platform data structure
20 *
Viresh KUMARc63b3cb2010-05-26 14:42:10 -070021 * card_int_gpio: gpio pin used for card detection
22 */
23struct sdhci_plat_data {
Viresh KUMARc63b3cb2010-05-26 14:42:10 -070024 int card_int_gpio;
25};
26
27/* This function is used to set platform_data field of pdev->dev */
28static inline void
29sdhci_set_plat_data(struct platform_device *pdev, struct sdhci_plat_data *data)
30{
31 pdev->dev.platform_data = data;
32}
33
Robert P. J. Day100e9182011-05-27 16:04:03 -040034#endif /* LINUX_MMC_SDHCI_SPEAR_H */