Robert P. J. Day | 100e918 | 2011-05-27 16:04:03 -0400 | [diff] [blame] | 1 | #ifndef LINUX_MMC_SH_MOBILE_SDHI_H |
| 2 | #define LINUX_MMC_SH_MOBILE_SDHI_H |
Guennadi Liakhovetski | 42051e8 | 2011-03-14 09:52:33 +0100 | [diff] [blame] | 3 | |
| 4 | #include <linux/types.h> |
| 5 | |
Guennadi Liakhovetski | 2595880 | 2011-05-11 16:51:15 +0000 | [diff] [blame] | 6 | struct platform_device; |
Guennadi Liakhovetski | 2595880 | 2011-05-11 16:51:15 +0000 | [diff] [blame] | 7 | |
Simon Horman | d5098cb | 2011-08-26 10:42:39 +0200 | [diff] [blame] | 8 | #define SH_MOBILE_SDHI_IRQ_CARD_DETECT "card_detect" |
| 9 | #define SH_MOBILE_SDHI_IRQ_SDCARD "sdcard" |
| 10 | #define SH_MOBILE_SDHI_IRQ_SDIO "sdio" |
| 11 | |
Guennadi Liakhovetski | 7f52421 | 2012-03-09 10:16:00 +0100 | [diff] [blame] | 12 | /** |
| 13 | * struct sh_mobile_sdhi_ops - SDHI driver callbacks |
| 14 | * @cd_wakeup: trigger a card-detection run |
| 15 | */ |
| 16 | struct sh_mobile_sdhi_ops { |
| 17 | void (*cd_wakeup)(const struct platform_device *pdev); |
| 18 | }; |
| 19 | |
Guennadi Liakhovetski | 42051e8 | 2011-03-14 09:52:33 +0100 | [diff] [blame] | 20 | struct sh_mobile_sdhi_info { |
| 21 | int dma_slave_tx; |
| 22 | int dma_slave_rx; |
| 23 | unsigned long tmio_flags; |
| 24 | unsigned long tmio_caps; |
Guennadi Liakhovetski | d7d8d50 | 2012-05-23 11:05:33 +0200 | [diff] [blame] | 25 | unsigned long tmio_caps2; |
Guennadi Liakhovetski | 42051e8 | 2011-03-14 09:52:33 +0100 | [diff] [blame] | 26 | u32 tmio_ocr_mask; /* available MMC voltages */ |
Guennadi Liakhovetski | 58126c8 | 2012-02-09 22:57:10 +0100 | [diff] [blame] | 27 | unsigned int cd_gpio; |
Bastian Hecht | e82b4ac | 2012-03-16 12:19:29 -0400 | [diff] [blame] | 28 | |
| 29 | /* callbacks for board specific setup code */ |
Guennadi Liakhovetski | 7f52421 | 2012-03-09 10:16:00 +0100 | [diff] [blame] | 30 | int (*init)(struct platform_device *pdev, |
| 31 | const struct sh_mobile_sdhi_ops *ops); |
Bastian Hecht | e82b4ac | 2012-03-16 12:19:29 -0400 | [diff] [blame] | 32 | void (*cleanup)(struct platform_device *pdev); |
Guennadi Liakhovetski | 42051e8 | 2011-03-14 09:52:33 +0100 | [diff] [blame] | 33 | }; |
| 34 | |
Robert P. J. Day | 100e918 | 2011-05-27 16:04:03 -0400 | [diff] [blame] | 35 | #endif /* LINUX_MMC_SH_MOBILE_SDHI_H */ |