max17042: Add POR init procedure from Maxim appnote
authorRamakrishna Pallala <ramakrishna.pallala@intel.com>
Tue, 13 Mar 2012 18:03:52 +0000 (22:03 +0400)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Mon, 26 Mar 2012 16:37:35 +0000 (20:37 +0400)
commitf3a71a6eb13b71cc8a3dc5b6e5692e3db66b92f0
tree8657e58127d2b72d97df5d4d89fdb6372fe02d67
parentf42c2b45b139b7b21c0c2eca70c82ce8d4104815
max17042: Add POR init procedure from Maxim appnote

Add power on reset (POR) init procedure defined by the maxim
appnote. Using this procedure ensures that the part is
configured/initialized correctly at POR and improves early accuracy of
the fuel gauge and informs the fuel gauge with the battery
characterization parameters.  The battery characterization parameters
come from the maxim characterization procedure.

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Signed-off-by: Dirk Brandewie <dirk.brandewie@gmail.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/max17042_battery.c
include/linux/power/max17042_battery.h