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-storage.c b/arch/arm/mach-msm/board-8930-storage.c
index 7ebd487..a72f69f 100644
--- a/arch/arm/mach-msm/board-8930-storage.c
+++ b/arch/arm/mach-msm/board-8930-storage.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2011-2012, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2011-2013, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -321,6 +321,11 @@
msm8960_sdc3_data.is_wpswitch_active_low = false;
}
+ if (machine_is_msm8930_evt()) {
+ msm8960_sdc3_data.status_gpio = 90;
+ msm8960_sdc3_data.status_irq = MSM_GPIO_TO_INT(90);
+ }
+
msm_add_sdcc(3, &msm8960_sdc3_data);
#endif
}