]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blame - arch/arm/mach-omap2/hsmmc.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
[mirror_ubuntu-hirsute-kernel.git] / arch / arm / mach-omap2 / hsmmc.h
CommitLineData
d2912cb1 1/* SPDX-License-Identifier: GPL-2.0-only */
90c62bf0
TL
2/*
3 * MMC definitions for OMAP2
90c62bf0
TL
4 */
5
ed199f7e
GI
6struct mmc_card;
7
68ff0423 8struct 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
19void omap_hsmmc_init(struct omap2_hsmmc_info *);
20void omap_hsmmc_late_init(struct omap2_hsmmc_info *);
90c62bf0
TL
21
22#else
23
3b972bf0
TL
24static inline void omap_hsmmc_init(struct omap2_hsmmc_info *info)
25{
26}
27
28static inline void omap_hsmmc_late_init(struct omap2_hsmmc_info *info)
90c62bf0
TL
29{
30}
31
32#endif