Lines Matching refs:dvfs

223 						struct armada_37xx_dvfs *dvfs)  in armada37xx_cpufreq_avs_configure()  argument
240 dvfs->avs[0] = l0_vdd_min; in armada37xx_cpufreq_avs_configure()
250 dvfs->avs[load_level] = avs_min; in armada37xx_cpufreq_avs_configure()
257 if (dvfs->cpu_freq_max >= 1000*1000*1000) { in armada37xx_cpufreq_avs_configure()
258 if (dvfs->cpu_freq_max >= 1200*1000*1000) in armada37xx_cpufreq_avs_configure()
262 dvfs->avs[0] = dvfs->avs[1] = avs_min; in armada37xx_cpufreq_avs_configure()
275 dvfs->avs[1] = armada_37xx_avs_val_match(target_vm); in armada37xx_cpufreq_avs_configure()
283 dvfs->avs[2] = dvfs->avs[3] = armada_37xx_avs_val_match(target_vm); in armada37xx_cpufreq_avs_configure()
290 if (dvfs->cpu_freq_max >= 1000*1000*1000) { in armada37xx_cpufreq_avs_configure()
293 if (dvfs->cpu_freq_max >= 1200*1000*1000) in armada37xx_cpufreq_avs_configure()
298 if (avs_min_l1 > dvfs->avs[0]) in armada37xx_cpufreq_avs_configure()
299 avs_min_l1 = dvfs->avs[0]; in armada37xx_cpufreq_avs_configure()
301 if (dvfs->avs[1] < avs_min_l1) in armada37xx_cpufreq_avs_configure()
302 dvfs->avs[1] = avs_min_l1; in armada37xx_cpufreq_avs_configure()
307 struct armada_37xx_dvfs *dvfs) in armada37xx_cpufreq_avs_setup() argument
327 avs_val = dvfs->avs[load_level]; in armada37xx_cpufreq_avs_setup()
406 struct armada_37xx_dvfs *dvfs; in armada37xx_cpufreq_driver_init() local
470 dvfs = armada_37xx_cpu_freq_info_get(base_frequency); in armada37xx_cpufreq_driver_init()
471 if (!dvfs) { in armada37xx_cpufreq_driver_init()
485 armada37xx_cpufreq_avs_configure(avs_base, dvfs); in armada37xx_cpufreq_driver_init()
486 armada37xx_cpufreq_avs_setup(avs_base, dvfs); in armada37xx_cpufreq_driver_init()
488 armada37xx_cpufreq_dvfs_setup(nb_pm_base, nb_clk_base, dvfs->divider); in armada37xx_cpufreq_driver_init()
493 unsigned long u_volt = avs_map[dvfs->avs[load_lvl]] * 1000; in armada37xx_cpufreq_driver_init()
494 freq = base_frequency / dvfs->divider[load_lvl]; in armada37xx_cpufreq_driver_init()
517 platform_set_drvdata(pdev, dvfs); in armada37xx_cpufreq_driver_init()
525 freq = base_frequency / dvfs->divider[load_lvl]; in armada37xx_cpufreq_driver_init()
539 struct armada_37xx_dvfs *dvfs = platform_get_drvdata(pdev); in armada37xx_cpufreq_driver_exit() local
548 freq = dvfs->cpu_freq_max / dvfs->divider[load_lvl]; in armada37xx_cpufreq_driver_exit()