Lines Matching full:vsram
31 * Mediatek SoCs has two voltage inputs, Vproc and Vsram. In some cases the two
33 * 100mV < Vsram - Vproc < 200mV
84 int pre_vproc, pre_vsram, new_vsram, vsram, vproc, ret; in mtk_cpufreq_voltage_tracking() local
96 dev_err(info->cpu_dev, "invalid Vsram value: %d\n", pre_vsram); in mtk_cpufreq_voltage_tracking()
105 vsram = clamp(pre_vproc + soc_data->max_volt_shift, in mtk_cpufreq_voltage_tracking()
107 ret = regulator_set_voltage(sram_reg, vsram, in mtk_cpufreq_voltage_tracking()
113 if (vsram == soc_data->sram_max_volt || in mtk_cpufreq_voltage_tracking()
117 vproc = vsram - soc_data->min_volt_shift; in mtk_cpufreq_voltage_tracking()
135 vsram = new_vsram; in mtk_cpufreq_voltage_tracking()
137 vsram = max(new_vsram, in mtk_cpufreq_voltage_tracking()
140 ret = regulator_set_voltage(sram_reg, vsram, in mtk_cpufreq_voltage_tracking()
150 pre_vsram = vsram; in mtk_cpufreq_voltage_tracking()
157 } while (vproc != new_vproc || vsram != new_vsram); in mtk_cpufreq_voltage_tracking()
447 dev_err_probe(cpu_dev, ret, "cpu%d: failed to enable vsram\n", cpu); in mtk_cpu_dvfs_info_init()