.keep_power_at_suspend = 1,
.support_8bit = 1,
.delay_line = 0,
+ .cd_type = ESDHC_CD_CONTROLLER,
};
static const struct esdhc_platform_data mx6q_sabresd_sd3_data __initconst = {
.keep_power_at_suspend = 1,
.support_8bit = 1,
.delay_line = 0,
+ .cd_type = ESDHC_CD_CONTROLLER,
};
static const struct esdhc_platform_data mx6q_sabresd_sd4_data __initconst = {
.keep_power_at_suspend = 1,
.support_8bit = 1,
.delay_line = 0,
+ .cd_type = ESDHC_CD_PERMANENT,
};
static const struct anatop_thermal_platform_data
#ifndef __ASM_ARCH_IMX_ESDHC_H
#define __ASM_ARCH_IMX_ESDHC_H
+enum cd_types {
+ ESDHC_CD_NONE, /* no CD, neither controller nor gpio */
+ ESDHC_CD_CONTROLLER, /* mmc controller internal CD */
+ ESDHC_CD_GPIO, /* external gpio pin for CD */
+ ESDHC_CD_PERMANENT, /* no CD, card permanently wired to host */
+};
+
/**
* struct esdhc_platform_data - optional platform data for esdhc on i.MX
*
struct esdhc_platform_data {
unsigned int wp_gpio;
unsigned int cd_gpio;
+ enum cd_types cd_type;
unsigned int always_present;
unsigned int support_18v;
unsigned int support_8bit;