]>
Commit | Line | Data |
---|---|---|
d2912cb1 | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
90c62bf0 TL |
2 | /* |
3 | * MMC definitions for OMAP2 | |
90c62bf0 TL |
4 | */ |
5 | ||
ed199f7e GI |
6 | struct mmc_card; |
7 | ||
68ff0423 | 8 | struct omap2_hsmmc_info { |
90c62bf0 | 9 | u8 mmc; /* controller 1/2/3 */ |
3a63833e SG |
10 | u32 caps; /* 4/8 wires and any additional host |
11 | * capabilities OR'd (ref. linux/mmc/host.h) */ | |
3b972bf0 | 12 | struct platform_device *pdev; /* mmc controller instance */ |
ed199f7e GI |
13 | /* init some special card */ |
14 | void (*init_card)(struct mmc_card *card); | |
90c62bf0 TL |
15 | }; |
16 | ||
502ad2a6 | 17 | #if IS_ENABLED(CONFIG_MMC_OMAP_HS) |
90c62bf0 | 18 | |
3b972bf0 TL |
19 | void omap_hsmmc_init(struct omap2_hsmmc_info *); |
20 | void omap_hsmmc_late_init(struct omap2_hsmmc_info *); | |
90c62bf0 TL |
21 | |
22 | #else | |
23 | ||
3b972bf0 TL |
24 | static inline void omap_hsmmc_init(struct omap2_hsmmc_info *info) |
25 | { | |
26 | } | |
27 | ||
28 | static inline void omap_hsmmc_late_init(struct omap2_hsmmc_info *info) | |
90c62bf0 TL |
29 | { |
30 | } | |
31 | ||
32 | #endif |