diff options
author | Shengfei Xu <xsf@rock-chips.com> | 2019-01-30 11:09:16 +0800 |
---|---|---|
committer | Tao Huang <huangtao@rock-chips.com> | 2019-02-01 10:29:53 +0800 |
commit | eefa54c0db93b5cff8e8e72995f47bf5ae87dce7 (patch) | |
tree | 1496fdf9f6d933ce98384758e50105b431d2ee66 /include | |
parent | e57a003936c5bac086da5b7a2cb75edcfd38add0 (diff) |
mfd: rk808: restore the OTP value to POWER_EN register of rk817/rk809
rk817/rk809 must restore the PMIC_POWER_EN OTP value before the system reboot.
Change-Id: I2ccfbb4d47eb41cdcea048111873b6ab85477d64
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mfd/rk808.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mfd/rk808.h b/include/linux/mfd/rk808.h index 38d1d8191bca..b433c7359734 100644 --- a/include/linux/mfd/rk808.h +++ b/include/linux/mfd/rk808.h @@ -825,6 +825,9 @@ enum rk809_reg_id { #define RK817_RTC_COMP_LSB_REG 0x10 #define RK817_RTC_COMP_MSB_REG 0x11 +#define RK817_POWER_EN_SAVE0 0x99 +#define RK817_POWER_EN_SAVE1 0xa4 + #define RK817_POWER_EN_REG(i) (0xb1 + (i)) #define RK817_POWER_SLP_EN_REG(i) (0xb5 + (i)) |