mfd: rk808: update rk817 volatile reg range

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: Ifeb89255a2e98d4d2af92b83726017c2f75ebc92
This commit is contained in:
shengfei Xu 2020-06-22 08:57:01 +08:00 committed by Tao Huang
parent ceffd1ad98
commit 3915fb8f88
2 changed files with 10 additions and 2 deletions

View File

@ -77,10 +77,14 @@ static bool rk817_is_volatile_reg(struct device *dev, unsigned int reg)
switch (reg) {
case RK817_SECONDS_REG ... RK817_WEEKS_REG:
case RK817_RTC_STATUS_REG:
case RK817_ADC_CONFIG0 ... RK817_CURE_ADC_K0:
case RK817_CHRG_STS:
case RK817_CHRG_OUT:
case RK817_CHRG_IN:
case RK817_SYS_STS:
case RK817_INT_STS_REG0:
case RK817_INT_STS_REG1:
case RK817_INT_STS_REG2:
case RK817_SYS_STS:
return true;
}

View File

@ -875,7 +875,8 @@ enum rk809_reg_id {
#define RK817_RTC_INT_REG 0xf
#define RK817_RTC_COMP_LSB_REG 0x10
#define RK817_RTC_COMP_MSB_REG 0x11
#define RK817_ADC_CONFIG0 0x50
#define RK817_CURE_ADC_K0 0xb0
#define RK817_POWER_EN_SAVE0 0x99
#define RK817_POWER_EN_SAVE1 0xa4
@ -904,6 +905,9 @@ enum rk809_reg_id {
#define RK817_LDO_ON_VSEL_REG(idx) (0xcc + (idx) * 2)
#define RK817_BOOST_OTG_CFG (0xde)
#define RK817_CHRG_OUT 0xe4
#define RK817_CHRG_IN 0xe5
#define RK817_CHRG_STS 0xeb
#define RK817_ID_MSB 0xed
#define RK817_ID_LSB 0xee