mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 22:51:37 +00:00
Input: wm97xx-core - support use as a wakeup source
The WM97xx touch screen controllers can be used to generate a wakeup event when the system is suspended. Provide a new core API call wm97xx_set_suspend_mode() allowing machine drivers to enable this. If no suspend_mode is provided then the touch panel will be powered down when the system is suspended. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
db7c10e708
commit
34d278534d
2 changed files with 42 additions and 0 deletions
|
@ -282,6 +282,7 @@ struct wm97xx {
|
|||
unsigned pen_is_down:1; /* Pen is down */
|
||||
unsigned aux_waiting:1; /* aux measurement waiting */
|
||||
unsigned pen_probably_down:1; /* used in polling mode */
|
||||
u16 suspend_mode; /* PRP in suspend mode */
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -297,6 +298,8 @@ void wm97xx_config_gpio(struct wm97xx *wm, u32 gpio,
|
|||
enum wm97xx_gpio_sticky sticky,
|
||||
enum wm97xx_gpio_wake wake);
|
||||
|
||||
void wm97xx_set_suspend_mode(struct wm97xx *wm, u16 mode);
|
||||
|
||||
/* codec AC97 IO access */
|
||||
int wm97xx_reg_read(struct wm97xx *wm, u16 reg);
|
||||
void wm97xx_reg_write(struct wm97xx *wm, u16 reg, u16 val);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue