mfd: axp20x: Add CHRG_CTRL1/2/3 to writeable regs for AXP20X/AXP22X
authorQuentin Schulz <quentin.schulz@free-electrons.com>
Mon, 20 Mar 2017 08:16:53 +0000 (09:16 +0100)
committerLee Jones <lee.jones@linaro.org>
Thu, 27 Apr 2017 08:25:04 +0000 (09:25 +0100)
commit976023701d1f1fda5e19983f38113bd67e881f64
tree3bf33206d084955b5f4547d64ffaf73729cda58f
parent95c4f5319817a158c5d9bc8057a366c4758a0dc7
mfd: axp20x: Add CHRG_CTRL1/2/3 to writeable regs for AXP20X/AXP22X

The CHRG_CTRL1 and CHRG_CTRL2 registers are made for controlling
different battery charging settings such as the constant current charge
value.

The AXP22X also have a third register CHRG_CTRL3 which has settings for
battery charging too.

This adds the CHRG_CTRL1, CHRG_CTRL2 and CHRG_CTRL3 registers to the
list of writeable registers for AXP20X and AXP22X PMICs.

Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/axp20x.c