From: Shawn Guo Date: Tue, 21 Jun 2011 14:41:51 +0000 (+0800) Subject: mmc: sdhci-esdhc-imx: extend card_detect and write_protect support for mx5 X-Git-Tag: v3.1-rc1~125^2^2~7 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=913413c307c919f8b21edccea23a9fd9d9d49a64;p=pandora-kernel.git mmc: sdhci-esdhc-imx: extend card_detect and write_protect support for mx5 The patch extends card_detect and write_protect support to get mx5 family and more scenarios supported. The changes include: * Turn platform_data from optional to mandatory * Add cd_types and wp_types into platform_data to cover more use cases * Remove the use of flag ESDHC_FLAG_GPIO_FOR_CD * Adjust some machine codes to adopt the platform_data changes * Work around the issue that software reset will get card detection circuit stop working With this patch, card_detect and write_protect gets supported on mx5 based platforms. Signed-off-by: Shawn Guo Cc: Chris Ball Acked-by: Wolfram Sang Tested-by: Arnaud Patard Acked-by: Chris Ball --- Reading git-diff-tree failed