diff options
author | Anshul Jain <anshulj@nvidia.com> | 2012-11-30 19:41:54 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-07-19 06:58:05 -0400 |
commit | dbdd954bffb6e7fdb594d3d40a8cd5818eac268d (patch) | |
tree | d1539686a0ae32e19cd3e5d9d6f86f1591afef6f /include | |
parent | 33ae2f293b12697f9d5ca19ced1eb65e3d44d159 (diff) |
thermal: pwm_fan: Add platform data
pwm_fan driver is moved to nvidia repo and platform data related
to it is pulled from below commits
Bug 200430924
Bug 1179033
Bug 1259204
Bug 1261177
Bug 1259488
Bug 1259204
Bug 1388303
Bug 1399542
Bug 1489876
Change based on below commits from linux-4.9
2c03205c thermal: pwm_fan: Add PWM controlled fan driver
e4443760 thermal: pwm_fan: Add sysfs node for state cap
2e2f0810 thermal: pwm_fan: Add support for look up table
f0e562bc thermal: pwm_fan: toggle gpio in suspend/resume
132ef9d7 arm:tegra:loki: update fan pwm period
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Change-Id: Ia6d99e22c8a32e8a98f7a54073397721c65f220f
Reviewed-on: https://git-master.nvidia.com/r/1780502
Reviewed-by: Ajay Nandakumar M <anandakumarm@nvidia.com>
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Tested-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Ajay Nandakumar M <anandakumarm@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include')
-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 | ||