Lines Matching +full:high +full:- +full:threshold

1 /*-
64 int high; member
100 int threshold; /* Threshold frequency, in MHz, for setting CORE_SPD bit. */ member
115 {"fsl,mpc8536-guts", (uintptr_t)&mpc8536_constraints},
116 {"fsl,p1022-guts", (uintptr_t)&p1022_constraints},
127 if (node == -1) in mpc85xx_jog_devcompat()
146 if (device_find_child(parent, "mpc85xx_jog", -1) != NULL) in mpc85xx_jog_identify()
157 if (BUS_ADD_CHILD(parent, 10, "jog", -1) == NULL) in mpc85xx_jog_identify()
167 if (compat == NULL || compat->ocd_str == NULL) in mpc85xx_jog_probe()
184 sc->dev = dev; in mpc85xx_jog_attach()
187 constraints = (struct mpc85xx_constraints *)compat->ocd_data; in mpc85xx_jog_attach()
195 OF_getencprop(cpu, "reg", &sc->cpu, sizeof(sc->cpu)); in mpc85xx_jog_attach()
200 * Assume power-on PLL is the highest PLL config supported on the in mpc85xx_jog_attach()
203 sc->high = PMJCR_GET_CORE_MULT(reg, sc->cpu); in mpc85xx_jog_attach()
204 sc->min_freq = constraints->threshold; in mpc85xx_jog_attach()
205 sc->low = constraints->min_mult; in mpc85xx_jog_attach()
221 if (*count < sc->high - 1) in mpc85xx_jog_settings()
226 memset(sets, CPUFREQ_VAL_UNKNOWN, sizeof(*sets) * sc->high); in mpc85xx_jog_settings()
228 for (i = sc->high; i >= sc->low; --i) { in mpc85xx_jog_settings()
229 sets[sc->high - i].freq = sysclk * i / MHZ; in mpc85xx_jog_settings()
230 sets[sc->high - i].dev = dev; in mpc85xx_jog_settings()
231 sets[sc->high - i].spec[0] = i; in mpc85xx_jog_settings()
233 *count = sc->high - sc->low + 1; in mpc85xx_jog_settings()
251 if (PCPU_GET(cpuid) == args->cpu) { in mpc85xx_jog_set_int()
253 reg &= ~PMJCR_CORE_MULT(PMJCR_RATIO_M, args->cpu); in mpc85xx_jog_set_int()
254 reg |= PMJCR_CORE_MULT(args->mult, args->cpu); in mpc85xx_jog_set_int()
255 if (args->slow) in mpc85xx_jog_set_int()
256 reg &= ~(1 << (12 + args->cpu)); in mpc85xx_jog_set_int()
258 reg |= (1 << (12 + args->cpu)); in mpc85xx_jog_set_int()
276 args->inprogress = 0; in mpc85xx_jog_set_int()
278 while (args->inprogress) in mpc85xx_jog_set_int()
294 args.slow = (set->freq <= sc->min_freq); in mpc85xx_jog_set()
295 args.mult = set->spec[0]; in mpc85xx_jog_set()
318 freq = PMJCR_GET_CORE_MULT(pmjcr, sc->cpu); in mpc85xx_jog_get()
322 set->freq = freq; in mpc85xx_jog_get()
323 set->dev = dev; in mpc85xx_jog_get()