msm: board-qrd7627a: Add support for EVB
Change-Id: I3a131af3c21d0fd0c9d3c9543c07b45ec052953d
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-msm7627a-storage.c b/arch/arm/mach-msm/board-msm7627a-storage.c
index c3657b5..93a6178 100644
--- a/arch/arm/mach-msm/board-msm7627a-storage.c
+++ b/arch/arm/mach-msm/board-msm7627a-storage.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2011, Code Aurora Forum. All rights reserved.
+/* Copyright (c) 2011-2012, Code Aurora Forum. 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
@@ -148,7 +148,7 @@
static int gpio_sdc1_hw_det = 85;
static void gpio_sdc1_config(void)
{
- if (machine_is_msm7627a_qrd1())
+ if (machine_is_msm7627a_qrd1() || machine_is_msm7627a_evb())
gpio_sdc1_hw_det = 42;
}
@@ -248,7 +248,8 @@
} else {
status = gpio_direction_input(gpio_sdc1_hw_det);
if (!status) {
- if (machine_is_msm7627a_qrd1())
+ if (machine_is_msm7627a_qrd1() ||
+ machine_is_msm7627a_evb())
status = !gpio_get_value(gpio_sdc1_hw_det);
else
status = gpio_get_value(gpio_sdc1_hw_det);