|
18 | 18 | #ifndef __PLAT_S3C_SDHCI_H |
19 | 19 | #define __PLAT_S3C_SDHCI_H __FILE__ |
20 | 20 |
|
| 21 | +#include <linux/platform_data/mmc-sdhci-s3c.h> |
21 | 22 | #include <plat/devs.h> |
22 | 23 |
|
23 | | -struct platform_device; |
24 | | -struct mmc_host; |
25 | | -struct mmc_card; |
26 | | -struct mmc_ios; |
27 | | - |
28 | | -enum cd_types { |
29 | | - S3C_SDHCI_CD_INTERNAL, /* use mmc internal CD line */ |
30 | | - S3C_SDHCI_CD_EXTERNAL, /* use external callback */ |
31 | | - S3C_SDHCI_CD_GPIO, /* use external gpio pin for CD line */ |
32 | | - S3C_SDHCI_CD_NONE, /* no CD line, use polling to detect card */ |
33 | | - S3C_SDHCI_CD_PERMANENT, /* no CD line, card permanently wired to host */ |
34 | | -}; |
35 | | - |
36 | | -/** |
37 | | - * struct s3c_sdhci_platdata() - Platform device data for Samsung SDHCI |
38 | | - * @max_width: The maximum number of data bits supported. |
39 | | - * @host_caps: Standard MMC host capabilities bit field. |
40 | | - * @host_caps2: The second standard MMC host capabilities bit field. |
41 | | - * @cd_type: Type of Card Detection method (see cd_types enum above) |
42 | | - * @ext_cd_init: Initialize external card detect subsystem. Called on |
43 | | - * sdhci-s3c driver probe when cd_type == S3C_SDHCI_CD_EXTERNAL. |
44 | | - * notify_func argument is a callback to the sdhci-s3c driver |
45 | | - * that triggers the card detection event. Callback arguments: |
46 | | - * dev is pointer to platform device of the host controller, |
47 | | - * state is new state of the card (0 - removed, 1 - inserted). |
48 | | - * @ext_cd_cleanup: Cleanup external card detect subsystem. Called on |
49 | | - * sdhci-s3c driver remove when cd_type == S3C_SDHCI_CD_EXTERNAL. |
50 | | - * notify_func argument is the same callback as for ext_cd_init. |
51 | | - * @ext_cd_gpio: gpio pin used for external CD line, valid only if |
52 | | - * cd_type == S3C_SDHCI_CD_GPIO |
53 | | - * @ext_cd_gpio_invert: invert values for external CD gpio line |
54 | | - * @cfg_gpio: Configure the GPIO for a specific card bit-width |
55 | | - * |
56 | | - * Initialisation data specific to either the machine or the platform |
57 | | - * for the device driver to use or call-back when configuring gpio or |
58 | | - * card speed information. |
59 | | -*/ |
60 | | -struct s3c_sdhci_platdata { |
61 | | - unsigned int max_width; |
62 | | - unsigned int host_caps; |
63 | | - unsigned int host_caps2; |
64 | | - unsigned int pm_caps; |
65 | | - enum cd_types cd_type; |
66 | | - |
67 | | - int ext_cd_gpio; |
68 | | - bool ext_cd_gpio_invert; |
69 | | - int (*ext_cd_init)(void (*notify_func)(struct platform_device *, |
70 | | - int state)); |
71 | | - int (*ext_cd_cleanup)(void (*notify_func)(struct platform_device *, |
72 | | - int state)); |
73 | | - |
74 | | - void (*cfg_gpio)(struct platform_device *dev, int width); |
75 | | -}; |
76 | | - |
77 | 24 | /* s3c_sdhci_set_platdata() - common helper for setting SDHCI platform data |
78 | 25 | * @pd: The default platform data for this device. |
79 | 26 | * @set: Pointer to the platform data to fill in. |
@@ -378,5 +325,4 @@ static inline void s3c_sdhci_setname(int id, char *name) |
378 | 325 | break; |
379 | 326 | } |
380 | 327 | } |
381 | | - |
382 | 328 | #endif /* __PLAT_S3C_SDHCI_H */ |
0 commit comments