summaryrefslogtreecommitdiff
path: root/arch/arm/mach-ux500/board-u5500.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-ux500/board-u5500.c')
-rw-r--r--arch/arm/mach-ux500/board-u5500.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/board-u5500.c b/arch/arm/mach-ux500/board-u5500.c
index 7cdadd9792a..7a1715ea4aa 100644
--- a/arch/arm/mach-ux500/board-u5500.c
+++ b/arch/arm/mach-ux500/board-u5500.c
@@ -37,6 +37,7 @@
#include <mach/db5500-keypad.h>
#include <mach/crypto-ux500.h>
#include <mach/usb.h>
+#include <mach/abx500-accdet.h>
#include "pins-db5500.h"
#include "pins.h"
@@ -431,6 +432,15 @@ static struct resource ab5500_resources[] = {
};
+#ifdef CONFIG_INPUT_AB5500_ACCDET
+static struct abx500_accdet_platform_data ab5500_accdet_pdata = {
+ .btn_keycode = KEY_MEDIA,
+ .accdet1_dbth = ACCDET1_TH_300mV | ACCDET1_DB_10ms,
+ .accdet2122_th = ACCDET21_TH_300mV | ACCDET22_TH_300mV,
+ .is_detection_inverted = false,
+ };
+#endif
+
static struct ab5500_platform_data ab5500_plf_data = {
.irq = {
.base = IRQ_AB5500_BASE,
@@ -438,6 +448,10 @@ static struct ab5500_platform_data ab5500_plf_data = {
},
.pm_power_off = true,
.regulator = &u5500_ab5500_regulator_data,
+#ifdef CONFIG_INPUT_AB5500_ACCDET
+ .dev_data[AB5500_DEVID_ACCDET] = &ab5500_accdet_pdata,
+ .dev_data_sz[AB5500_DEVID_ACCDET] = sizeof(ab5500_accdet_pdata),
+#endif
.dev_data[AB5500_DEVID_LEDS] = &ab5500_hvleds_data,
.dev_data_sz[AB5500_DEVID_LEDS] = sizeof(ab5500_hvleds_data),
.dev_data[AB5500_DEVID_VIBRATOR] = &ab5500_vibra_data,