diff options
Diffstat (limited to 'arch/arm/mach-davinci/include/mach/mmc.h')
| -rw-r--r-- | arch/arm/mach-davinci/include/mach/mmc.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/include/mach/mmc.h b/arch/arm/mach-davinci/include/mach/mmc.h new file mode 100644 index 000000000000..5a85e24f3673 --- /dev/null +++ b/arch/arm/mach-davinci/include/mach/mmc.h | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | /* | ||
| 2 | * Board-specific MMC configuration | ||
| 3 | */ | ||
| 4 | |||
| 5 | #ifndef _DAVINCI_MMC_H | ||
| 6 | #define _DAVINCI_MMC_H | ||
| 7 | |||
| 8 | #include <linux/types.h> | ||
| 9 | #include <linux/mmc/host.h> | ||
| 10 | |||
| 11 | struct davinci_mmc_config { | ||
| 12 | /* get_cd()/get_wp() may sleep */ | ||
| 13 | int (*get_cd)(int module); | ||
| 14 | int (*get_ro)(int module); | ||
| 15 | /* wires == 0 is equivalent to wires == 4 (4-bit parallel) */ | ||
| 16 | u8 wires; | ||
| 17 | |||
| 18 | u32 max_freq; | ||
| 19 | |||
| 20 | /* any additional host capabilities: OR'd in to mmc->f_caps */ | ||
| 21 | u32 caps; | ||
| 22 | |||
| 23 | /* Version of the MMC/SD controller */ | ||
| 24 | u8 version; | ||
| 25 | }; | ||
| 26 | void davinci_setup_mmc(int module, struct davinci_mmc_config *config); | ||
| 27 | |||
| 28 | enum { | ||
| 29 | MMC_CTLR_VERSION_1 = 0, /* DM644x and DM355 */ | ||
| 30 | MMC_CTLR_VERSION_2, /* DA830 */ | ||
| 31 | }; | ||
| 32 | |||
| 33 | #endif | ||
