Lines Matching full:axp20x

2  * AXP20x regulators driver.
20 #include <linux/mfd/axp20x.h>
449 struct axp20x_dev *axp20x = rdev_get_drvdata(rdev); in axp20x_set_ramp_delay() local
455 switch (axp20x->variant) { in axp20x_set_ramp_delay()
504 dev_err(axp20x->dev, "unsupported ramp value %d", ramp); in axp20x_set_ramp_delay()
511 return regmap_update_bits(axp20x->regmap, reg, mask, cfg); in axp20x_set_ramp_delay()
516 struct axp20x_dev *axp20x = rdev_get_drvdata(rdev); in axp20x_regulator_enable_regmap() local
519 switch (axp20x->variant) { in axp20x_regulator_enable_regmap()
617 AXP_DESC(AXP20X, DCDC2, "dcdc2", "vin2", 700, 2275, 25,
620 AXP_DESC(AXP20X, DCDC3, "dcdc3", "vin3", 700, 3500, 25,
623 AXP_DESC_FIXED(AXP20X, LDO1, "ldo1", "acin", 1300),
624 AXP_DESC(AXP20X, LDO2, "ldo2", "ldo24in", 1800, 3300, 100,
627 AXP_DESC(AXP20X, LDO3, "ldo3", "ldo3in", 700, 3500, 25,
630 AXP_DESC_RANGES(AXP20X, LDO4, "ldo4", "ldo24in",
634 AXP_DESC_IO(AXP20X, LDO5, "ldo5", "ldo5in", 1800, 3300, 100,
1306 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_set_dcdc_freq() local
1310 switch (axp20x->variant) { in axp20x_set_dcdc_freq()
1323 * (See include/linux/mfd/axp20x.h) in axp20x_set_dcdc_freq()
1332 if (axp20x->variant == AXP806_ID) in axp20x_set_dcdc_freq()
1377 return regmap_update_bits(axp20x->regmap, reg, in axp20x_set_dcdc_freq()
1409 struct axp20x_dev *axp20x = rdev_get_drvdata(rdev); in axp20x_set_dcdc_workmode() local
1413 switch (axp20x->variant) { in axp20x_set_dcdc_workmode()
1429 * (See include/linux/mfd/axp20x.h) in axp20x_set_dcdc_workmode()
1481 static bool axp20x_is_polyphase_slave(struct axp20x_dev *axp20x, int id) in axp20x_is_polyphase_slave() argument
1489 switch (axp20x->variant) { in axp20x_is_polyphase_slave()
1492 regmap_read(axp20x->regmap, AXP803_POLYPHASE_CTRL, &reg); in axp20x_is_polyphase_slave()
1503 regmap_read(axp20x->regmap, AXP806_DCDC_MODE_CTRL2, &reg); in axp20x_is_polyphase_slave()
1520 regmap_read(axp20x->regmap, AXP15060_DCDC_MODE_CTRL1, &reg); in axp20x_is_polyphase_slave()
1540 struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); in axp20x_regulator_probe() local
1544 .regmap = axp20x->regmap, in axp20x_regulator_probe()
1545 .driver_data = axp20x, in axp20x_regulator_probe()
1554 switch (axp20x->variant) { in axp20x_regulator_probe()
1601 axp20x->variant); in axp20x_regulator_probe()
1617 if (axp20x_is_polyphase_slave(axp20x, i)) in axp20x_regulator_probe()
1621 if (axp20x->variant == AXP813_ID && i == AXP813_FLDO3) in axp20x_regulator_probe()
1715 regmap_update_bits(axp20x->regmap, AXP20X_OVER_TMP, in axp20x_regulator_probe()
1732 .name = "axp20x-regulator",
1741 MODULE_DESCRIPTION("Regulator Driver for AXP20X PMIC");
1742 MODULE_ALIAS("platform:axp20x-regulator");