Merge remote-tracking branch 'regulator/topic/twl' into v3.9-rc8
This commit is contained in:
commit
bcd5d1d978
1 changed files with 3 additions and 31 deletions
|
@ -441,12 +441,6 @@ static const u16 VSIM_VSEL_table[] = {
|
||||||
static const u16 VDAC_VSEL_table[] = {
|
static const u16 VDAC_VSEL_table[] = {
|
||||||
1200, 1300, 1800, 1800,
|
1200, 1300, 1800, 1800,
|
||||||
};
|
};
|
||||||
static const u16 VDD1_VSEL_table[] = {
|
|
||||||
800, 1450,
|
|
||||||
};
|
|
||||||
static const u16 VDD2_VSEL_table[] = {
|
|
||||||
800, 1450, 1500,
|
|
||||||
};
|
|
||||||
static const u16 VIO_VSEL_table[] = {
|
static const u16 VIO_VSEL_table[] = {
|
||||||
1800, 1850,
|
1800, 1850,
|
||||||
};
|
};
|
||||||
|
@ -615,18 +609,8 @@ static struct regulator_ops twl6030ldo_ops = {
|
||||||
|
|
||||||
/*----------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------*/
|
||||||
|
|
||||||
/*
|
|
||||||
* Fixed voltage LDOs don't have a VSEL field to update.
|
|
||||||
*/
|
|
||||||
static int twlfixed_list_voltage(struct regulator_dev *rdev, unsigned index)
|
|
||||||
{
|
|
||||||
struct twlreg_info *info = rdev_get_drvdata(rdev);
|
|
||||||
|
|
||||||
return info->min_mV * 1000;
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct regulator_ops twl4030fixed_ops = {
|
static struct regulator_ops twl4030fixed_ops = {
|
||||||
.list_voltage = twlfixed_list_voltage,
|
.list_voltage = regulator_list_voltage_linear,
|
||||||
|
|
||||||
.enable = twl4030reg_enable,
|
.enable = twl4030reg_enable,
|
||||||
.disable = twl4030reg_disable,
|
.disable = twl4030reg_disable,
|
||||||
|
@ -638,7 +622,7 @@ static struct regulator_ops twl4030fixed_ops = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct regulator_ops twl6030fixed_ops = {
|
static struct regulator_ops twl6030fixed_ops = {
|
||||||
.list_voltage = twlfixed_list_voltage,
|
.list_voltage = regulator_list_voltage_linear,
|
||||||
|
|
||||||
.enable = twl6030reg_enable,
|
.enable = twl6030reg_enable,
|
||||||
.disable = twl6030reg_disable,
|
.disable = twl6030reg_disable,
|
||||||
|
@ -944,19 +928,7 @@ static const struct twlreg_info TWLFIXED_INFO_##label = { \
|
||||||
.ops = &operations, \
|
.ops = &operations, \
|
||||||
.type = REGULATOR_VOLTAGE, \
|
.type = REGULATOR_VOLTAGE, \
|
||||||
.owner = THIS_MODULE, \
|
.owner = THIS_MODULE, \
|
||||||
.enable_time = turnon_delay, \
|
.min_uV = mVolts * 1000, \
|
||||||
}, \
|
|
||||||
}
|
|
||||||
|
|
||||||
#define TWL6030_FIXED_RESOURCE(label, offset, turnon_delay) \
|
|
||||||
static struct twlreg_info TWLRES_INFO_##label = { \
|
|
||||||
.base = offset, \
|
|
||||||
.desc = { \
|
|
||||||
.name = #label, \
|
|
||||||
.id = TWL6030_REG_##label, \
|
|
||||||
.ops = &twl6030_fixed_resource, \
|
|
||||||
.type = REGULATOR_VOLTAGE, \
|
|
||||||
.owner = THIS_MODULE, \
|
|
||||||
.enable_time = turnon_delay, \
|
.enable_time = turnon_delay, \
|
||||||
}, \
|
}, \
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue