Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1577203
| From | Rask Ingemann Lambertsen <rask@formelder.dk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 4/5] regulator: axp20x: Add support for the AXP808 PMIC |
| Date | 2017-02-09 00:50 +0100 |
| Message-ID | <t8K9P-6Ok-3@gated-at.bofh.it> (permalink) |
| References | <t8JQt-6Ho-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
The regulators are the same as on the AXP806.
Signed-off-by: Rask Ingemann Lambertsen <rask@formelder.dk>
Acked-by: Mark Brown <broonie@kernel.org>
Acked-by: Chen-Yu Tsai <wens@csie.org>
---
No changes in v2.
drivers/regulator/axp20x-regulator.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c
index a3ade9e..034dce8 100644
--- a/drivers/regulator/axp20x-regulator.c
+++ b/drivers/regulator/axp20x-regulator.c
@@ -370,6 +370,7 @@ static int axp20x_set_dcdc_freq(struct platform_device *pdev, u32 dcdcfreq)
step = 75;
break;
case AXP806_ID:
+ case AXP808_ID:
/*
* AXP806 DCDC work frequency setting has the same range and
* step as AXP22X, but at a different register.
@@ -459,6 +460,7 @@ static int axp20x_set_dcdc_workmode(struct regulator_dev *rdev, int id, u32 work
break;
case AXP806_ID:
+ case AXP808_ID:
reg = AXP806_DCDC_MODE_CTRL2;
/*
* AXP806 DCDC regulator IDs have the same range as AXP22X.
@@ -492,8 +494,8 @@ static bool axp20x_is_polyphase_slave(struct axp20x_dev *axp20x, int id)
{
u32 reg = 0;
- /* Only AXP806 has poly-phase outputs */
- if (axp20x->variant != AXP806_ID)
+ /* Only AXP806 and AXP808 have poly-phase outputs */
+ if (axp20x->variant != AXP806_ID && axp20x->variant != AXP808_ID)
return false;
regmap_read(axp20x->regmap, AXP806_DCDC_MODE_CTRL2, ®);
@@ -541,6 +543,7 @@ static int axp20x_regulator_probe(struct platform_device *pdev)
"x-powers,drive-vbus-en");
break;
case AXP806_ID:
+ case AXP808_ID:
regulators = axp806_regulators;
nregulators = AXP806_REG_ID_MAX;
break;
--
2.10.2
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 0/5] arm: sun9i: Support AXP808 PMIC and Sunchip CX-A99 board Rask Ingemann Lambertsen <rask@formelder.dk> - 2017-02-09 00:30 +0100
[PATCH v2 1/5] dts: mfd: axp20x: Add AXP806 to list of current AXP20x family members Rask Ingemann Lambertsen <rask@formelder.dk> - 2017-02-09 00:40 +0100
[PATCH v2 4/5] regulator: axp20x: Add support for the AXP808 PMIC Rask Ingemann Lambertsen <rask@formelder.dk> - 2017-02-09 00:50 +0100
[PATCH v2 2/5] dts: mfd: axp20x: Add binding for the AXP808 Rask Ingemann Lambertsen <rask@formelder.dk> - 2017-02-09 00:50 +0100
[PATCH v6 5/5] ARM: dts: sun9i: Initial support for the Sunchip CX-A99 board Rask Ingemann Lambertsen <rask@formelder.dk> - 2017-02-09 00:50 +0100
Re: [PATCH v6 5/5] ARM: dts: sun9i: Initial support for the Sunchip CX-A99 board Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-02-10 10:00 +0100
Re: [PATCH v6 5/5] ARM: dts: sun9i: Initial support for the Sunchip CX-A99 board Chen-Yu Tsai <wens@csie.org> - 2017-02-10 10:30 +0100
[PATCH v2 3/5] mfd: axp20x: Add support for the AXP808 PMIC Rask Ingemann Lambertsen <rask@formelder.dk> - 2017-02-09 01:30 +0100
csiph-web