clk: add clk_valid()
authorFabrice Gasnier <fabrice.gasnier@st.com>
Tue, 24 Jul 2018 14:31:28 +0000 (16:31 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 3 Aug 2018 23:53:10 +0000 (19:53 -0400)
commit1fe243a1e42fe99da0fa45c8c727f9c3d599c6c9
treeeeaf0f029ccf5cc128a91ff889914ad6136b0f2a
parent14aa210c1d4fb272ba2583b70f13505d3533015a
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>
arch/sandbox/include/asm/clk.h
drivers/clk/clk_sandbox_test.c
include/clk.h
test/dm/clk.c