mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-04 21:58:18 +00:00
new pcf8591 driver, patch from
Aurelien Jarno <aurelien.jarno@insa-lyon.fr> git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1243 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
7fde741042
commit
c976538703
14 files changed
+862
-7
No files matched your search
+21
@@ -2453,6 +2453,26 @@ static sensors_chip_feature fscscy_features[] =
|
||||
{ 0 }
|
||||
};
|
||||
|
||||
static sensors_chip_feature pcf8591_features[] =
|
||||
{
|
||||
{ SENSORS_PCF8591_AIN_CONF, "ain_conf", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
||||
SENSORS_MODE_RW, PCF8591_SYSCTL_AIN_CONF, VALUE(1), 0 },
|
||||
{ SENSORS_PCF8591_CH0, "ch0", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
||||
SENSORS_MODE_R, PCF8591_SYSCTL_CH0, VALUE(1), 0 },
|
||||
{ SENSORS_PCF8591_CH1, "ch1", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
||||
SENSORS_MODE_R, PCF8591_SYSCTL_CH1, VALUE(1), 0 },
|
||||
{ SENSORS_PCF8591_CH2, "ch2", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
||||
SENSORS_MODE_R, PCF8591_SYSCTL_CH2, VALUE(1), 0 },
|
||||
{ SENSORS_PCF8591_CH3, "ch3", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
||||
SENSORS_MODE_R, PCF8591_SYSCTL_CH3, VALUE(1), 0 },
|
||||
{ SENSORS_PCF8591_AOUT_ENABLE, "aout_enable", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
||||
SENSORS_MODE_RW, PCF8591_SYSCTL_AOUT_ENABLE, VALUE(1), 0 },
|
||||
{ SENSORS_PCF8591_AOUT, "aout", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
|
||||
SENSORS_MODE_RW, PCF8591_SYSCTL_AOUT, VALUE(1), 0 },
|
||||
{ 0 }
|
||||
};
|
||||
|
||||
|
||||
sensors_chip_features sensors_chip_features_list[] =
|
||||
{
|
||||
{ SENSORS_LM78_PREFIX, lm78_features },
|
||||
@@ -2502,5 +2522,6 @@ sensors_chip_features sensors_chip_features_list[] =
|
||||
{ SENSORS_IT87_PREFIX, it87_features },
|
||||
{ SENSORS_FSCPOS_PREFIX, fscpos_features },
|
||||
{ SENSORS_FSCSCY_PREFIX, fscscy_features },
|
||||
{ SENSORS_PCF8591_PREFIX, pcf8591_features },
|
||||
{ 0 }
|
||||
};
|
||||
+11
@@ -1113,6 +1113,17 @@
|
||||
#define SENSORS_FSCSCY_WDOG_STATE 52 /* RW */
|
||||
#define SENSORS_FSCSCY_WDOG_CONTROL 52 /* RW */
|
||||
|
||||
/* PCF8591 chip. */
|
||||
|
||||
#define SENSORS_PCF8591_PREFIX "pcf8591"
|
||||
|
||||
#define SENSORS_PCF8591_AIN_CONF 1 /* RW */
|
||||
#define SENSORS_PCF8591_CH0 2 /* R */
|
||||
#define SENSORS_PCF8591_CH1 3 /* R */
|
||||
#define SENSORS_PCF8591_CH2 4 /* R */
|
||||
#define SENSORS_PCF8591_CH3 5 /* R */
|
||||
#define SENSORS_PCF8591_AOUT_ENABLE 6 /* RW */
|
||||
#define SENSORS_PCF8591_AOUT 7 /* RW */
|
||||
|
||||
|
||||
#endif /* def LIB_SENSORS_CHIPS_H */
|
||||
Reference in new issue
Block a user