]> git.ipfire.org Git - thirdparty/kernel/stable.git/blob - arch/arm/mach-omap2/hsmmc.h
76c5ed2afa724b007e339b8e05d9476fea5e1806
[thirdparty/kernel/stable.git] / arch / arm / mach-omap2 / hsmmc.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * MMC definitions for OMAP2
4 */
5
6 struct mmc_card;
7
8 struct omap2_hsmmc_info {
9 u8 mmc; /* controller 1/2/3 */
10 u32 caps; /* 4/8 wires and any additional host
11 * capabilities OR'd (ref. linux/mmc/host.h) */
12 struct platform_device *pdev; /* mmc controller instance */
13 /* init some special card */
14 void (*init_card)(struct mmc_card *card);
15 };
16
17 #if IS_ENABLED(CONFIG_MMC_OMAP_HS)
18
19 void omap_hsmmc_init(struct omap2_hsmmc_info *);
20 void omap_hsmmc_late_init(struct omap2_hsmmc_info *);
21
22 #else
23
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)
29 {
30 }
31
32 #endif