aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2016-02-11 21:02:45 -0500
committerLee Jones <lee.jones@linaro.org>2016-02-12 03:55:34 -0500
commit04e0981c67e6a7ba8aacac731d925f4ff21b67fb (patch)
treec37dab37b8f58fc8a8c0ace50aa03defee07ddfa /drivers/regulator
parent02071f0f797c989b342f46fbdf472ddb1c2cdee9 (diff)
regulator: axp20x: Support new AXP223 PMIC
The AXP223 is a new PMIC commonly paired with Allwinner A23/A33 SoCs. It is functionally identical to AXP221; only the regulator default voltage/status and the external host interface are different. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Reviewed-by: Mark Brown <broonie@kernel.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/axp20x-regulator.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c
index f2e1a39ce0f3..e86d1fc2d80b 100644
--- a/drivers/regulator/axp20x-regulator.c
+++ b/drivers/regulator/axp20x-regulator.c
@@ -244,6 +244,7 @@ static int axp20x_set_dcdc_freq(struct platform_device *pdev, u32 dcdcfreq)
244 step = 75; 244 step = 75;
245 break; 245 break;
246 case AXP221_ID: 246 case AXP221_ID:
247 case AXP223_ID:
247 min = 1800; 248 min = 1800;
248 max = 4050; 249 max = 4050;
249 def = 3000; 250 def = 3000;
@@ -322,6 +323,7 @@ static int axp20x_set_dcdc_workmode(struct regulator_dev *rdev, int id, u32 work
322 break; 323 break;
323 324
324 case AXP221_ID: 325 case AXP221_ID:
326 case AXP223_ID:
325 if (id < AXP22X_DCDC1 || id > AXP22X_DCDC5) 327 if (id < AXP22X_DCDC1 || id > AXP22X_DCDC5)
326 return -EINVAL; 328 return -EINVAL;
327 329
@@ -360,6 +362,7 @@ static int axp20x_regulator_probe(struct platform_device *pdev)
360 nregulators = AXP20X_REG_ID_MAX; 362 nregulators = AXP20X_REG_ID_MAX;
361 break; 363 break;
362 case AXP221_ID: 364 case AXP221_ID:
365 case AXP223_ID:
363 regulators = axp22x_regulators; 366 regulators = axp22x_regulators;
364 nregulators = AXP22X_REG_ID_MAX; 367 nregulators = AXP22X_REG_ID_MAX;
365 break; 368 break;