Lines Matching +full:cs +full:- +full:enable +full:- +full:shift
1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * high-resolution timer. The Geode SC-1100 (at least) has a buggy
8 * given as a boot-arg. In its absence, the Generic Timekeeping code
9 * will detect and de-rate the bad TSC, allowing this timer to take
12 * Based on work by John Stultz, and Ted Phelps (in a 2.6.12-rc6 patch)
29 MODULE_PARM_DESC(ppm, "+-adjust to actual XO freq (ppm)");
35 #define HR_TMEN (1 << 0) /* timer interrupt enable */
37 #define HR_TM27MPD (1 << 2) /* 1 turns off input clock (power-down) */
42 static u64 read_hrt(struct clocksource *cs) in read_hrt() argument
54 /* mult, shift are set based on mhz27 flag */
63 return -ENODEV; in init_hrt_clocksource()
65 /* Reserve the timer's ISA io-region for ourselves */ in init_hrt_clocksource()
68 "NatSemi SCx200 High-Resolution Timer")) { in init_hrt_clocksource()
70 return -ENODEV; in init_hrt_clocksource()
81 pr_info("enabling scx200 high-res timer (%s MHz +%d ppm)\n", mhz27 ? "27":"1", ppm); in init_hrt_clocksource()