diff options
author | Alessandro Rubini <rubini@gnudd.com> | 2011-05-26 09:05:50 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@stericsson.com> | 2011-09-19 15:15:20 +0200 |
commit | b9aee4cd16660cd1915aa3e372f4f6fc3ce45090 (patch) | |
tree | abb60fb11e4b64a7eee5b724d31e85eeed443449 /arch/arm/mach-ux500/board-mop500-stuib.c | |
parent | 9a7125a675b387d406a12ebb31c09bb1461d7ca3 (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>
Diffstat (limited to 'arch/arm/mach-ux500/board-mop500-stuib.c')
-rw-r--r-- | arch/arm/mach-ux500/board-mop500-stuib.c | 16 |
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, + }, }; /* |