summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAlex Odorovic <aodorovic@nvidia.com>2011-05-10 15:21:51 -0700
committerVarun Colbert <vcolbert@nvidia.com>2011-05-13 18:42:01 -0700
commit2803bf02c3cba4bd117e5a51db336de513f1174c (patch)
treef437275f34cef28ce12335613be2a67010a05413 /arch
parentfca04a452d60ec215937c461d4af6247760e7e8e (diff)
arch: arm: tegra: Bringup Enterprise touchscreen.
Bug 824702 Change-Id: I9eb48dee19b3d9e37843a83ee28e9ffb008ddd7e Reviewed-on: http://git-master/r/31077 Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com> Tested-by: Daniel Willemsen <dwillemsen@nvidia.com> Reviewed-by: Aleksandar Odorovic <aodorovic@nvidia.com> Tested-by: Aleksandar Odorovic <aodorovic@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-tegra/board-touch-atmel_maxtouch.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-touch-atmel_maxtouch.c b/arch/arm/mach-tegra/board-touch-atmel_maxtouch.c
index 0da497c8c8ed..80f89acaf1fa 100644
--- a/arch/arm/mach-tegra/board-touch-atmel_maxtouch.c
+++ b/arch/arm/mach-tegra/board-touch-atmel_maxtouch.c
@@ -63,15 +63,24 @@ static struct mxt_platform_data atmel_mxt_info = {
// TODO: no need for any hw-specific things at init/exit?
.init_platform_hw = NULL,
.exit_platform_hw = NULL,
+#if defined (CONFIG_MACH_TEGRA_ENTERPRISE)
+ .max_x = 540,
+ .max_y = 960,
+#else
.max_x = 1366,
.max_y = 768,
+#endif
.valid_interrupt = &valid_interrupt,
.read_chg = &read_chg,
};
static struct i2c_board_info __initdata atmxt_i2c_info[] = {
{
+#if defined (CONFIG_MACH_TEGRA_ENTERPRISE)
+ I2C_BOARD_INFO("maXTouch", MXT224_I2C_ADDR1),
+#else
I2C_BOARD_INFO("maXTouch", MXT_I2C_ADDRESS),
+#endif
.irq = TEGRA_GPIO_TO_IRQ(TOUCH_GPIO_IRQ_ATMEL_T9),
.platform_data = &atmel_mxt_info,
},