summaryrefslogtreecommitdiff
path: root/arch/arm/mach-ux500/board-mop500-stuib.c
diff options
context:
space:
mode:
authorAlessandro Rubini <rubini@gnudd.com>2011-05-26 12:48:32 +0200
committerUlf Hansson <ulf.hansson@stericsson.com>2011-09-19 15:15:22 +0200
commite61364899f3b4aeeeb5c031e612ab330d4c0ea99 (patch)
tree5da88da688ba8c8db01095057667ce613fef756a /arch/arm/mach-ux500/board-mop500-stuib.c
parentccdc9631431219e6e7bee02f728ec810d32a48da (diff)
ux500: add barometer data and device in stuid (for snowball)
Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Change-Id: Icf38dcd508d2b3c84befdd5d7e79b7614728719c Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24798 Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com> Tested-by: Robert MARKLUND <robert.marklund@stericsson.com>
Diffstat (limited to 'arch/arm/mach-ux500/board-mop500-stuib.c')
-rw-r--r--arch/arm/mach-ux500/board-mop500-stuib.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-stuib.c b/arch/arm/mach-ux500/board-mop500-stuib.c
index 1add8f14121..c3e42c61cac 100644
--- a/arch/arm/mach-ux500/board-mop500-stuib.c
+++ b/arch/arm/mach-ux500/board-mop500-stuib.c
@@ -14,6 +14,7 @@
#include <linux/l3g4200d.h>
#include <linux/i2c.h>
#include <linux/input/matrix_keypad.h>
+#include <linux/input/lps001wp.h>
#include <asm/mach-types.h>
#include "board-mop500.h"
@@ -42,6 +43,11 @@ static struct l3g4200d_gyr_platform_data __initdata l3g4200d_pdata_u8500 = {
.negative_z = 1,
};
+static struct lps001wp_prs_platform_data __initdata lps001wp_pdata = {
+ .poll_interval = 500,
+ .min_interval = 10,
+};
+
static struct i2c_board_info __initdata mop500_i2c2_devices[] = {
{
/* LSM303DLH Accelerometer */
@@ -58,6 +64,11 @@ static struct i2c_board_info __initdata mop500_i2c2_devices[] = {
I2C_BOARD_INFO("l3g4200d", 0x68),
.platform_data = &l3g4200d_pdata_u8500,
},
+ {
+ /* LSP001WM Barometer */
+ I2C_BOARD_INFO("lps001wp_prs_sysfs", 0x5C),
+ .platform_data = &lps001wp_pdata,
+ },
};
/*