Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
mmc-davinci.h
Go to the documentation of this file.
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 
12  /* get_cd()/get_wp() may sleep */
13  int (*get_cd)(int module);
14  int (*get_ro)(int module);
15 
16  void (*set_power)(int module, bool on);
17 
18  /* wires == 0 is equivalent to wires == 4 (4-bit parallel) */
20 
22 
23  /* any additional host capabilities: OR'd in to mmc->f_caps */
25 
26  /* Version of the MMC/SD controller */
28 
29  /* Number of sg segments */
31 };
33 
34 enum {
35  MMC_CTLR_VERSION_1 = 0, /* DM644x and DM355 */
36  MMC_CTLR_VERSION_2, /* DA830 */
37 };
38 
39 #endif