mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 20:02:17 +00:00
![Nick Dyer](/assets/img/avatar_default.png)
The hardcoded 0x83 CTRL setting overrides other settings in that byte, enabling extra reporting that may not be useful on a particular platform. Implement improved suspend mechanism via deep sleep. By writing zero to both the active and idle cycle times the maXTouch device can be put into a deep sleep mode, using minimal power. It is necessary to issue a calibrate command after the chip has spent any time in deep sleep, however a soft reset is unnecessary. Use the old method on Chromebook Pixel via platform data option. This patch also deals with the situation where the power configuration is zero on probe, which would mean that the device never wakes up to execute commands. After a config download, the T7 power configuration may have changed so it is necessary to re-read it. Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk> Acked-by: Benson Leung <bleung@chromium.org> Acked-by: Yufeng Shen <miletus@chromium.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
31 lines
870 B
C
31 lines
870 B
C
/*
|
|
* Atmel maXTouch Touchscreen driver
|
|
*
|
|
* Copyright (C) 2010 Samsung Electronics Co.Ltd
|
|
* Author: Joonyoung Shim <jy0922.shim@samsung.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License as published by the
|
|
* Free Software Foundation; either version 2 of the License, or (at your
|
|
* option) any later version.
|
|
*/
|
|
|
|
#ifndef __LINUX_PLATFORM_DATA_ATMEL_MXT_TS_H
|
|
#define __LINUX_PLATFORM_DATA_ATMEL_MXT_TS_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
enum mxt_suspend_mode {
|
|
MXT_SUSPEND_DEEP_SLEEP = 0,
|
|
MXT_SUSPEND_T9_CTRL = 1,
|
|
};
|
|
|
|
/* The platform data for the Atmel maXTouch touchscreen driver */
|
|
struct mxt_platform_data {
|
|
unsigned long irqflags;
|
|
u8 t19_num_keys;
|
|
const unsigned int *t19_keymap;
|
|
enum mxt_suspend_mode suspend_mode;
|
|
};
|
|
|
|
#endif /* __LINUX_PLATFORM_DATA_ATMEL_MXT_TS_H */
|