2010-05-27 05:42:10 +08:00
|
|
|
/*
|
|
|
|
* include/linux/mmc/sdhci-spear.h
|
|
|
|
*
|
|
|
|
* SDHCI declarations specific to ST SPEAr platform
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010 ST Microelectronics
|
2012-06-21 03:53:02 +08:00
|
|
|
* Viresh Kumar <viresh.linux@gmail.com>
|
2010-05-27 05:42:10 +08:00
|
|
|
*
|
|
|
|
* This file is licensed under the terms of the GNU General Public
|
|
|
|
* License version 2. This program is licensed "as is" without any
|
|
|
|
* warranty of any kind, whether express or implied.
|
|
|
|
*/
|
|
|
|
|
2011-05-28 04:04:03 +08:00
|
|
|
#ifndef LINUX_MMC_SDHCI_SPEAR_H
|
|
|
|
#define LINUX_MMC_SDHCI_SPEAR_H
|
2010-05-27 05:42:10 +08:00
|
|
|
|
|
|
|
#include <linux/platform_device.h>
|
|
|
|
/*
|
|
|
|
* struct sdhci_plat_data: spear sdhci platform data structure
|
|
|
|
*
|
|
|
|
* card_int_gpio: gpio pin used for card detection
|
|
|
|
*/
|
|
|
|
struct sdhci_plat_data {
|
|
|
|
int card_int_gpio;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* This function is used to set platform_data field of pdev->dev */
|
|
|
|
static inline void
|
|
|
|
sdhci_set_plat_data(struct platform_device *pdev, struct sdhci_plat_data *data)
|
|
|
|
{
|
|
|
|
pdev->dev.platform_data = data;
|
|
|
|
}
|
|
|
|
|
2011-05-28 04:04:03 +08:00
|
|
|
#endif /* LINUX_MMC_SDHCI_SPEAR_H */
|