Lines Matching refs:sram_reg
44 struct regulator *sram_reg; member
83 struct regulator *sram_reg = info->sram_reg; in mtk_cpufreq_voltage_tracking() local
94 pre_vsram = regulator_get_voltage(sram_reg); in mtk_cpufreq_voltage_tracking()
107 ret = regulator_set_voltage(sram_reg, vsram, in mtk_cpufreq_voltage_tracking()
122 regulator_set_voltage(sram_reg, pre_vsram, in mtk_cpufreq_voltage_tracking()
140 ret = regulator_set_voltage(sram_reg, vsram, in mtk_cpufreq_voltage_tracking()
439 info->sram_reg = regulator_get_optional(cpu_dev, "sram"); in mtk_cpu_dvfs_info_init()
440 if (IS_ERR(info->sram_reg)) { in mtk_cpu_dvfs_info_init()
441 ret = PTR_ERR(info->sram_reg); in mtk_cpu_dvfs_info_init()
445 info->sram_reg = NULL; in mtk_cpu_dvfs_info_init()
447 ret = regulator_enable(info->sram_reg); in mtk_cpu_dvfs_info_init()
512 info->need_voltage_tracking = (info->sram_reg != NULL); in mtk_cpu_dvfs_info_init()
535 if (info->sram_reg) in mtk_cpu_dvfs_info_init()
536 regulator_disable(info->sram_reg); in mtk_cpu_dvfs_info_init()
539 if (info->sram_reg) in mtk_cpu_dvfs_info_init()
540 regulator_put(info->sram_reg); in mtk_cpu_dvfs_info_init()
561 if (info->sram_reg) { in mtk_cpu_dvfs_info_release()
562 regulator_disable(info->sram_reg); in mtk_cpu_dvfs_info_release()
563 regulator_put(info->sram_reg); in mtk_cpu_dvfs_info_release()