From 1d121a7d19fc0787ea9db22df8808f2dd54cc1de Mon Sep 17 00:00:00 2001 From: "makarand.karvekar" Date: Tue, 2 Nov 2010 11:37:47 -0500 Subject: [PATCH] [ARM]:tegra: add touch uC suspend function to toggle wake-line Signed-off-by: makarand.karvekar --- arch/arm/mach-tegra/board-stingray-touch.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/mach-tegra/board-stingray-touch.c b/arch/arm/mach-tegra/board-stingray-touch.c index 01d0b18998dd..e50aabe73d33 100644 --- a/arch/arm/mach-tegra/board-stingray-touch.c +++ b/arch/arm/mach-tegra/board-stingray-touch.c @@ -47,6 +47,13 @@ static int stingray_touch_reset(void) return 0; } +static int stingray_touch_suspend(int enable) +{ + gpio_set_value(STINGRAY_TOUCH_WAKE_N_GPIO, enable); + msleep(20); + return 0; +} + /* mortable M1 */ struct qtouch_ts_platform_data stingray_touch_data_m1 = { @@ -248,6 +255,7 @@ struct qtouch_ts_platform_data stingray_touch_data_p0 = { .fuzz_w = 2, .boot_i2c_addr = XMEGAT_BL_I2C_ADDR, .hw_reset = stingray_touch_reset, + .hw_suspend = stingray_touch_suspend, .key_array = { .cfg = NULL, .keys = NULL, @@ -429,6 +437,7 @@ struct qtouch_ts_platform_data stingray_touch_data_p1_or_later = { .fuzz_w = 2, .boot_i2c_addr = XMEGAT_BL_I2C_ADDR, .hw_reset = stingray_touch_reset, + .hw_suspend = stingray_touch_suspend, .key_array = { .cfg = NULL, .keys = NULL, -- 2.34.1