说明
修改源码
diff --git a/drivers/power/pmic/pmic_rk816.c b/drivers/power/pmic/pmic_rk816.c
index 1e77c02..75dad60 100755
--- a/drivers/power/pmic/pmic_rk816.c
+++ b/drivers/power/pmic/pmic_rk816.c
@@ -327,14 +327,36 @@ static int rk816_set_regulator_init(struct fdt_regulator_match *matches, int id)
if (matches->boot_on) {
debug("%s: regulagor.%d boot on\n", __func__, id);
ret = rk816_regulator_enable(id);
+ } else {
+
+
+ debug("%s: regulagor.%d boot off\n", __func__, id);
+ ret = rk816_regulator_disable(id);
}
return ret;
}
static int rk816_pre_init_ldo(unsigned char bus, uchar addr)
{
- rk816_regulator_disable(9);
+
i2c_reg_write(rk8xx->pmic->hw.i2c.addr, RK816_DCDC_EN_REG2, 0x60);