summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVirupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>2011-09-13 12:10:06 +0530
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:02:12 +0200
commita0005a344e85c89bb22549cd809dd506e3f534eb (patch)
tree373ab9412ffc0059525f0f3d2105b6614e32e683
parent76431b6f50cc536b1dfdf9337718de818ecd1a5b (diff)
board-mop500: Correct the video_ctrl_gpio initialization
add ab8500 gpio_base to the video_ctrl_gpio offset 34, i.e the 35th pin in ab8500 pins. Change-Id: I9f8dd79a1237921f5517fea43ca535cadd229504 Signed-off-by: Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30771
-rw-r--r--arch/arm/mach-ux500/board-mop500.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c
index c485c9f4312..f3a441b9bb3 100644
--- a/arch/arm/mach-ux500/board-mop500.c
+++ b/arch/arm/mach-ux500/board-mop500.c
@@ -53,6 +53,7 @@
#include <mach/setup.h>
#include <mach/devices.h>
#include <mach/sensors1p.h>
+#include <mach/ab8500-accdet.h>
#include <mach/irqs.h>
#include <mach/ste-dma40-db8500.h>
#ifdef CONFIG_U8500_SIM_DETECT
@@ -138,6 +139,15 @@ static struct ab8500_gpio_platform_data ab8500_gpio_pdata = {
.initial_pin_pullups = {0xE0, 0x01, 0x00, 0x00, 0x00, 0x00},
};
+#ifdef CONFIG_INPUT_AB8500_ACCDET
+static struct ab8500_accdet_platform_data ab8500_accdet_pdata = {
+ .btn_keycode = KEY_MEDIA,
+ .accdet1_dbth = ACCDET1_TH_1200mV | ACCDET1_DB_70ms,
+ .accdet2122_th = ACCDET21_TH_1000mV | ACCDET22_TH_1000mV,
+ .video_ctrl_gpio = MOP500_AB8500_GPIO(34),
+};
+#endif
+
static struct gpio_keys_button snowball_key_array[] = {
{
.gpio = 32,