Lines Matching +full:- +full:30 +full:mv

1 // SPDX-License-Identifier: GPL-2.0-only
3 * (C) 2001-2004 Dave Jones.
13 * Present in Samuel 2 (steppings 1-7 only) (C5B), and Ezra (C5C).
16 * It is present in Ezra-T (C5M), Nehemiah (C5X) and above.
192 /* Dummy op - must do something useless after P_LVL3 in do_powersaver()
210 /* Dummy op - must do something useless after P_LVL3 read */ in do_powersaver()
229 /* Dummy op - must do something useless after P_LVL3 in do_powersaver()
260 if (mult == -1) in longhaul_setstate()
261 return -EINVAL; in longhaul_setstate()
265 return -EINVAL; in longhaul_setstate()
287 || ((pr != NULL) && pr->flags.bm_control))) { in longhaul_setstate()
292 bm_timeout--; in longhaul_setstate()
301 } else if ((pr != NULL) && pr->flags.bm_control) { in longhaul_setstate()
316 * Longhaul v2 appears in Samuel2 Steppings 1->7 [C5B] and Ezra [C5C] in longhaul_setstate()
318 * Longhaul v3 (aka Powersaver). (Ezra-T [C5M] & Nehemiah [C5N]) in longhaul_setstate()
327 do_powersaver(cx->address, mults_index, dir); in longhaul_setstate()
337 } else if ((pr != NULL) && pr->flags.bm_control) { in longhaul_setstate()
389 return -EBUSY; in longhaul_setstate()
416 f_min = f_max - ROUNDING; in guess_fsb()
432 if (mult == -1) { in longhaul_get_ranges()
434 return -EINVAL; in longhaul_get_ranges()
439 return -EINVAL; in longhaul_get_ranges()
441 /* Get max multiplier - as we always did. in longhaul_get_ranges()
454 minmult = 30; in longhaul_get_ranges()
469 return -EINVAL; in longhaul_get_ranges()
474 return -EINVAL; in longhaul_get_ranges()
480 return -ENOMEM; in longhaul_get_ranges()
484 if (ratio == -1) in longhaul_get_ranges()
494 return -ENODEV; in longhaul_get_ranges()
497 for (j = 0; j < k - 1; j++) { in longhaul_get_ranges()
557 if (minvid.mV == 0 || maxvid.mV == 0 || minvid.mV > maxvid.mV) { in longhaul_setup_voltagescaling()
558 pr_info("Bogus values Min:%d.%03d Max:%d.%03d - Voltage scaling disabled\n", in longhaul_setup_voltagescaling()
559 minvid.mV/1000, minvid.mV%1000, in longhaul_setup_voltagescaling()
560 maxvid.mV/1000, maxvid.mV%1000); in longhaul_setup_voltagescaling()
564 if (minvid.mV == maxvid.mV) { in longhaul_setup_voltagescaling()
565 …pr_info("Claims to support voltage scaling but min & max are both %d.%03d - Voltage scaling disabl… in longhaul_setup_voltagescaling()
566 maxvid.mV/1000, maxvid.mV%1000); in longhaul_setup_voltagescaling()
571 numvscales = maxvid.pos - minvid.pos + 1; in longhaul_setup_voltagescaling()
573 maxvid.mV/1000, maxvid.mV%1000, in longhaul_setup_voltagescaling()
574 minvid.mV/1000, minvid.mV%1000, in longhaul_setup_voltagescaling()
582 if (min_vid_speed == -1) in longhaul_setup_voltagescaling()
600 kHz_step = (highest_speed - min_vid_speed) / numvscales; in longhaul_setup_voltagescaling()
603 speed = freq_pos->frequency; in longhaul_setup_voltagescaling()
605 pos = (speed - min_vid_speed) / kHz_step + minvid.pos; in longhaul_setup_voltagescaling()
608 freq_pos->driver_data |= mV_vrm_table[pos] << 8; in longhaul_setup_voltagescaling()
610 pr_info("f: %d kHz, index: %d, vid: %d mV\n", in longhaul_setup_voltagescaling()
611 speed, j, vid.mV); in longhaul_setup_voltagescaling()
650 i--; in longhaul_target()
701 /* Find CN400 V-Link host bridge */ in enable_arbiter_disable()
767 switch (c->x86_model) { in longhaul_cpu_init()
777 switch (c->x86_stepping) { in longhaul_cpu_init()
789 if (c->x86_stepping < 8) { in longhaul_cpu_init()
804 cpuname = "C3 'Ezra-T' [C5M]"; in longhaul_cpu_init()
816 switch (c->x86_stepping) { in longhaul_cpu_init()
865 cx = &pr->power.states[ACPI_STATE_C3]; in longhaul_cpu_init()
866 if (cx->address > 0 && cx->latency <= 1000) in longhaul_cpu_init()
879 && ((pr == NULL) || !(pr->flags.bm_control))) { in longhaul_cpu_init()
881 return -ENODEV; in longhaul_cpu_init()
896 policy->transition_delay_us = 200000; /* usec */ in longhaul_cpu_init()
897 policy->freq_table = longhaul_table; in longhaul_cpu_init()
922 return -ENODEV; in longhaul_init()
925 pr_err("Option \"enable\" not set - Aborting\n"); in longhaul_init()
926 return -ENODEV; in longhaul_init()
931 return -ENODEV; in longhaul_init()
937 return -ENODEV; in longhaul_init()
940 switch (c->x86_model) { in longhaul_init()
944 pr_err("Use acpi-cpufreq driver for VIA C7\n"); in longhaul_init()
947 return -ENODEV; in longhaul_init()
960 freqs.old = policy->cur; in longhaul_exit()