![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 #ifndef __LINUX_SPI_MMC_SPI_H 0003 #define __LINUX_SPI_MMC_SPI_H 0004 0005 #include <linux/spi/spi.h> 0006 #include <linux/interrupt.h> 0007 0008 struct device; 0009 struct mmc_host; 0010 0011 /* Put this in platform_data of a device being used to manage an MMC/SD 0012 * card slot. (Modeled after PXA mmc glue; see that for usage examples.) 0013 * 0014 * REVISIT This is not a spi-specific notion. Any card slot should be 0015 * able to handle it. If the MMC core doesn't adopt this kind of notion, 0016 * switch the "struct device *" parameters over to "struct spi_device *". 0017 */ 0018 struct mmc_spi_platform_data { 0019 /* driver activation and (optional) card detect irq hookup */ 0020 int (*init)(struct device *, 0021 irqreturn_t (*)(int, void *), 0022 void *); 0023 void (*exit)(struct device *, void *); 0024 0025 /* Capabilities to pass into mmc core (e.g. MMC_CAP_NEEDS_POLL). */ 0026 unsigned long caps; 0027 unsigned long caps2; 0028 0029 /* how long to debounce card detect, in msecs */ 0030 u16 detect_delay; 0031 0032 /* power management */ 0033 u16 powerup_msecs; /* delay of up to 250 msec */ 0034 u32 ocr_mask; /* available voltages */ 0035 void (*setpower)(struct device *, unsigned int maskval); 0036 }; 0037 0038 extern struct mmc_spi_platform_data *mmc_spi_get_pdata(struct spi_device *spi); 0039 extern void mmc_spi_put_pdata(struct spi_device *spi); 0040 0041 #endif /* __LINUX_SPI_MMC_SPI_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |