Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319722
b: refs/heads/master
c: 712db99
h: refs/heads/master
v: v3
  • Loading branch information
Johan Hovold authored and Samuel Ortiz committed Jul 8, 2012
1 parent c0eaf68 commit e256107
Show file tree
Hide file tree
Showing 3 changed files with 22 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: 54210c97c8bfff67a4c5ec09ff797543bf291d6b
refs/heads/master: 712db99df155eeef7bbab8677d8a02d0eff50d11
21 changes: 20 additions & 1 deletion trunk/drivers/mfd/tps65910.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,25 @@ static const struct regmap_config tps65910_regmap_config = {
.cache_type = REGCACHE_RBTREE,
};

static int __devinit tps65910_misc_init(struct tps65910 *tps65910,
struct tps65910_board *pmic_pdata)
{
struct device *dev = tps65910->dev;
int ret;

if (pmic_pdata->en_ck32k_xtal) {
ret = tps65910_reg_clear_bits(tps65910,
TPS65910_DEVCTRL,
DEVCTRL_CK32K_CTRL_MASK);
if (ret < 0) {
dev_err(dev, "clear ck32k_ctrl failed: %d\n", ret);
return ret;
}
}

return 0;
}

static int __devinit tps65910_sleepinit(struct tps65910 *tps65910,
struct tps65910_board *pmic_pdata)
{
Expand Down Expand Up @@ -243,7 +262,7 @@ static __devinit int tps65910_i2c_probe(struct i2c_client *i2c,
init_data->irq_base = pmic_plat_data->irq_base;

tps65910_irq_init(tps65910, init_data->irq, init_data);

tps65910_misc_init(tps65910, pmic_plat_data);
tps65910_sleepinit(tps65910, pmic_plat_data);

return ret;
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/mfd/tps65910.h
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,7 @@ struct tps65910_board {
int irq_base;
int vmbch_threshold;
int vmbch2_threshold;
bool en_ck32k_xtal;
bool en_dev_slp;
struct tps65910_sleep_keepon_data *slp_keepon;
bool en_gpio_sleep[TPS6591X_MAX_NUM_GPIO];
Expand Down

0 comments on commit e256107

Please sign in to comment.