AnsweredAssumed Answered

can set imx6q cpufreq for android5.1

Question asked by 增谋 邢 on May 15, 2018
Latest reply on May 16, 2018 by Bio_TICFSL

in the drivers/cpufreq/imx6q-cpufreq.c for android5.1,  in the imx6q_cpufreq_probe function

 

arm_reg = devm_regulator_get_optional(cpu_dev, "arm");
pu_reg = devm_regulator_get_optional(cpu_dev, "pu");
soc_reg = devm_regulator_get_optional(cpu_dev, "soc");
if (IS_ERR(arm_reg) || IS_ERR(soc_reg)) {
    dev_err(cpu_dev, "failed to get regulators\n");
    ret = -ENOENT;
    goto put_node;
}

dc_reg = devm_regulator_get_optional(cpu_dev, "dc");
if (!IS_ERR(dc_reg))
regulator_set_voltage_tol(dc_reg, DC_VOLTAGE_MIN, 0);

 

kernel print failed to get regulators,  and return, why ?   I want to change the cpufreq, how to do for me?  tks.

Outcomes