#ifndef ASMARM_ARCH_MMC_H #define ASMARM_ARCH_MMC_H #include struct device; /* board specific SDHC data, optional. * If not present, a writable card with 3,3V is assumed. */ struct imxmmc_platform_data { /* Return values for the get_ro callback should be: * 0 for a read/write card * 1 for a read-only card * -ENOSYS when not supported (equal to NULL callback) * or a negative errno value when something bad happened */ int (*get_ro)(struct device *); /* board specific hook to (de)initialize the SD slot. * The board code can call 'handler' on a card detection * change giving data as argument. */ int (*init)(struct device *dev, irq_handler_t handler, void *data); void (*exit)(struct device *dev, void *data); /* available voltages. If not given, assume * MMC_VDD_32_33 | MMC_VDD_33_34 */ unsigned int ocr_avail; /* adjust slot voltage */ void (*setpower)(struct device *, unsigned int vdd); }; struct mxc_mmc_platform_data { unsigned int ocr_mask; /* available voltages */ unsigned int vendor_ver; unsigned int caps; unsigned int min_clk; unsigned int max_clk; unsigned int clk_flg; /* 1 clock enable, 0 not */ unsigned int reserved:16; unsigned int card_fixed:1; unsigned int card_inserted_state:1; unsigned int quirks; /* Device quirks */ // u32 (*translate_vdd)(struct device *, unsigned int); unsigned int (*status) (struct device *); int (*wp_status) (struct device *); char *power_mmc; char *clock_mmc; }; #endif