Lines Matching +full:timebase +full:- +full:frequency

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
139 if (memory == -1) in powermac_mem_regions()
142 /* "reg" has variable #address-cells, but #size-cells is always 1 */ in powermac_mem_regions()
143 OF_getprop(OF_parent(memory), "#address-cells", &physacells, in powermac_mem_regions()
152 /* On 32-bit PPC, ignore regions starting above 4 GB */ in powermac_mem_regions()
154 j--; in powermac_mem_regions()
166 /* "available" always has #address-cells = 1 */ in powermac_mem_regions()
229 int32_t ticks = -1; in powermac_timebase_freq()
231 phandle = cpuref->cr_hwref; in powermac_timebase_freq()
233 OF_getprop(phandle, "timebase-frequency", &ticks, sizeof(ticks)); in powermac_timebase_freq()
236 panic("Unable to determine timebase frequency!"); in powermac_timebase_freq()
247 cpuref->cr_hwref = cpu; in powermac_smp_fill_cpuref()
258 cpuref->cr_cpuid = cpuid & 0xff; in powermac_smp_fill_cpuref()
284 if (dev == -1) in powermac_smp_first_cpu()
309 cpu = OF_peer(cpuref->cr_hwref); in powermac_smp_next_cpu()
330 if (chosen == -1) in powermac_smp_get_bsp()
350 cpu = pc->pc_hwref; in powermac_smp_start_cpu()
351 res = OF_getprop(cpu, "soft-reset", &reset, sizeof(reset)); in powermac_smp_start_cpu()
355 switch (pc->pc_cpuid) { in powermac_smp_start_cpu()
391 while (!pc->pc_awake && timeout--) in powermac_smp_start_cpu()
394 return ((pc->pc_awake) ? 0 : EBUSY); in powermac_smp_start_cpu()
417 * This needs to be replaced with a cpu-to-cpu software sync in powermac_smp_timebase_sync()
418 * protocol, because this is not a consistent way to sync timebase. in powermac_smp_timebase_sync()
425 /* APs. Hold off until we get a stable timebase. */ in powermac_smp_timebase_sync()