Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272407
b: refs/heads/master
c: f068ad8
h: refs/heads/master
i:
  272405: f666c0b
  272403: 3145b69
  272399: 4cb2174
v: v3
  • Loading branch information
Marcus Folkesson authored and Liam Girdwood committed Aug 28, 2011
1 parent 125dc09 commit 423196e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ba55a9741da6c85176987c15e24383b858749aa2
refs/heads/master: f068ad8cca7532bc42115d61489de00fe57c3909
11 changes: 11 additions & 0 deletions trunk/drivers/regulator/tps65023-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@
#define TPS65023_REG_CTRL2_DCDC1 BIT(2)
#define TPS65023_REG_CTRL2_DCDC3 BIT(0)

/* REG_CTRL2 bitfields */
#define TPS65023_REG_CTRL2_GO BIT(7)
#define TPS65023_REG_CTRL2_CORE_ADJ BIT(6)
#define TPS65023_REG_CTRL2_DCDC2 BIT(2)
#define TPS65023_REG_CTRL2_DCDC1 BIT(1)
#define TPS65023_REG_CTRL2_DCDC3 BIT(0)

/* LDO_CTRL bitfields */
#define TPS65023_LDO_CTRL_LDOx_SHIFT(ldo_id) ((ldo_id)*4)
#define TPS65023_LDO_CTRL_LDOx_MASK(ldo_id) (0xF0 >> ((ldo_id)*4))
Expand Down Expand Up @@ -482,6 +489,10 @@ static int __devinit tps_65023_probe(struct i2c_client *client,

i2c_set_clientdata(client, tps);

/* Enable setting output voltage by I2C */
tps_65023_clear_bits(tps, TPS65023_REG_CON_CTRL2,
TPS65023_REG_CTRL2_CORE_ADJ);

/* Enable setting output voltage by I2C */
tps_65023_clear_bits(tps, TPS65023_REG_CON_CTRL2,
TPS65023_REG_CTRL2_CORE_ADJ);
Expand Down

0 comments on commit 423196e

Please sign in to comment.