@@ -964,6 +964,20 @@ static int palmas_regulators_probe(struct platform_device *pdev)
return ret;
pmic->current_reg_mode[id] = reg &
PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK;
+
+ dev_err(&pdev->dev, "enable_reg = 0x%02x, mask =0x%02x\n",
+ pmic->desc[id].enable_reg,
+ pmic->desc[id].enable_mask);
+ pmic->desc[id].enable_reg =
+ PALMAS_BASE_TO_REG(PALMAS_LDO_BASE,
+ palmas_regs_info[id].ctrl_addr);
+ pmic->desc[id].enable_mask =
+ PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK;
+ /*
+ * The following completely ignores
+ * pmic->current_reg_mode[id] (set_mode)
+ */
+ pmic->desc[id].enable_val = SMPS_CTRL_MODE_ON;
}
pmic->desc[id].type = REGULATOR_VOLTAGE;