File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,15 @@ config SENSORS_ADP1050
67
67
This driver can also be built as a module. If so, the module will
68
68
be called adp1050.
69
69
70
+ config SENSORS_ADP1050_REGULATOR
71
+ bool "Regulator support for ADP1050 and compatibles"
72
+ depends on SENSORS_ADP1050 && REGULATOR
73
+ help
74
+ If you say yes here you get regulator support for Analog Devices
75
+ LTP8800-1A, LTP8800-4A, and LTP8800-2. LTP8800 is a family of DC/DC
76
+ µModule regulators that can provide microprocessor power from 54V
77
+ power distribution architecture.
78
+
70
79
config SENSORS_BEL_PFE
71
80
tristate "Bel PFE Compatible Power Supplies"
72
81
help
Original file line number Diff line number Diff line change 11
11
12
12
#include "pmbus.h"
13
13
14
+ #if IS_ENABLED (CONFIG_SENSORS_ADP1050_REGULATOR )
15
+ static const struct regulator_desc adp1050_reg_desc [] = {
16
+ PMBUS_REGULATOR_ONE ("vout" ),
17
+ };
18
+ #endif /* CONFIG_SENSORS_ADP1050_REGULATOR */
19
+
14
20
static struct pmbus_driver_info adp1050_info = {
15
21
.pages = 1 ,
16
22
.format [PSC_VOLTAGE_IN ] = linear ,
@@ -65,6 +71,10 @@ static struct pmbus_driver_info ltp8800_info = {
65
71
| PMBUS_HAVE_STATUS_VOUT
66
72
| PMBUS_HAVE_STATUS_INPUT
67
73
| PMBUS_HAVE_STATUS_TEMP ,
74
+ #if IS_ENABLED (CONFIG_SENSORS_ADP1050_REGULATOR )
75
+ .num_regulators = 1 ,
76
+ .reg_desc = adp1050_reg_desc ,
77
+ #endif
68
78
};
69
79
70
80
static int adp1050_probe (struct i2c_client * client )
You can’t perform that action at this time.
0 commit comments