mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-20 19:41:47 +00:00
Added module parameter for VID pin input thresholds.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2715 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
ac1e03ece7
commit
a16a6e40d6
4 files changed
+20
-2
No files matched your search
+12
-2
@@ -66,12 +66,16 @@ MODULE_PARM_DESC(disable_block,
|
||||
|
||||
static int init = 1;
|
||||
MODULE_PARM(init, "i");
|
||||
MODULE_PARM_DESC(init, "Set to zero to bypass chip initialization");
|
||||
MODULE_PARM_DESC(init, "Set to zero to bypass most chip initialization");
|
||||
|
||||
static int vccp_limit_type[2] /* = {0,0} */ ;
|
||||
MODULE_PARM(vccp_limit_type, "2-2i");
|
||||
MODULE_PARM_DESC(vccp_limit_type, "Configures in7 and in8 limit modes");
|
||||
|
||||
static int vid_agtl = 0;
|
||||
MODULE_PARM(vid_agtl, "i");
|
||||
MODULE_PARM_DESC(vid_agtl, "Configures VID pin input thresholds");
|
||||
|
||||
/* -- SENSORS SYSCTL START -- */
|
||||
/* volts * 100 */
|
||||
#define LM93_SYSCTL_IN1 1001
|
||||
@@ -2112,9 +2116,15 @@ static ctl_table lm93_dir_table_template[] = {
|
||||
static void lm93_init_client(struct i2c_client *client)
|
||||
{
|
||||
int i;
|
||||
u8 reg = lm93_read_byte(client, LM93_REG_CONFIG);
|
||||
u8 reg;
|
||||
|
||||
/* configure VID pin input thresholds */
|
||||
reg = lm93_read_byte(client, LM93_REG_GPI_VID_CTL);
|
||||
lm93_write_byte(client, LM93_REG_GPI_VID_CTL,
|
||||
reg | (vid_agtl ? 0x03 : 0x00));
|
||||
|
||||
/* start monitoring */
|
||||
reg = lm93_read_byte(client, LM93_REG_CONFIG);
|
||||
lm93_write_byte(client, LM93_REG_CONFIG, reg | 0x01);
|
||||
|
||||
if (init) {
|
||||
|
||||
@@ -98,6 +98,7 @@
|
||||
/* miscellaneous */
|
||||
#define LM93_REG_SFC1 0xbc
|
||||
#define LM93_REG_SFC2 0xbd
|
||||
#define LM93_REG_GPI_VID_CTL 0xbe
|
||||
#define LM93_REG_SF_TACH_TO_PWM 0xe0
|
||||
|
||||
/* LM93 REGISTER VALUES */
|
||||
|
||||
Reference in new issue
Block a user