8930: storage: add card detect support for QRD machine
8930 QRD platform seems to have different card detect GPIO
number compared to regular platforms like CDP/MTP/Fluid.
So this change makes use of the correct card detect GPIO
for QRD platforms.
Change-Id: I945795a56bd27c6ae7970fdf9cfb10691af910cc
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-8930-gpiomux.c b/arch/arm/mach-msm/board-8930-gpiomux.c
index 035dd9a..7fc1ced 100644
--- a/arch/arm/mach-msm/board-8930-gpiomux.c
+++ b/arch/arm/mach-msm/board-8930-gpiomux.c
@@ -842,6 +842,16 @@
},
};
+static struct msm_gpiomux_config msm8930_sd_det_config_evt[] __initdata = {
+ {
+ .gpio = 90, /* SD Card Detect Line */
+ .settings = {
+ [GPIOMUX_SUSPENDED] = &sd_det_line,
+ [GPIOMUX_ACTIVE] = &sd_det_line,
+ },
+ },
+};
+
static struct gpiomux_setting gyro_int_line = {
.func = GPIOMUX_FUNC_GPIO,
.drv = GPIOMUX_DRV_2MA,
@@ -998,6 +1008,9 @@
msm_gpiomux_install(msm8960_synaptic_rmi4_configs,
ARRAY_SIZE(msm8960_synaptic_rmi4_configs));
+ msm_gpiomux_install(msm8930_sd_det_config_evt,
+ ARRAY_SIZE(msm8930_sd_det_config_evt));
+
return 0;
}