From eefa54c0db93b5cff8e8e72995f47bf5ae87dce7 Mon Sep 17 00:00:00 2001 From: Shengfei Xu Date: Wed, 30 Jan 2019 11:09:16 +0800 Subject: 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 --- include/linux/mfd/rk808.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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)) -- cgit v1.2.3