regulator: max8973: add support to configure ETR based on rail load
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 1 Jul 2015 13:01:44 +0000 (18:31 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 7 Jul 2015 13:43:53 +0000 (14:43 +0100)
commitffaab99184a2c8b592bba85d8e4da708c65b4cc1
treec538de4d9825335bb122fcfc0aec633149e0c3f3
parent3692db3a904800445f8af249e1ac0f2b6496f31d
regulator: max8973: add support to configure ETR based on rail load

Add support to configure Enhanced Transient Response Enable (ETR)
and Sensitivity Selection based on maximum current i.e. expected
load on that rail.

Maxim recommended as:
- Enable ETR with high sensitivity (75mV/us) for 0 to 9A expected loads,
- Enable ETR with low sensitivity (150mV/us) for 9A to 12A expected loads.
- Disable ETR for expected load > 12A.

These recommendation will be configured for MAX77621 when maximum load
is provided through regulator constraint for maximum current from platform.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max8973-regulator.c