diff options
| author | Guenter Roeck <guenter.roeck@ericsson.com> | 2011-01-26 23:09:02 -0500 |
|---|---|---|
| committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2011-03-15 01:36:26 -0400 |
| commit | 442aba78728e77e03172ba83e905b9aff96febcf (patch) | |
| tree | fe6c99958017922dafd4010c3af2c8c8b6441057 /include/linux/i2c | |
| parent | 06923f84422371a6fb10b3efcd05b80ab48715c0 (diff) | |
hwmon: PMBus device driver
This driver adds support for hardware monitoring features of various PMBus
devices.
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Diffstat (limited to 'include/linux/i2c')
| -rw-r--r-- | include/linux/i2c/pmbus.h | 45 |
1 files changed, 45 insertions, 0 deletions
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_ */ | ||
