Lines Matching +full:mmu +full:- +full:500 +full:s
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2002 - 2005 Benjamin Herrenschmidt <benh@kernel.crashing.org>
42 * init/main.c to make it non-init before enabling DEBUG_FREQ
101 * core cpufreq framework's own calculation. in debug_calc_bogomips()
198 /* Delay is way too big but it's ok, we schedule */ in gpios_set_cpu_speed()
220 /* Delay is way too big but it's ok, we schedule */ in gpios_set_cpu_speed()
255 * the above didn't re-enable the DEC */ in pmu_set_cpu_speed()
271 save_l3cr = _get_L3CR(); /* (returns -1 if not available) */ in pmu_set_cpu_speed()
272 save_l2cr = _get_L2CR(); /* (returns -1 if not available) */ in pmu_set_cpu_speed()
299 /* Restore userland MMU context */ in pmu_set_cpu_speed()
300 switch_mmu_context(NULL, current->active_mm, NULL); in pmu_set_cpu_speed()
311 * as soon as interrupts are re-enabled and the generic in pmu_set_cpu_speed()
390 * GPIO space, and the device-tree doesn't help. in read_gpio()
399 /* Ok, this could be made a bit smarter, but let's be robust for now. We in pmac_cpufreq_suspend()
450 "voltage-gpio"); in pmac_cpufreq_init_MacRISC3()
452 "frequency-gpio"); in pmac_cpufreq_init_MacRISC3()
454 "slewing-done"); in pmac_cpufreq_init_MacRISC3()
458 * Check to see if it's GPIO driven or PMU only in pmac_cpufreq_init_MacRISC3()
483 freqs = of_get_property(cpunode, "bus-frequencies", &lenp); in pmac_cpufreq_init_MacRISC3()
486 pr_err("bus-frequencies incorrect or missing\n"); in pmac_cpufreq_init_MacRISC3()
489 ratio = of_get_property(cpunode, "processor-to-bus-ratio*2", in pmac_cpufreq_init_MacRISC3()
492 pr_err("processor-to-bus-ratio*2 missing\n"); in pmac_cpufreq_init_MacRISC3()
500 /* Grrrr.. It _seems_ that the device-tree is lying on the low bus in pmac_cpufreq_init_MacRISC3()
502 * it appears to be approx. 101Mhz on all. Let's hack around here... in pmac_cpufreq_init_MacRISC3()
523 * device-tree in pmac_cpufreq_init_MacRISC3()
525 value = of_get_property(cpunode, "min-clock-frequency", NULL); in pmac_cpufreq_init_MacRISC3()
529 /* The PowerBook G4 12" (PowerBook6,1) has an error in the device-tree in pmac_cpufreq_init_MacRISC3()
534 value = of_get_property(cpunode, "max-clock-frequency", NULL); in pmac_cpufreq_init_MacRISC3()
548 if (!of_property_read_bool(cpunode, "dynamic-power-step")) in pmac_cpufreq_init_7447A()
551 volt_gpio_np = of_find_node_by_name(NULL, "cpu-vcore-select"); in pmac_cpufreq_init_7447A()
556 pr_err("missing cpu-vcore-select gpio\n"); in pmac_cpufreq_init_7447A()
578 if (!of_property_read_bool(cpunode, "dynamic-power-step")) in pmac_cpufreq_init_750FX()
582 value = of_get_property(cpunode, "reduced-clock-frequency", NULL); in pmac_cpufreq_init_750FX()
587 volt_gpio_np = of_find_node_by_name(NULL, "cpu-vcore-select"); in pmac_cpufreq_init_750FX()
604 * - Titanium PowerBook 1Ghz (PMU based, 667Mhz & 1Ghz)
605 * - Titanium PowerBook 800 (PMU based, 667Mhz & 800Mhz)
606 * - Titanium PowerBook 400 (PMU based, 300Mhz & 400Mhz)
607 * - Titanium PowerBook 500 (PMU based, 300Mhz & 500Mhz)
608 * - iBook2 500/600 (PMU based, 400Mhz & 500/600Mhz)
609 * - iBook2 700 (CPU based, 400Mhz & 700Mhz, support low voltage)
610 * - Recent MacRISC3 laptops
611 * - All new machines with 7447A CPUs
627 value = of_get_property(cpunode, "clock-frequency", NULL); in pmac_cpufreq_setup()
634 of_property_read_bool(cpunode, "dynamic-power-step") && in pmac_cpufreq_setup()
646 /* Else check for iBook2 500/600 */ in pmac_cpufreq_setup()
660 /* Else check for TiPb 400 & 500 */ in pmac_cpufreq_setup()
662 /* We only know about the 400 MHz and the 500Mhz model in pmac_cpufreq_setup()
678 return -ENODEV; in pmac_cpufreq_setup()