charger: max14577: Add support for MAX77836 charger
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 12 Sep 2014 06:53:55 +0000 (08:53 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 24 Sep 2014 14:25:44 +0000 (15:25 +0100)
commit3682a8ee87f9107253e51733f42da10160ce41e3
tree0a50e4f28325c524c7bcfe44d6e7df8b6a21dff5
parent4476767cff44737f8965b34af0f375ac49f7fafa
charger: max14577: Add support for MAX77836 charger

Add support for MAX77836 charger to the max14577 driver. The MAX77836
charger is almost the same as 14577 model except:
 - No dead-battery detection;
 - Support for special charger (like in MAX77693);
 - Support for DX over-voltage protection (like in MAX77693);
 - Lower values of charging current (two times lower current for
   slow/fast charge, much lower EOC current);
 - Slightly different values in ChgTyp field of STATUS2 register. On
   MAX14577 0x6 is reserved and 0x7 dead battery. On the MAX77836 the
   0x6 means special charger and 0x7 is reserved. Regardless of these
   differences the driver maps them to one enum max14577_muic_charger_type.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/power/Kconfig
drivers/power/max14577_charger.c