clock: Add new clock_has_source() function
commit132b10251cd7b6271aa081ddfda329cd3c45bc00
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 28 Jan 2021 11:41:22 +0000 (28 11:41 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 29 Jan 2021 15:54:42 +0000 (29 15:54 +0000)
tree5dade257f8216a06f0892f6c51614a628078b92e
parentad140dadd591cdfd47959a7b4538e8133053b3c7
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
docs/devel/clocks.rst
include/hw/clock.h