Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343121
b: refs/heads/master
c: 55a18ae
h: refs/heads/master
i:
  343119: 89166df
v: v3
  • Loading branch information
Mark Brown committed Nov 28, 2012
1 parent 30efbf5 commit d651e0e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 86a14501180de78ccec1e513b031a06ea60c973f
refs/heads/master: 55a18aef2e963c43d3a0ae20c1dfd404830aa6f9
20 changes: 19 additions & 1 deletion trunk/drivers/regulator/arizona-ldo1.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ static const struct regulator_desc arizona_ldo1 = {
.owner = THIS_MODULE,
};

static const struct regulator_init_data arizona_ldo1_dvfs = {
.constraints = {
.min_uV = 1200000,
.max_uV = 1800000,
.valid_ops_mask = REGULATOR_CHANGE_STATUS |
REGULATOR_CHANGE_VOLTAGE,
},
.num_consumer_supplies = 1,
};

static const struct regulator_init_data arizona_ldo1_default = {
.constraints = {
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
Expand Down Expand Up @@ -88,7 +98,15 @@ static __devinit int arizona_ldo1_probe(struct platform_device *pdev)
* default init_data for it. This will be overridden with
* platform data if provided.
*/
ldo1->init_data = arizona_ldo1_default;
switch (arizona->type) {
case WM5102:
ldo1->init_data = arizona_ldo1_dvfs;
break;
default:
ldo1->init_data = arizona_ldo1_default;
break;
}

ldo1->init_data.consumer_supplies = &ldo1->supply;
ldo1->supply.supply = "DCVDD";
ldo1->supply.dev_name = dev_name(arizona->dev);
Expand Down

0 comments on commit d651e0e

Please sign in to comment.