summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Rubini <rubini@gnudd.com>2011-05-26 09:05:50 +0200
committerPhilippe LANGLAIS <philippe.langlais@stericsson.com>2011-06-10 08:36:04 +0200
commitf212352235f58cf5516bbf934e9d55e2f152126d (patch)
tree3daeedfa4fee2a6720bbbc25db21759cff33e707
parent6ef1a34746f5d494b59efb6982086db918d904eb (diff)
ux500: add gyro data and device in stuib (for snowball)
Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Change-Id: I3ce691cf58434a579451fb2a13b4bbfa73e48949 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24783 Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com> Tested-by: Robert MARKLUND <robert.marklund@stericsson.com>
-rw-r--r--arch/arm/mach-ux500/board-mop500-stuib.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-stuib.c b/arch/arm/mach-ux500/board-mop500-stuib.c
index 1a162cec8e0..1add8f14121 100644
--- a/arch/arm/mach-ux500/board-mop500-stuib.c
+++ b/arch/arm/mach-ux500/board-mop500-stuib.c
@@ -11,6 +11,7 @@
#include <linux/gpio.h>
#include <linux/interrupt.h>
#include <linux/lsm303dlh.h>
+#include <linux/l3g4200d.h>
#include <linux/i2c.h>
#include <linux/input/matrix_keypad.h>
#include <asm/mach-types.h>
@@ -31,6 +32,16 @@ static struct lsm303dlh_platform_data __initdata lsm303dlh_pdata= {
.negative_z = 0,
};
+static struct l3g4200d_gyr_platform_data __initdata l3g4200d_pdata_u8500 = {
+ .name_gyr = "l3g4200d",
+ .axis_map_x = 1,
+ .axis_map_y = 0,
+ .axis_map_z = 2,
+ .negative_x = 0,
+ .negative_y = 0,
+ .negative_z = 1,
+};
+
static struct i2c_board_info __initdata mop500_i2c2_devices[] = {
{
/* LSM303DLH Accelerometer */
@@ -42,6 +53,11 @@ static struct i2c_board_info __initdata mop500_i2c2_devices[] = {
I2C_BOARD_INFO("lsm303dlh_m", 0x1E),
.platform_data = &lsm303dlh_pdata,
},
+ {
+ /* L3G4200D Gyroscope */
+ I2C_BOARD_INFO("l3g4200d", 0x68),
+ .platform_data = &l3g4200d_pdata_u8500,
+ },
};
/*