summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvinash A <Avinash.a@stericsson.com>2011-10-04 12:38:10 +0530
committerSrinidhi KASAGAR <srinidhi.kasagar@stericsson.com>2011-10-04 10:04:15 +0200
commit7c38070d6bb7325a1a4c73c9f86d8b0f6b092792 (patch)
treeccc3e2ea2b5e35c2127b55d501a24922ef69fdf7
parent00e5087ef2f808658f35e563f7d513490bbb90ea (diff)
mach-ux500: add the proper device name of bu touchscreen
This adds the proper device name and the missing platform data for bu touchscreen ST-Ericsson ID: 365317 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I8cdf7f2748a623251e2d781cea4b1f2ea9e9a35b Signed-off-by: Avinash A <Avinash.a@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32885 Reviewed-by: Avinash A <avinash.a@stericsson.com> Tested-by: Avinash A <avinash.a@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
-rw-r--r--arch/arm/mach-ux500/board-mop500-stuib.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-stuib.c b/arch/arm/mach-ux500/board-mop500-stuib.c
index 943bc9599bd..f9b30f27303 100644
--- a/arch/arm/mach-ux500/board-mop500-stuib.c
+++ b/arch/arm/mach-ux500/board-mop500-stuib.c
@@ -200,6 +200,7 @@ static int bu21013_gpio_board_init(int reset_pin)
__func__);
return retval;
}
+ gpio_set_value(reset_pin, 1);
}
return retval;
@@ -222,6 +223,7 @@ static int bu21013_gpio_board_exit(int reset_pin)
__func__);
return retval;
}
+ gpio_set_value(reset_pin, 0);
gpio_free(reset_pin);
}
bu21013_devices--;
@@ -246,7 +248,11 @@ static struct bu21013_platform_device tsc_plat_device = {
.irq = NOMADIK_GPIO_TO_IRQ(TOUCH_GPIO_PIN),
.touch_x_max = TOUCH_XMAX,
.touch_y_max = TOUCH_YMAX,
- .has_ext_clk = false,
+ .x_max_res = 480,
+ .y_max_res = 864,
+ .portrait = true,
+ .has_ext_clk = true,
+ .enable_ext_clk = false,
#if defined(CONFIG_DISPLAY_GENERIC_DSI_PRIMARY_ROTATION_ANGLE) && \
CONFIG_DISPLAY_GENERIC_DSI_PRIMARY_ROTATION_ANGLE == 270
.x_flip = true,
@@ -264,7 +270,11 @@ static struct bu21013_platform_device tsc_plat2_device = {
.irq = NOMADIK_GPIO_TO_IRQ(TOUCH_GPIO_PIN),
.touch_x_max = TOUCH_XMAX,
.touch_y_max = TOUCH_YMAX,
- .has_ext_clk = false,
+ .x_max_res = 480,
+ .y_max_res = 864,
+ .portrait = true,
+ .has_ext_clk = true,
+ .enable_ext_clk = false,
#if defined(CONFIG_DISPLAY_GENERIC_DSI_PRIMARY_ROTATION_ANGLE) && \
CONFIG_DISPLAY_GENERIC_DSI_PRIMARY_ROTATION_ANGLE == 270
.x_flip = true,
@@ -277,11 +287,11 @@ static struct bu21013_platform_device tsc_plat2_device = {
static struct i2c_board_info __initdata u8500_i2c3_devices_stuib[] = {
{
- I2C_BOARD_INFO("bu21013_tp", 0x5C),
+ I2C_BOARD_INFO("bu21013_ts", 0x5C),
.platform_data = &tsc_plat_device,
},
{
- I2C_BOARD_INFO("bu21013_tp", 0x5D),
+ I2C_BOARD_INFO("bu21013_ts", 0x5D),
.platform_data = &tsc_plat2_device,
},