Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1543732
| From | Hans de Goede <hdegoede@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v3 2/2] mfd: axp20x: Fix axp288 volatile ranges |
| Date | 2016-12-16 21:20 +0100 |
| Message-ID | <sP790-8js-15@gated-at.bofh.it> (permalink) |
| References | <sP790-8js-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
The axp288 pmic has a lot more volatile registers then we were
listing in axp288_volatile_ranges, fix this.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
Changes in v2:
-Add the following extra regs to axp288_volatile_ranges: AXP288_POWER_REASON,
AXP20X_TIMER_CTRL, AXP288_RT_BATT_V_H, AXP288_RT_BATT_V_L
Changes in v3:
-Also add: AXP288_BC_GLOBAL, AXP288_BC_DET_STATUS
---
drivers/mfd/axp20x.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c
index a294121..c51d2df 100644
--- a/drivers/mfd/axp20x.c
+++ b/drivers/mfd/axp20x.c
@@ -117,7 +117,14 @@ static const struct regmap_range axp288_writeable_ranges[] = {
};
static const struct regmap_range axp288_volatile_ranges[] = {
+ regmap_reg_range(AXP20X_PWR_INPUT_STATUS, AXP288_POWER_REASON),
+ regmap_reg_range(AXP288_BC_GLOBAL, AXP288_BC_GLOBAL),
+ regmap_reg_range(AXP288_BC_DET_STAT, AXP288_BC_DET_STAT),
regmap_reg_range(AXP20X_IRQ1_EN, AXP20X_IPSOUT_V_HIGH_L),
+ regmap_reg_range(AXP20X_TIMER_CTRL, AXP20X_TIMER_CTRL),
+ regmap_reg_range(AXP22X_GPIO_STATE, AXP22X_GPIO_STATE),
+ regmap_reg_range(AXP288_RT_BATT_V_H, AXP288_RT_BATT_V_L),
+ regmap_reg_range(AXP20X_FG_RES, AXP288_FG_CC_CAP_REG),
};
static const struct regmap_access_table axp288_writeable_table = {
--
2.9.3
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v3 1/2] mfd: axp20x: Add a few missing defines for AXP288 specific registers Hans de Goede <hdegoede@redhat.com> - 2016-12-16 21:20 +0100
[PATCH v3 2/2] mfd: axp20x: Fix axp288 volatile ranges Hans de Goede <hdegoede@redhat.com> - 2016-12-16 21:20 +0100
Re: [PATCH v3 2/2] mfd: axp20x: Fix axp288 volatile ranges Chen-Yu Tsai <wens@csie.org> - 2016-12-17 16:20 +0100
Re: [PATCH v3 2/2] mfd: axp20x: Fix axp288 volatile ranges Hans de Goede <hdegoede@redhat.com> - 2016-12-18 20:20 +0100
Re: [PATCH v3 1/2] mfd: axp20x: Add a few missing defines for AXP288 specific registers Chen-Yu Tsai <wens@csie.org> - 2016-12-17 16:20 +0100
csiph-web