Sachin Kamat | 2a5153a | 2014-02-25 15:18:26 +0530 | [diff] [blame] | 1 | #ifndef __MMC_MSM_SDCC_H |
| 2 | #define __MMC_MSM_SDCC_H |
Pavel Machek | 3989d17 | 2009-12-08 11:11:36 -0800 | [diff] [blame] | 3 | |
| 4 | #include <linux/mmc/host.h> |
| 5 | #include <linux/mmc/card.h> |
| 6 | #include <linux/mmc/sdio_func.h> |
| 7 | |
Sahitya Tummala | 7a89248 | 2011-01-18 11:22:49 +0530 | [diff] [blame] | 8 | struct msm_mmc_gpio { |
| 9 | unsigned no; |
| 10 | const char *name; |
| 11 | }; |
| 12 | |
| 13 | struct msm_mmc_gpio_data { |
| 14 | struct msm_mmc_gpio *gpio; |
| 15 | u8 size; |
| 16 | }; |
| 17 | |
Sahitya Tummala | b5d643d | 2010-07-29 16:55:34 +0530 | [diff] [blame] | 18 | struct msm_mmc_platform_data { |
Pavel Machek | 3989d17 | 2009-12-08 11:11:36 -0800 | [diff] [blame] | 19 | unsigned int ocr_mask; /* available voltages */ |
| 20 | u32 (*translate_vdd)(struct device *, unsigned int); |
| 21 | unsigned int (*status)(struct device *); |
Pavel Machek | 3989d17 | 2009-12-08 11:11:36 -0800 | [diff] [blame] | 22 | int (*register_status_notify)(void (*callback)(int card_present, void *dev_id), void *dev_id); |
Sahitya Tummala | 7a89248 | 2011-01-18 11:22:49 +0530 | [diff] [blame] | 23 | struct msm_mmc_gpio_data *gpio_data; |
Alexander Tarasikov | e91957e | 2011-08-21 15:52:44 +0400 | [diff] [blame] | 24 | void (*init_card)(struct mmc_card *card); |
Pavel Machek | 3989d17 | 2009-12-08 11:11:36 -0800 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | #endif |