summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaga RADHESH Y <naga.radheshy@stericsson.com>2012-02-14 07:46:55 +0100
committerPhilippe Langlais <philippe.langlais@linaro.org>2012-02-15 09:35:32 +0100
commit8748f46daa55c2a1cff7ca1e70420bbc0225c43f (patch)
tree3e78304f3eb9d8252bb3ad1ff6320dd36908b085
parentca615709ef2c2162920fdffbd5537ea0ed06264c (diff)
mach-ux500: Invert X,Y co-ordinates of sensors
Now display is inverted to position keypad below display for all UIB's,So x,y co-ordinates of sensor need to be inverted to align with display. ST-Ericsson ID: 368097 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id:Ia16da65351da3beac541cfe30ddae7092445f804 Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com>
-rwxr-xr-xarch/arm/mach-ux500/board-mop500-cyttsp.c8
-rw-r--r--arch/arm/mach-ux500/board-mop500-u8500uib.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-cyttsp.c b/arch/arm/mach-ux500/board-mop500-cyttsp.c
index c64f732d7c7..ca33dfd86ab 100755
--- a/arch/arm/mach-ux500/board-mop500-cyttsp.c
+++ b/arch/arm/mach-ux500/board-mop500-cyttsp.c
@@ -37,8 +37,8 @@ static struct lsm303dlh_platform_data __initdata lsm303dlh_pdata_u8500_r3 = {
.axis_map_x = 1,
.axis_map_y = 0,
.axis_map_z = 2,
- .negative_x = 1,
- .negative_y = 1,
+ .negative_x = 0,
+ .negative_y = 0,
.negative_z = 1,
};
@@ -47,8 +47,8 @@ static struct l3g4200d_gyr_platform_data __initdata l3g4200d_pdata_u8500_r3 = {
.axis_map_x = 0,
.axis_map_y = 1,
.axis_map_z = 2,
- .negative_x = 0,
- .negative_y = 1,
+ .negative_x = 1,
+ .negative_y = 0,
.negative_z = 1,
};
static struct i2c_board_info __initdata mop500_i2c2_devices_u8500_r3[] = {
diff --git a/arch/arm/mach-ux500/board-mop500-u8500uib.c b/arch/arm/mach-ux500/board-mop500-u8500uib.c
index 8c3232e3e3f..1399c1bcde4 100644
--- a/arch/arm/mach-ux500/board-mop500-u8500uib.c
+++ b/arch/arm/mach-ux500/board-mop500-u8500uib.c
@@ -42,8 +42,8 @@ static struct lsm303dlh_platform_data __initdata lsm303dlh_pdata_u8500 = {
.axis_map_x = 1,
.axis_map_y = 0,
.axis_map_z = 2,
- .negative_x = 1,
- .negative_y = 1,
+ .negative_x = 0,
+ .negative_y = 0,
.negative_z = 1,
};
#endif
@@ -54,8 +54,8 @@ static struct l3g4200d_gyr_platform_data __initdata l3g4200d_pdata_u8500 = {
.axis_map_x = 0,
.axis_map_y = 1,
.axis_map_z = 2,
- .negative_x = 0,
- .negative_y = 1,
+ .negative_x = 1,
+ .negative_y = 0,
.negative_z = 1,
};
#endif