diff options
author | Peter Maydell | 2021-01-28 12:41:22 +0100 |
---|---|---|
committer | Peter Maydell | 2021-01-29 16:54:42 +0100 |
commit | 132b10251cd7b6271aa081ddfda329cd3c45bc00 (patch) | |
tree | 5dade257f8216a06f0892f6c51614a628078b92e /hw/timer/cmsdk-apb-timer.c | |
parent | ptimer: Add new ptimer_set_period_from_clock() function (diff) | |
download | qemu-132b10251cd7b6271aa081ddfda329cd3c45bc00.tar.gz qemu-132b10251cd7b6271aa081ddfda329cd3c45bc00.tar.xz qemu-132b10251cd7b6271aa081ddfda329cd3c45bc00.zip |
clock: Add new clock_has_source() function
Add a function for checking whether a clock has a source. This is
useful for devices which have input clocks that must be wired up by
the board as it allows them to fail in realize rather than ploughing
on with a zero-period clock.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210128114145.20536-3-peter.maydell@linaro.org
Message-id: 20210121190622.22000-3-peter.maydell@linaro.org
Diffstat (limited to 'hw/timer/cmsdk-apb-timer.c')
0 files changed, 0 insertions, 0 deletions