adm1275.c (8c57a5e7b2820f349c95b8c8393fec1e0f4070d2) | adm1275.c (2b3d0c19537c1bd0d493e302b7949460901ef489) |
---|---|
1/* 2 * Hardware monitoring driver for Analog Devices ADM1275 Hot-Swap Controller 3 * and Digital Power Monitor 4 * 5 * Copyright (c) 2011 Ericsson AB. 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 485 unchanged lines hidden (view full) --- 494 data->have_temp_max = true; 495 496 coefficients = adm1278_coefficients; 497 vindex = 0; 498 cindex = 1; 499 pindex = 2; 500 tindex = 3; 501 | 1/* 2 * Hardware monitoring driver for Analog Devices ADM1275 Hot-Swap Controller 3 * and Digital Power Monitor 4 * 5 * Copyright (c) 2011 Ericsson AB. 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 485 unchanged lines hidden (view full) --- 494 data->have_temp_max = true; 495 496 coefficients = adm1278_coefficients; 497 vindex = 0; 498 cindex = 1; 499 pindex = 2; 500 tindex = 3; 501 |
502 info->func[0] |= PMBUS_HAVE_PIN | PMBUS_HAVE_STATUS_INPUT; | 502 info->func[0] |= PMBUS_HAVE_PIN | PMBUS_HAVE_STATUS_INPUT | 503 PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT; 504 505 /* Enable VOUT if not enabled (it is disabled by default) */ 506 if (!(config & ADM1278_VOUT_EN)) { 507 config |= ADM1278_VOUT_EN; 508 ret = i2c_smbus_write_byte_data(client, 509 ADM1275_PMON_CONFIG, 510 config); 511 if (ret < 0) { 512 dev_err(&client->dev, 513 "Failed to enable VOUT monitoring\n"); 514 return -ENODEV; 515 } 516 } 517 |
503 if (config & ADM1278_TEMP1_EN) 504 info->func[0] |= 505 PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP; 506 if (config & ADM1278_VIN_EN) 507 info->func[0] |= PMBUS_HAVE_VIN; | 518 if (config & ADM1278_TEMP1_EN) 519 info->func[0] |= 520 PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP; 521 if (config & ADM1278_VIN_EN) 522 info->func[0] |= PMBUS_HAVE_VIN; |
508 if (config & ADM1278_VOUT_EN) 509 info->func[0] |= 510 PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT; | |
511 break; 512 case adm1293: 513 case adm1294: 514 data->have_iout_min = true; 515 data->have_pin_min = true; 516 data->have_pin_max = true; 517 data->have_mfr_vaux_status = true; 518 --- 93 unchanged lines hidden --- | 523 break; 524 case adm1293: 525 case adm1294: 526 data->have_iout_min = true; 527 data->have_pin_min = true; 528 data->have_pin_max = true; 529 data->have_mfr_vaux_status = true; 530 --- 93 unchanged lines hidden --- |