Lines Matching full:refclk
42 ptimer_set_period_from_clock(s->ptimer, s->refclk, 1); in systick_set_period_from_clock()
101 if (!clock_has_source(s->refclk)) { in systick_read()
105 val = clock_ns_to_ticks(s->refclk, 10 * SCALE_MS) - 1; in systick_read()
107 if (clock_ticks_to_ns(s->refclk, val + 1) != 10 * SCALE_MS) { in systick_read()
142 if (!clock_has_source(s->refclk)) { in systick_write()
143 /* This bit is always 1 if there is no external refclk */ in systick_write()
206 if (!clock_has_source(s->refclk)) { in systick_reset()
207 /* This bit is always 1 if there is no external refclk */ in systick_reset()
222 /* currently using refclk, we can ignore cpuclk changes */ in systick_cpuclk_update()
235 /* currently using cpuclk, we can ignore refclk changes */ in systick_refclk_update()
239 ptimer_set_period_from_clock(s->ptimer, s->refclk, 1); in systick_refclk_update()
252 s->refclk = qdev_init_clock_in(DEVICE(obj), "refclk", in systick_instance_init()
271 /* It's OK not to connect the refclk */ in systick_realize()
279 VMSTATE_CLOCK(refclk, SysTickState),