99abcbc760
It is quite common for a clock tree to involve possibly programmable clock multipliers or dividers, where the frequency of a clock is for instance divided by 8 to produce a slower clock to feed to a particular device. Currently we provide no convenient mechanism for modelling this. You can implement it by having an input Clock and an output Clock, and manually setting the period of the output clock in the period-changed callback of the input clock, but that's quite clunky. This patch adds support in the Clock objects themselves for setting a multiplier or divider. The effect of setting this on a clock is that when the clock's period is changed, all the children of the clock are set to period * multiplier / divider, rather than being set to the same period as the parent clock. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Alexandre Iooss <erdnaxe@crans.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Luc Michel <luc@lmichel.fr> Reviewed-by: Damien Hedde <damien.hedde@greensocs.com> Message-id: 20210812093356.1946-10-peter.maydell@linaro.org
38 lines
2.5 KiB
Plaintext
38 lines
2.5 KiB
Plaintext
# loader.c
|
|
loader_write_rom(const char *name, uint64_t gpa, uint64_t size, bool isrom) "%s: @0x%"PRIx64" size=0x%"PRIx64" ROM=%d"
|
|
|
|
# qdev.c
|
|
qdev_reset(void *obj, const char *objtype) "obj=%p(%s)"
|
|
qdev_reset_all(void *obj, const char *objtype) "obj=%p(%s)"
|
|
qdev_reset_tree(void *obj, const char *objtype) "obj=%p(%s)"
|
|
qbus_reset(void *obj, const char *objtype) "obj=%p(%s)"
|
|
qbus_reset_all(void *obj, const char *objtype) "obj=%p(%s)"
|
|
qbus_reset_tree(void *obj, const char *objtype) "obj=%p(%s)"
|
|
qdev_update_parent_bus(void *obj, const char *objtype, void *oldp, const char *oldptype, void *newp, const char *newptype) "obj=%p(%s) old_parent=%p(%s) new_parent=%p(%s)"
|
|
|
|
# resettable.c
|
|
resettable_reset(void *obj, int cold) "obj=%p cold=%d"
|
|
resettable_reset_assert_begin(void *obj, int cold) "obj=%p cold=%d"
|
|
resettable_reset_assert_end(void *obj) "obj=%p"
|
|
resettable_reset_release_begin(void *obj, int cold) "obj=%p cold=%d"
|
|
resettable_reset_release_end(void *obj) "obj=%p"
|
|
resettable_change_parent(void *obj, void *o, unsigned oc, void *n, unsigned nc) "obj=%p from=%p(%d) to=%p(%d)"
|
|
resettable_phase_enter_begin(void *obj, const char *objtype, unsigned count, int type) "obj=%p(%s) count=%d type=%d"
|
|
resettable_phase_enter_exec(void *obj, const char *objtype, int type, int has_method) "obj=%p(%s) type=%d method=%d"
|
|
resettable_phase_enter_end(void *obj, const char *objtype, unsigned count) "obj=%p(%s) count=%d"
|
|
resettable_phase_hold_begin(void *obj, const char *objtype, unsigned count, int type) "obj=%p(%s) count=%d type=%d"
|
|
resettable_phase_hold_exec(void *obj, const char *objtype, int has_method) "obj=%p(%s) method=%d"
|
|
resettable_phase_hold_end(void *obj, const char *objtype, unsigned count) "obj=%p(%s) count=%d"
|
|
resettable_phase_exit_begin(void *obj, const char *objtype, unsigned count, int type) "obj=%p(%s) count=%d type=%d"
|
|
resettable_phase_exit_exec(void *obj, const char *objtype, int has_method) "obj=%p(%s) method=%d"
|
|
resettable_phase_exit_end(void *obj, const char *objtype, unsigned count) "obj=%p(%s) count=%d"
|
|
resettable_transitional_function(void *obj, const char *objtype) "obj=%p(%s)"
|
|
|
|
# clock.c
|
|
clock_set_source(const char *clk, const char *src) "'%s', src='%s'"
|
|
clock_disconnect(const char *clk) "'%s'"
|
|
clock_set(const char *clk, uint64_t old, uint64_t new) "'%s', %"PRIu64"Hz->%"PRIu64"Hz"
|
|
clock_propagate(const char *clk) "'%s'"
|
|
clock_update(const char *clk, const char *src, uint64_t hz, int cb) "'%s', src='%s', val=%"PRIu64"Hz cb=%d"
|
|
clock_set_mul_div(const char *clk, uint32_t oldmul, uint32_t mul, uint32_t olddiv, uint32_t div) "'%s', mul: %u -> %u, div: %u -> %u"
|