From: Rask Ingemann Lambertsen <rask@formelder.dk>
To: Chen-Yu Tsai <wens@csie.org>, Lee Jones <lee.jones@linaro.org>,
Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Liam Girdwood <lgirdwood@gmail.com>
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 4/5] regulator: axp20x: Add support for the AXP808 PMIC
Date: Thu, 26 Jan 2017 22:18:11 +0100 (CET) [thread overview]
Message-ID: <8c2849be991beef08db2b6560938d16e9cd7758d.1485456006.git.rask@formelder.dk> (raw)
In-Reply-To: <cover.1485456003.git.rask@formelder.dk>
The regulators are the same as on the AXP806.
Signed-off-by: Rask Ingemann Lambertsen <rask@formelder.dk>
---
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
next prev parent reply other threads:[~2017-01-26 21:18 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-26 21:14 [PATCH 0/5] arm: sun9i: Support AXP808 PMIC and Sunchip CX-A99 board Rask Ingemann Lambertsen
2017-01-26 21:15 ` [PATCH 1/5] DT: mfd: axp20x: Add AXP806 to list of current AXP20x family members Rask Ingemann Lambertsen
2017-01-27 4:38 ` Chen-Yu Tsai
2017-02-01 13:26 ` Rob Herring
2017-01-26 21:16 ` [PATCH 2/5] DT: mfd: axp20x: Add binding for the AXP808 Rask Ingemann Lambertsen
2017-02-01 13:27 ` Rob Herring
2017-02-02 7:20 ` Chen-Yu Tsai
2017-01-26 21:17 ` [PATCH 3/5] mfd: axp20x: Add support for the AXP808 PMIC Rask Ingemann Lambertsen
2017-02-02 7:23 ` Chen-Yu Tsai
2017-02-03 21:47 ` Rask Ingemann Lambertsen
2017-01-26 21:18 ` Rask Ingemann Lambertsen [this message]
2017-01-27 11:42 ` [PATCH 4/5] regulator: " Mark Brown
2017-02-02 7:25 ` Chen-Yu Tsai
2017-01-26 21:19 ` [PATCH 5/5] ARM: dts: sun9i: Initial support for the Sunchip CX-A99 board Rask Ingemann Lambertsen
2017-02-02 7:36 ` Chen-Yu Tsai
2017-02-05 19:23 ` Rask Ingemann Lambertsen
2017-01-26 21:49 ` [PATCH 0/5] arm: sun9i: Support AXP808 PMIC and " Rask Ingemann Lambertsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8c2849be991beef08db2b6560938d16e9cd7758d.1485456006.git.rask@formelder.dk \
--to=rask@formelder.dk \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=lee.jones@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=wens@csie.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®