msm: 8064: Add write-protect support.
Add write-protect support for removable SDC3 slot
Change-Id: I924db28cff5f7a14c65d444f9b2ea8372b4b5017
Signed-off-by: Oluwafemi Adeyemi <aadeyemi@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-8064-storage.c b/arch/arm/mach-msm/board-8064-storage.c
index cdafdfc..b8cae49 100644
--- a/arch/arm/mach-msm/board-8064-storage.c
+++ b/arch/arm/mach-msm/board-8064-storage.c
@@ -233,6 +233,8 @@
.pclk_src_dfab = 1,
.pin_data = &mmc_slot_pin_data[SDCC3],
.vreg_data = &mmc_slot_vreg_data[SDCC3],
+ .wpswitch_gpio = PM8921_GPIO_PM_TO_SYS(17),
+ .wpswitch_polarity = 1,
.status_gpio = 26,
.status_irq = MSM_GPIO_TO_INT(26),
.irq_flags = IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING,