From dbdd954bffb6e7fdb594d3d40a8cd5818eac268d Mon Sep 17 00:00:00 2001 From: Anshul Jain Date: Fri, 30 Nov 2012 16:41:54 -0800 Subject: 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 Change-Id: Ia6d99e22c8a32e8a98f7a54073397721c65f220f Reviewed-on: https://git-master.nvidia.com/r/1780502 Reviewed-by: Ajay Nandakumar M Reviewed-by: Krishna Yarlagadda Tested-by: Krishna Yarlagadda GVS: Gerrit_Virtual_Submit Tested-by: Ajay Nandakumar M Reviewed-by: Sachin Nikam Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/linux/platform_data/pwm_fan.h | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 include/linux/platform_data/pwm_fan.h (limited to 'include/linux/platform_data') 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 @@ +/* + * include/linux/platform_data/pwm_fan.h + * + * Copyright (c) 2013-2014, NVIDIA CORPORATION. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef _PWM_FAN_H_ +#define _PWM_FAN_H_ + +#define MAX_ACTIVE_STATES 10 + +struct pwm_fan_platform_data { + int active_steps; + int active_rpm[MAX_ACTIVE_STATES]; + int active_pwm[MAX_ACTIVE_STATES]; + int active_rru[MAX_ACTIVE_STATES]; + int active_rrd[MAX_ACTIVE_STATES]; + int state_cap_lookup[MAX_ACTIVE_STATES]; + int pwm_period; + int pwm_id; + int step_time; + int active_pwm_max; + int state_cap; + int tach_gpio; + int pwm_gpio; +}; +#endif -- cgit v1.2.2