struct rk8xx_i2c_platform_data { conststruct regmap_config *regmap_cfg; int variant;
};
staticbool rk806_is_volatile_reg(struct device *dev, unsignedint reg)
{ switch (reg) { case RK806_POWER_EN0 ... RK806_POWER_EN5: case RK806_DVS_START_CTRL ... RK806_INT_MSK1: returntrue;
}
returnfalse;
}
staticbool rk808_is_volatile_reg(struct device *dev, unsignedint reg)
{ /* * Notes: * - Technically the ROUND_30s bit makes RTC_CTRL_REG volatile, but * we don't use that feature. It's better to cache. * - It's unlikely we care that RK808_DEVCTRL_REG is volatile since * bits are cleared in case when we shutoff anyway, but better safe.
*/
switch (reg) { case RK808_SECONDS_REG ... RK808_WEEKS_REG: case RK808_RTC_STATUS_REG: case RK808_VB_MON_REG: case RK808_THERMAL_REG: case RK808_DCDC_UV_STS_REG: case RK808_LDO_UV_STS_REG: case RK808_DCDC_PG_REG: case RK808_LDO_PG_REG: case RK808_DEVCTRL_REG: case RK808_INT_STS_REG1: case RK808_INT_STS_REG2: returntrue;
}
returnfalse;
}
staticbool rk816_is_volatile_reg(struct device *dev, unsignedint reg)
{ /* * Technically the ROUND_30s bit makes RTC_CTRL_REG volatile, but * we don't use that feature. It's better to cache.
*/
switch (reg) { case RK808_SECONDS_REG ... RK808_WEEKS_REG: case RK808_RTC_STATUS_REG: case RK808_VB_MON_REG: case RK808_THERMAL_REG: case RK816_DCDC_EN_REG1: case RK816_DCDC_EN_REG2: case RK816_INT_STS_REG1: case RK816_INT_STS_REG2: case RK816_INT_STS_REG3: case RK808_DEVCTRL_REG: case RK816_SUP_STS_REG: case RK816_GGSTS_REG: case RK816_ZERO_CUR_ADC_REGH: case RK816_ZERO_CUR_ADC_REGL: case RK816_GASCNT_REG(0) ... RK816_BAT_VOL_REGL: returntrue;
}
returnfalse;
}
staticbool rk817_is_volatile_reg(struct device *dev, unsignedint reg)
{ /* * Notes: * - Technically the ROUND_30s bit makes RTC_CTRL_REG volatile, but * we don't use that feature. It's better to cache.
*/
switch (reg) { case RK817_SECONDS_REG ... RK817_WEEKS_REG: case RK817_RTC_STATUS_REG: case RK817_CODEC_DTOP_LPT_SRST: case RK817_GAS_GAUGE_ADC_CONFIG0 ... RK817_GAS_GAUGE_CUR_ADC_K0: case RK817_PMIC_CHRG_STS: case RK817_PMIC_CHRG_OUT: case RK817_PMIC_CHRG_IN: case RK817_INT_STS_REG0: case RK817_INT_STS_REG1: case RK817_INT_STS_REG2: case RK817_SYS_STS: returntrue;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.