From: makarand.karvekar Date: Tue, 2 Nov 2010 16:37:47 +0000 (-0500) Subject: [ARM]:tegra: add touch uC suspend function to toggle wake-line X-Git-Tag: firefly_0821_release~9834^2~359 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1d121a7d19fc0787ea9db22df8808f2dd54cc1de;p=firefly-linux-kernel-4.4.55.git [ARM]:tegra: add touch uC suspend function to toggle wake-line Signed-off-by: makarand.karvekar --- 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,