Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2010, Code Aurora Forum. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | * |
| 12 | */ |
| 13 | |
| 14 | #ifndef __PMIC8058_PWRKEY_H__ |
| 15 | #define __PMIC8058_PWRKEY_H__ |
| 16 | |
| 17 | struct pmic8058_pwrkey_pdata { |
| 18 | bool pull_up; |
| 19 | /* time after which pwr key event should be generated, if key is |
| 20 | * released before that then end key event is reported |
| 21 | */ |
| 22 | u16 pwrkey_time_ms; |
| 23 | /* time delay for pwr-key state change |
| 24 | * interrupt triggering. |
| 25 | */ |
| 26 | u32 kpd_trigger_delay_us; |
| 27 | u32 wakeup; |
| 28 | }; |
| 29 | |
| 30 | #endif /* __PMIC8058_PWRKEY_H__ */ |