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-14 16:02:56 +0100
commit18fc8b6f03ffac9231557aea563a124433771fc7 (patch)
tree9a7d1e0695ee85ab5db42ae3eef8820bdd7cd7aa
parent572b1271dd4f851c5e30754dd95b1adad3292910 (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 ae221655605..33b971d2f60 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