xref: /OK3568_Linux_fs/kernel/include/linux/platform_data/max6639.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef _LINUX_MAX6639_H
3*4882a593Smuzhiyun #define _LINUX_MAX6639_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #include <linux/types.h>
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun /* platform data for the MAX6639 temperature sensor and fan control */
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun struct max6639_platform_data {
10*4882a593Smuzhiyun 	bool pwm_polarity;	/* Polarity low (0) or high (1, default) */
11*4882a593Smuzhiyun 	int ppr;		/* Pulses per rotation 1..4 (default == 2) */
12*4882a593Smuzhiyun 	int rpm_range;		/* 2000, 4000 (default), 8000 or 16000 */
13*4882a593Smuzhiyun };
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun #endif /* _LINUX_MAX6639_H */
16