David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * MMC definitions for OMAP2 |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 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) */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 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 |