diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/platform_data/pwm_fan.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/include/linux/platform_data/pwm_fan.h b/include/linux/platform_data/pwm_fan.h new file mode 100644 index 000000000..cf35089ce --- /dev/null +++ b/include/linux/platform_data/pwm_fan.h | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | /* | ||
| 2 | * include/linux/platform_data/pwm_fan.h | ||
| 3 | * | ||
| 4 | * Copyright (c) 2013-2014, NVIDIA CORPORATION. All rights reserved. | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms and conditions of the GNU General Public License, | ||
| 8 | * version 2, as published by the Free Software Foundation. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
| 11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 13 | * more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 17 | */ | ||
| 18 | |||
| 19 | #ifndef _PWM_FAN_H_ | ||
| 20 | #define _PWM_FAN_H_ | ||
| 21 | |||
| 22 | #define MAX_ACTIVE_STATES 10 | ||
| 23 | |||
| 24 | struct pwm_fan_platform_data { | ||
| 25 | int active_steps; | ||
| 26 | int active_rpm[MAX_ACTIVE_STATES]; | ||
| 27 | int active_pwm[MAX_ACTIVE_STATES]; | ||
| 28 | int active_rru[MAX_ACTIVE_STATES]; | ||
| 29 | int active_rrd[MAX_ACTIVE_STATES]; | ||
| 30 | int state_cap_lookup[MAX_ACTIVE_STATES]; | ||
| 31 | int pwm_period; | ||
| 32 | int pwm_id; | ||
| 33 | int step_time; | ||
| 34 | int active_pwm_max; | ||
| 35 | int state_cap; | ||
| 36 | int tach_gpio; | ||
| 37 | int pwm_gpio; | ||
| 38 | }; | ||
| 39 | #endif | ||
