Lines Matching +full:clock +full:- +full:falling +full:- +full:edge
1 // SPDX-License-Identifier: GPL-2.0-only
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()
75 * Read counters exactly on rising edge of update flag. in estimate_frequencies()
84 /* Wait for falling edge before reading RTC. */ in estimate_frequencies()
88 /* Read counters again exactly on rising edge of update flag. */ in estimate_frequencies()
94 /* Wait for falling edge before reading RTC again. */ in estimate_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()
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()