Lines Matching +full:mips +full:- +full:gic
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Carsten Langgaard, carstenl@mips.com
4 * Copyright (C) 1999,2000 MIPS Technologies, Inc. All rights reserved.
6 * Setting up the clock on the MIPS boards.
28 #include <asm/mc146818-time.h>
30 #include <asm/mips-cps.h>
32 #include <asm/mips-boards/generic.h>
33 #include <asm/mips-boards/maltaint.h>
54 freq -= freq % (amount*2); in freqround()
59 * Estimate CPU and GIC frequencies.
111 secs = secs2 - secs1; in estimate_frequencies()
115 count -= start; in estimate_frequencies()
120 giccount = div_u64(giccount - gicstart, secs); in estimate_frequencies()
127 ts->tv_sec = mc146818_get_cmos_time(); in read_persistent_clock64()
128 ts->tv_nsec = 0; in read_persistent_clock64()
134 * Some cores claim the FDC is routable through the GIC, but it doesn't in get_c0_fdc_int()
140 return -1; in get_c0_fdc_int()
144 return -1; in get_c0_fdc_int()
150 return -1; in get_c0_fdc_int()
163 mips_cpu_perf_irq = -1; in get_c0_perfcount_int()
203 .name = "clock-frequency",
214 node = of_find_compatible_node(NULL, NULL, "mti,gic-timer"); in update_gic_frequency_dt()
216 pr_err("mti,gic-timer device node not found\n"); in update_gic_frequency_dt()
221 pr_err("error updating gic frequency property\n"); in update_gic_frequency_dt()
249 printk("GIC frequency %d.%02d MHz\n", freq/1000000, in plat_time_init()