Lines Matching full:avs

56 /* AVS register set */
77 /* AVS value for the corresponding voltage (in mV) */
101 u32 avs[LOAD_LEVEL_NR];
182 * Find out the armada 37x supported AVS value whose voltage value is
187 u32 avs;
190 for (avs = 0; avs < ARRAY_SIZE(avs_map); avs++)
191 if (avs_map[avs] >= target_vm)
198 if (avs == ARRAY_SIZE(avs_map))
199 avs = ARRAY_SIZE(avs_map) - 1;
201 return avs;
205 * For Armada 37xx soc, L0(VSET0) VDD AVS value is set to SVC revision
211 * This function calculates L1 & L2 & L3 AVS values dynamically based
212 * on L0 voltage and fill all AVS values to the AVS value table.
214 * minimal avs value for load L1.
234 dvfs->avs[0] = l0_vdd_min;
244 dvfs->avs[load_level] = avs_min;
247 * Set the avs values for load L0 and L1 when base CPU frequency
256 dvfs->avs[0] = dvfs->avs[1] = avs_min;
269 dvfs->avs[1] = armada_37xx_avs_val_match(target_vm);
277 dvfs->avs[2] = dvfs->avs[3] = armada_37xx_avs_val_match(target_vm);
280 * Fix the avs value for load L1 when base CPU frequency is 1000/1200 MHz,
282 * Also ensure that avs value for load L1 is not higher than for L0.
292 if (avs_min_l1 > dvfs->avs[0])
293 avs_min_l1 = dvfs->avs[0];
295 if (dvfs->avs[1] < avs_min_l1)
296 dvfs->avs[1] = avs_min_l1;
309 /* Disable AVS before the configuration */
321 avs_val = dvfs->avs[load_level];
329 /* Enable AVS after the configuration */
421 syscon_regmap_lookup_by_compatible("marvell,armada-3700-avs");
423 /* if AVS is not present don't use it but still try to setup dvfs */
487 unsigned long u_volt = avs_map[dvfs->avs[load_lvl]] * 1000;