1
2
3
4
5
6 #ifndef _DAVINCI_MMC_H
7 #define _DAVINCI_MMC_H
8
9 #include <linux/types.h>
10 #include <linux/mmc/host.h>
11
12 struct davinci_mmc_config {
13
14 int (*get_cd)(int module);
15 int (*get_ro)(int module);
16
17 void (*set_power)(int module, bool on);
18
19
20 u8 wires;
21
22 u32 max_freq;
23
24
25 u32 caps;
26
27
28 u8 nr_sg;
29 };
30 void davinci_setup_mmc(int module, struct davinci_mmc_config *config);
31
32 enum {
33 MMC_CTLR_VERSION_1 = 0,
34 MMC_CTLR_VERSION_2,
35 };
36
37 #endif