Lines Matching +full:100 +full:base +full:- +full:fx
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2002 - 2005 Benjamin Herrenschmidt <benh@kernel.crashing.org>
41 * init/main.c to make it non-init before enabling DEBUG_FREQ
108 /* Switch CPU speed under 750FX CPU control
168 udelay(100); in dfs_set_cpu_speed()
210 if (++timeout > 100) in gpios_set_cpu_speed()
254 * the above didn't re-enable the DEC */ in pmu_set_cpu_speed()
270 save_l3cr = _get_L3CR(); /* (returns -1 if not available) */ in pmu_set_cpu_speed()
271 save_l2cr = _get_L2CR(); /* (returns -1 if not available) */ in pmu_set_cpu_speed()
299 switch_mmu_context(NULL, current->active_mm, NULL); in pmu_set_cpu_speed()
310 * as soon as interrupts are re-enabled and the generic in pmu_set_cpu_speed()
389 * relative to the base of KeyLargo or to the base of the in read_gpio()
390 * GPIO space, and the device-tree doesn't help. in read_gpio()
451 "voltage-gpio"); in pmac_cpufreq_init_MacRISC3()
453 "frequency-gpio"); in pmac_cpufreq_init_MacRISC3()
455 "slewing-done"); in pmac_cpufreq_init_MacRISC3()
480 freqs = of_get_property(cpunode, "bus-frequencies", &lenp); in pmac_cpufreq_init_MacRISC3()
483 pr_err("bus-frequencies incorrect or missing\n"); in pmac_cpufreq_init_MacRISC3()
486 ratio = of_get_property(cpunode, "processor-to-bus-ratio*2", in pmac_cpufreq_init_MacRISC3()
489 pr_err("processor-to-bus-ratio*2 missing\n"); in pmac_cpufreq_init_MacRISC3()
497 /* Grrrr.. It _seems_ that the device-tree is lying on the low bus in pmac_cpufreq_init_MacRISC3()
520 * device-tree in pmac_cpufreq_init_MacRISC3()
522 value = of_get_property(cpunode, "min-clock-frequency", NULL); in pmac_cpufreq_init_MacRISC3()
526 /* The PowerBook G4 12" (PowerBook6,1) has an error in the device-tree in pmac_cpufreq_init_MacRISC3()
531 value = of_get_property(cpunode, "max-clock-frequency", NULL); in pmac_cpufreq_init_MacRISC3()
545 if (of_get_property(cpunode, "dynamic-power-step", NULL) == NULL) in pmac_cpufreq_init_7447A()
548 volt_gpio_np = of_find_node_by_name(NULL, "cpu-vcore-select"); in pmac_cpufreq_init_7447A()
553 pr_err("missing cpu-vcore-select gpio\n"); in pmac_cpufreq_init_7447A()
575 if (of_get_property(cpunode, "dynamic-power-step", NULL) == NULL) in pmac_cpufreq_init_750FX()
579 value = of_get_property(cpunode, "reduced-clock-frequency", NULL); in pmac_cpufreq_init_750FX()
584 volt_gpio_np = of_find_node_by_name(NULL, "cpu-vcore-select"); in pmac_cpufreq_init_750FX()
601 * - Titanium PowerBook 1Ghz (PMU based, 667Mhz & 1Ghz)
602 * - Titanium PowerBook 800 (PMU based, 667Mhz & 800Mhz)
603 * - Titanium PowerBook 400 (PMU based, 300Mhz & 400Mhz)
604 * - Titanium PowerBook 500 (PMU based, 300Mhz & 500Mhz)
605 * - iBook2 500/600 (PMU based, 400Mhz & 500/600Mhz)
606 * - iBook2 700 (CPU based, 400Mhz & 700Mhz, support low voltage)
607 * - Recent MacRISC3 laptops
608 * - All new machines with 7447A CPUs
624 value = of_get_property(cpunode, "clock-frequency", NULL); in pmac_cpufreq_setup()
631 of_get_property(cpunode, "dynamic-power-step", NULL) && in pmac_cpufreq_setup()
669 /* Else check for 750FX */ in pmac_cpufreq_setup()
675 return -ENODEV; in pmac_cpufreq_setup()