mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 08:31:13 +00:00
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 ...
This commit is contained in:
commit
19520fc1ee
25 changed files with 6208 additions and 585 deletions
14
include/linux/i2c/max6639.h
Normal file
14
include/linux/i2c/max6639.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
#ifndef _LINUX_MAX6639_H
|
||||
#define _LINUX_MAX6639_H
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
/* platform data for the MAX6639 temperature sensor and fan control */
|
||||
|
||||
struct max6639_platform_data {
|
||||
bool pwm_polarity; /* Polarity low (0) or high (1, default) */
|
||||
int ppr; /* Pulses per rotation 1..4 (default == 2) */
|
||||
int rpm_range; /* 2000, 4000 (default), 8000 or 16000 */
|
||||
};
|
||||
|
||||
#endif /* _LINUX_MAX6639_H */
|
45
include/linux/i2c/pmbus.h
Normal file
45
include/linux/i2c/pmbus.h
Normal file
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* Hardware monitoring driver for PMBus devices
|
||||
*
|
||||
* Copyright (c) 2010, 2011 Ericsson AB.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that 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, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#ifndef _PMBUS_H_
|
||||
#define _PMBUS_H_
|
||||
|
||||
/* flags */
|
||||
|
||||
/*
|
||||
* PMBUS_SKIP_STATUS_CHECK
|
||||
*
|
||||
* During register detection, skip checking the status register for
|
||||
* communication or command errors.
|
||||
*
|
||||
* Some PMBus chips respond with valid data when trying to read an unsupported
|
||||
* register. For such chips, checking the status register is mandatory when
|
||||
* trying to determine if a chip register exists or not.
|
||||
* Other PMBus chips don't support the STATUS_CML register, or report
|
||||
* communication errors for no explicable reason. For such chips, checking
|
||||
* the status register must be disabled.
|
||||
*/
|
||||
#define PMBUS_SKIP_STATUS_CHECK (1 << 0)
|
||||
|
||||
struct pmbus_platform_data {
|
||||
u32 flags; /* Device specific flags */
|
||||
};
|
||||
|
||||
#endif /* _PMBUS_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue