Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef ASMARM_ARCH_MMC_H |
| 2 | #define ASMARM_ARCH_MMC_H |
| 3 | |
Pierre Ossman | f74d132 | 2007-02-09 22:49:31 +0100 | [diff] [blame] | 4 | #include <linux/mmc/host.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | #include <linux/interrupt.h> |
| 6 | |
| 7 | struct device; |
| 8 | struct mmc_host; |
| 9 | |
| 10 | struct pxamci_platform_data { |
| 11 | unsigned int ocr_mask; /* available voltages */ |
Eric Miao | f97cab2 | 2010-04-14 07:00:42 +0800 | [diff] [blame] | 12 | unsigned long detect_delay_ms; /* delay in millisecond before detecting cards after interrupt */ |
David Howells | 40220c1 | 2006-10-09 12:19:47 +0100 | [diff] [blame] | 13 | int (*init)(struct device *, irq_handler_t , void *); |
Richard Purdie | e619524 | 2005-09-06 15:18:56 -0700 | [diff] [blame] | 14 | int (*get_ro)(struct device *); |
Arnd Bergmann | a829abf | 2013-07-05 17:51:20 +0200 | [diff] [blame] | 15 | int (*setpower)(struct device *, unsigned int); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | void (*exit)(struct device *, void *); |
Robert Jarzmik | b405db6 | 2009-06-23 23:21:03 +0200 | [diff] [blame] | 17 | int gpio_card_detect; /* gpio detecting card insertion */ |
| 18 | int gpio_card_ro; /* gpio detecting read only toggle */ |
| 19 | bool gpio_card_ro_invert; /* gpio ro is inverted */ |
| 20 | int gpio_power; /* gpio powering up MMC bus */ |
| 21 | bool gpio_power_invert; /* gpio power is inverted */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | }; |
| 23 | |
| 24 | extern void pxa_set_mci_info(struct pxamci_platform_data *info); |
Bridge Wu | 8d33b05 | 2007-12-21 19:15:36 +0800 | [diff] [blame] | 25 | extern void pxa3xx_set_mci2_info(struct pxamci_platform_data *info); |
Bridge Wu | 5a1f21b | 2007-12-21 19:27:08 +0800 | [diff] [blame] | 26 | extern void pxa3xx_set_mci3_info(struct pxamci_platform_data *info); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | |
| 28 | #endif |