~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to arch/arm/plat-mxc/include/mach/mmc.h

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-tz023xykf0i6eosh
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef ASMARM_ARCH_MMC_H
 
2
#define ASMARM_ARCH_MMC_H
 
3
 
 
4
#include <linux/mmc/host.h>
 
5
 
 
6
struct device;
 
7
 
 
8
/* board specific SDHC data, optional.
 
9
 * If not present, a writable card with 3,3V is assumed.
 
10
 */
 
11
struct imxmmc_platform_data {
 
12
        /* Return values for the get_ro callback should be:
 
13
         *   0 for a read/write card
 
14
         *   1 for a read-only card
 
15
         *   -ENOSYS when not supported (equal to NULL callback)
 
16
         *   or a negative errno value when something bad happened
 
17
         */
 
18
        int (*get_ro)(struct device *);
 
19
 
 
20
        /* board specific hook to (de)initialize the SD slot.
 
21
         * The board code can call 'handler' on a card detection
 
22
         * change giving data as argument.
 
23
         */
 
24
        int (*init)(struct device *dev, irq_handler_t handler, void *data);
 
25
        void (*exit)(struct device *dev, void *data);
 
26
 
 
27
        /* available voltages. If not given, assume
 
28
         * MMC_VDD_32_33 | MMC_VDD_33_34
 
29
         */
 
30
        unsigned int ocr_avail;
 
31
 
 
32
        /* adjust slot voltage */
 
33
        void (*setpower)(struct device *, unsigned int vdd);
 
34
 
 
35
        /* enable card detect using DAT3 */
 
36
        int dat3_card_detect;
 
37
};
 
38
 
 
39
#endif