blob: 76c5ed2afa724b007e339b8e05d9476fea5e1806 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-only */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * MMC definitions for OMAP2
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00004 */
5
6struct mmc_card;
7
8struct 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) */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000012 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
19void omap_hsmmc_init(struct omap2_hsmmc_info *);
20void omap_hsmmc_late_init(struct omap2_hsmmc_info *);
21
22#else
23
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)
29{
30}
31
32#endif