.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)
{
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;