diff options
author | Charles Keepax <ckeepax@opensource.cirrus.com> | 2020-09-04 13:25:06 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-09-07 18:49:13 +0100 |
commit | 6dc9674d95b8a8a81b85a4bed77f86d1b039be10 (patch) | |
tree | b3c110299830d16667dcf40e333e71a9fb30b5bf /drivers/regulator/lochnagar-regulator.c | |
parent | 6656d4462c7ac5ca0bc5d5a8a91a8c98f0fd1409 (diff) | |
download | linux-6dc9674d95b8a8a81b85a4bed77f86d1b039be10.tar.bz2 |
regulator: lochnagar: Add additional VDDCORE range
In the case of an unrecognised mini-card the Lochnagar will not
initialise the VDDCORE voltage register leading to a value outside of the
current range. Add an additional range to cover these values, initially
this wasn't done since they are duplicates of the existing minimum
value.
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20200904122506.28017-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/lochnagar-regulator.c')
-rw-r--r-- | drivers/regulator/lochnagar-regulator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/lochnagar-regulator.c b/drivers/regulator/lochnagar-regulator.c index 5ea3e4141684..cb71fa5f43c3 100644 --- a/drivers/regulator/lochnagar-regulator.c +++ b/drivers/regulator/lochnagar-regulator.c @@ -98,6 +98,7 @@ static const struct regulator_ops lochnagar_vddcore_ops = { }; static const struct linear_range lochnagar_vddcore_ranges[] = { + REGULATOR_LINEAR_RANGE(600000, 0, 0x7, 0), REGULATOR_LINEAR_RANGE(600000, 0x8, 0x41, 12500), }; |