diff options
author | Fabrice Gasnier <fabrice.gasnier@st.com> | 2018-07-24 16:31:28 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-08-03 19:53:10 -0400 |
commit | 1fe243a1e42fe99da0fa45c8c727f9c3d599c6c9 (patch) | |
tree | eeaf0f029ccf5cc128a91ff889914ad6136b0f2a /arch/sandbox/include/asm/clk.h | |
parent | 14aa210c1d4fb272ba2583b70f13505d3533015a (diff) |
clk: add clk_valid()
Add clk_valid() to check for optional clocks are valid.
Call clk_valid() in test/dm/clk.c and add relevant test routine to
sandbox clk tests.
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/include/asm/clk.h')
-rw-r--r-- | arch/sandbox/include/asm/clk.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/clk.h b/arch/sandbox/include/asm/clk.h index d85cbadf6e..2b1c49f783 100644 --- a/arch/sandbox/include/asm/clk.h +++ b/arch/sandbox/include/asm/clk.h @@ -138,5 +138,13 @@ int sandbox_clk_test_free(struct udevice *dev); * @return: 0 if OK, or a negative error code. */ int sandbox_clk_test_release_bulk(struct udevice *dev); +/** + * sandbox_clk_test_valid - Ask the sandbox clock test device to check its + * clocks are valid. + * + * @dev: The sandbox clock test (client) devivce. + * @return: 0 if OK, or a negative error code. + */ +int sandbox_clk_test_valid(struct udevice *dev); #endif |