diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-17 19:59:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-17 19:59:38 -0400 |
commit | 19520fc1ee36164808e6f084bd95e8178e2db231 (patch) | |
tree | abf66f8c2a2b35e574e9452673263614fc50c63f /include/linux | |
parent | c8def554d031664e984323f6a5d667f070717776 (diff) | |
parent | d668a8b022a201e65ec5e301a9e6dff78987550c (diff) |
Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/staging
* 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/staging: (44 commits)
hwmon: (lineage-pem): Fix in1 voltage alarm sysfs attributes
hwmon/f71882fg: Add support for f71808e
hwmon/f71882fg: Add support for f71869f and f71869e
hwmon/f71882fg: Add support for f71889ed
hwmon/f71882fg: Break out test for auto pwm's controlled by digital readings
hwmon/f71882fg: Separate temp beep sysfs attr from the other temp sysfs attr
hwmon/f71882fg: Remove bogus temp2_type for certain models
hwmon/f71882fg: Make number of temps configurable
hwmon/f71882fg: Make creation of in sysfs attributes more generic
hwmon/f71882fg: Only allow negative auto point temps if fan_neg_temp is enabled
hwmon/f71882fg: Fix temp1 sensor type reporting
hwmon: (w83627ehf) Display correct temperature sensor labels for systems with NCT6775F
hwmon: (w83627ehf) Add fan debounce support for NCT6775F and NCT6776F
hwmon: (w83627ehf) Update Kconfig for W83677HG-B, NCT6775F and NCT6776F
hwmon: (w83627ehf) Store rpm instead of raw fan speed data
hwmon: (w83627ehf) Use 16 bit fan count registers if supported
hwmon: (w83627ehf) Add support for Nuvoton NCT6775F and NCT6776F
hwmon: (w83627ehf) Permit enabling SmartFan IV mode if configured at startup
hwmon: (w83627ehf) Convert register arrays to 16 bit, and convert access to pointers
hwmon: (w83627ehf) Remove references to datasheets which no longer exist
...
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/i2c/max6639.h | 14 | ||||
-rw-r--r-- | include/linux/i2c/pmbus.h | 45 |
2 files changed, 59 insertions, 0 deletions
diff --git a/include/linux/i2c/max6639.h b/include/linux/i2c/max6639.h new file mode 100644 index 000000000000..6011c42034da --- /dev/null +++ b/include/linux/i2c/max6639.h | |||
@@ -0,0 +1,14 @@ | |||
1 | #ifndef _LINUX_MAX6639_H | ||
2 | #define _LINUX_MAX6639_H | ||
3 | |||
4 | #include <linux/types.h> | ||
5 | |||
6 | /* platform data for the MAX6639 temperature sensor and fan control */ | ||
7 | |||
8 | struct max6639_platform_data { | ||
9 | bool pwm_polarity; /* Polarity low (0) or high (1, default) */ | ||
10 | int ppr; /* Pulses per rotation 1..4 (default == 2) */ | ||
11 | int rpm_range; /* 2000, 4000 (default), 8000 or 16000 */ | ||
12 | }; | ||
13 | |||
14 | #endif /* _LINUX_MAX6639_H */ | ||
diff --git a/include/linux/i2c/pmbus.h b/include/linux/i2c/pmbus.h new file mode 100644 index 000000000000..69280db02c41 --- /dev/null +++ b/include/linux/i2c/pmbus.h | |||
@@ -0,0 +1,45 @@ | |||
1 | /* | ||
2 | * Hardware monitoring driver for PMBus devices | ||
3 | * | ||
4 | * Copyright (c) 2010, 2011 Ericsson AB. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
19 | */ | ||
20 | |||
21 | #ifndef _PMBUS_H_ | ||
22 | #define _PMBUS_H_ | ||
23 | |||
24 | /* flags */ | ||
25 | |||
26 | /* | ||
27 | * PMBUS_SKIP_STATUS_CHECK | ||
28 | * | ||
29 | * During register detection, skip checking the status register for | ||
30 | * communication or command errors. | ||
31 | * | ||
32 | * Some PMBus chips respond with valid data when trying to read an unsupported | ||
33 | * register. For such chips, checking the status register is mandatory when | ||
34 | * trying to determine if a chip register exists or not. | ||
35 | * Other PMBus chips don't support the STATUS_CML register, or report | ||
36 | * communication errors for no explicable reason. For such chips, checking | ||
37 | * the status register must be disabled. | ||
38 | */ | ||
39 | #define PMBUS_SKIP_STATUS_CHECK (1 << 0) | ||
40 | |||
41 | struct pmbus_platform_data { | ||
42 | u32 flags; /* Device specific flags */ | ||
43 | }; | ||
44 | |||
45 | #endif /* _PMBUS_H_ */ | ||