提交 a6324709 编写于 作者: B Bengt Jonsson 提交者: Mark Brown

regulator: ab8500-ext: Add support for AB8505/AB9540

The external regulator driver checks for old AB8500 HW
to apply a fix. This patch adds a check to see that
it is a AB8500 (not AB8505/AB9540).
Signed-off-by: NBengt Jonsson <bengt.g.jonsson@stericsson.com>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 ed3c138e
...@@ -369,7 +369,7 @@ int ab8500_ext_regulator_init(struct platform_device *pdev) ...@@ -369,7 +369,7 @@ int ab8500_ext_regulator_init(struct platform_device *pdev)
} }
/* check for AB8500 2.x */ /* check for AB8500 2.x */
if (abx500_get_chip_id(&pdev->dev) < 0x30) { if (is_ab8500_2p0_or_earlier(ab8500)) {
struct ab8500_ext_regulator_info *info; struct ab8500_ext_regulator_info *info;
/* VextSupply3LPn is inverted on AB8500 2.x */ /* VextSupply3LPn is inverted on AB8500 2.x */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册