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.
106 secs = secs2 - secs1; in estimate_frequencies()
110 count -= start; in estimate_frequencies()
115 giccount = div_u64(giccount - gicstart, secs); in estimate_frequencies()
122 ts->tv_sec = mc146818_get_cmos_time(); in read_persistent_clock64()
123 ts->tv_nsec = 0; in read_persistent_clock64()
129 * Some cores claim the FDC is routable through the GIC, but it doesn't in get_c0_fdc_int()
135 return -1; in get_c0_fdc_int()
139 return -1; in get_c0_fdc_int()
145 return -1; in get_c0_fdc_int()
158 mips_cpu_perf_irq = -1; in get_c0_perfcount_int()
198 .name = "clock-frequency",
209 node = of_find_compatible_node(NULL, NULL, "mti,gic-timer"); in update_gic_frequency_dt()
211 pr_err("mti,gic-timer device node not found\n"); in update_gic_frequency_dt()
216 pr_err("error updating gic frequency property\n"); in update_gic_frequency_dt()
246 printk("GIC frequency %d.%02d MHz\n", freq/1000000, in plat_time_init()